[oe] angstrom-2008.1, uclibc: git-native: sysroot-destdir 6, 4 GB big, since some executables are 100 MB each

Khem Raj raj.khem at gmail.com
Fri Jul 16 15:23:05 UTC 2010


On Fri, Jul 16, 2010 at 2:03 AM, Paul Menzel
<paulepanter at users.sourceforge.net> wrote:
> Dear OE folks,
>
>
> Am Donnerstag, den 15.07.2010, 19:55 +0200 schrieb Paul Menzel:
>
>> I ran out of space and noticed
>>
>>     /angstrom-dev/work/i686-linux/git-native-1.7.0.2-r4
>>
>> is 8,1G big.
>>
>> Some of the executable files in
>>
>>     /angstrom-dev/work/i686-linux/git-native-1.7.0.2-r4/sysroot-destdir/angstrom-dev/sysroots/i686-linux/usr/libexec/git-core/
>>
>> are 101 MB big.

its most probably the -g3/-ggdb3 bloat. and this option should be removed
from build flags atleast so the native binaries dont bloat.

here is a little change that you will need



diff --git a/conf/distro/include/angstrom-uclibc.inc
b/conf/distro/include/angstrom-uc
index 4ca6838..1c7f7f5 100644
--- a/conf/distro/include/angstrom-uclibc.inc
+++ b/conf/distro/include/angstrom-uclibc.inc
@@ -15,7 +15,7 @@ TARGET_OS = "${@['${TARGET_OS_UC}',
'uclinux-uclibc'][bb.data.getVar
 #mess with compiler flags to use -Os instead of -O2
 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html
for
 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer
-frename-register
-BUILD_OPTIMIZATION = "-O2 -ggdb3"
+BUILD_OPTIMIZATION = "-O2"


its ok with other libcs for angstrom as the flag has already been
removed from them. Try this and rebake git-native after cleaning it

Thx
-Khem


>>
>> This regression must have been introduced between this morning 6 a.m.
>> UTC and now.
>>
>> I could not reproduce this using the distributions minimal-uclibc or
>> angstrom-2008.1 with glibc.
>>
>> If you need more information I could try to downgrade the uclibc
>> revision.
>
> I can still reproduce the problem with angstrom-2008.1, uclibc-git and
> OE dev branch HEAD from today 9fd5a8cb38a376633eb0bd7981548179b6bea25d.
>
>        /angstrom-dev/work/i686-linux/git-native-1.7.0.2-r4/sysroot-destdir/angstrom-dev/sysroots/i686-linux/usr/libexec/git-core$ ls -lh | sort -k 5
>        […]
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-annotate
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-apply
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-archive
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-blame
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-branch
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-bundle
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-cherry
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-cherry-pick
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-clean
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-clone
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-commit
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-commit-tree
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-config
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-diff
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-fetch
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-fmt-merge-msg
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-for-each-ref
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-fsck
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-fsck-objects
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-grep
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-hash-object
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-help
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-index-pack
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-init
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-init-db
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-ls-remote
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-mailsplit
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-merge
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-merge-recursive
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-merge-subtree
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-mktag
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-mktree
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-name-rev
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-pack-redundant
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-pack-refs
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-prune
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-push
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-read-tree
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-reset
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-rev-list
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-shortlog
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-show
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-show-branch
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-show-ref
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-stage
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-stripspace
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-symbolic-ref
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-update-index
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-upload-archive
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-verify-tag
>        -rwxr-xr-x 1 usern usern 101M 16. Jul 10:51 git-write-tree
>        […]
>
> Could you please check your work directory and see if you have the same
> problem.
>
>
> Thanks,
>
> Paul
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
>




More information about the Openembedded-devel mailing list