Il 17/12/2012 11:42, Diego Elio Pettenò ha scritto:
On 17/12/2012 11:33, Sven Eden wrote:
on my system I have set up everything with splitdebug enabled. My CFLAGS use -
march=native, -O2 and -ggdb.
That's  -ggdb that increases the size.


In short FEATURES=compressdebug should be stable and default before you (gentoo) decide for something like this. As mentioned somewhere else in this thread some packages are on the unbeareable side when compiled with debug information, those should default to filter out debug flags if not actually wanted by the user USE=gdb maybe? When going with debug information the best available should be used so -ggdb not -g if possible. Please try to understand the differences between the various options (nodebug, -g, -ggdb) versus (time to build, memory needed, disk space) before attempting this.
Diego maybe it's worth some runs in the tinderbox.

Some numbers:

Packages installed:   1756
Packages in world:    626
Packages in system:   42
Required packages:    1756
Number to remove:     0


ECFLAGSbase='-O2 -march=corei7-avx -pipe -frecord-gcc-switches'
ECFLAGSnative='-mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=6144 -mtune=corei7-avx' ECFLAGSnative="${ECFLAGSnative} -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32" ECFLAGSo3='-fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops' # O3 - -finline-functions -fipa-cp-clone ECFLAGSgraphite='-fgraphite-identity -floop-block -floop-interchange -floop-strip-mine' # graphite & co (-fira-loop-pressure no good amd64)

ECFLAGSdbug='-ggdb -gdwarf-4 -fvar-tracking-assignments'

ECFLAGSlto=''
CFLAGS="${ECFLAGSbase} ${ECFLAGSnative} ${ECFLAGSo3} ${ECFLAGSgraphite} ${ECFLAGSlto} ${ECFLAGSdbug}"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
ELDFLAGSoptimize='-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--no-copy-dt-needed-entries'

ELDFLAGSdebug='-Wl,--build-id'

ELDFLAGSlto=''
LDFLAGS="${LDFLAGS} ${ELDFLAGSoptimize} ${ELDFLAGSdebug}"


FEATURES="${FEATURES} splitdebug installsources compressdebug"

du -csh /usr/lib/debug/ /usr/src/debug/
5,5G    /usr/lib/debug/
3,9G    /usr/src/debug/
9,4G    totale

find /usr/* -maxdepth 0 -type d -not -name src -not -name portage -exec echo {} + /usr/armv7a-hardfloat-linux-gnueabi /usr/bin /usr/brlcad /usr/data /usr/etc /usr/fakelib /usr/gnu-classpath-0.98 /usr/include /usr/lib32 /usr/lib64 /usr/libexec /usr/local /usr/man /usr/Mod /usr/sbin /usr/share /usr/x86_64-pc-linux-gnueabi

find /usr/* -maxdepth 0 -type d -not -name src -not -name portage -exec du -csh {} +
38M     /usr/armv7a-hardfloat-linux-gnueabi
825M    /usr/bin
86M     /usr/brlcad
1,3M    /usr/data
16K     /usr/etc
8,0K    /usr/fakelib
12M     /usr/gnu-classpath-0.98
425M    /usr/include
392M    /usr/lib32
11G     /usr/lib64  <== 5,5G    /usr/lib/debug/
415M    /usr/libexec
28K     /usr/local
304K    /usr/man
18M     /usr/Mod
81M     /usr/sbin
3,3G    /usr/share
27M     /usr/x86_64-pc-linux-gnu
17G     totale



Reply via email to