To check, that warning's for using it as a system compiler, not for using it outside of portage for personal dev stuff, right?dirtyepic wrote:Also, you need to be running ~arch. It might seem obvious but we always get people that try to run an unreleased compiler on a stable system.
Code: Select all
/sbin/ldconfig: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.0-pre9999/libstdc++.so.6.0.14-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

FYI. I hit this same problem too.justinkb wrote:Running into this... I guess it's only an annoyance, but still...
What would be a good path to put this .py file? and would it require editing the toolchain eclass to fix this in the ebuild?Code: Select all
/sbin/ldconfig: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.0-pre9999/libstdc++.so.6.0.14-gdb.py is not an ELF file - it has the wrong magic bytes at the start.
Code: Select all
make[4]: Leaving directory `/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build/x86_64-pc-linux-gnu/libgcc'
make[3]: Leaving directory `/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build/x86_64-pc-linux-gnu/libgcc'
make[2]: Leaving directory `/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build'
make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=x86_64-pc-linux-gnu" "bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.0-alpha20100121" "datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.0-alpha20100121" "exec_prefix=/usr" "includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.0-alpha20100121/include" "datarootdir=/usr/share" "docdir=/usr/share/doc/" "infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.0-alpha20100121/info" "pdfdir=/usr/share/doc/" "htmldir=/usr/share/doc/" "libdir=/usr/lib" "libexecdir=/usr/libexec" "lispdir=" "localstatedir=/usr/var" "mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.0-alpha20100121/man" "oldincludedir=/usr/include" "prefix=/usr" "sbindir=/usr/sbin" "sharedstatedir=/usr/com" "sysconfdir=/usr/etc" "tooldir=/usr/x86_64-pc-linux-gnu" "build_tooldir=/usr/x86_64-pc-linux-gnu" "target_alias=x86_64-pc-linux-gnu" "AWK=gawk" "BISON=bison" "CC_FOR_BUILD=x86_64-pc-linux-gnu-gcc" "CFLAGS_FOR_BUILD=-march=core2 -O2 -pipe" "CXX_FOR_BUILD=x86_64-pc-linux-gnu-g++" "EXPECT=expect" "FLEX=flex" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS_FOR_BUILD=-Wl,-O1 -Wl,--as-needed -Wl,-znow -Wl,--hash-style=gnu -Wl,--sort-common" "LEX=flex" "M4=m4" "MAKE=make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SED=/bin/sed" "SHELL=/bin/sh" "YACC=bison -y" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "ADA_CFLAGS=" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=-gnatpg -gnata' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-march=core2 -O2 -pipe" "BOOT_LDFLAGS=" "CFLAGS=-march=core2 -O2 -pipe" "CXXFLAGS=-march=core2 -O2 -pipe" "LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,-znow -Wl,--hash-style=gnu -Wl,--sort-common" "LIBCFLAGS=-march=core2 -O2 -pipe" "LIBCXXFLAGS=-march=core2 -O2 -pipe -fno-implicit-templates" "STAGE1_CHECKING=--enable-checking=yes,types" "STAGE1_LANGUAGES=c" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=/usr/x86_64-pc-linux-gnu/bin/ar" "AS_FOR_TARGET=/usr/x86_64-pc-linux-gnu/bin/as" "CC_FOR_TARGET=/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build/./gcc/xgcc -B/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build/./gcc/" "CFLAGS_FOR_TARGET=-g -march=core2 -O2 -pipe" "CPPFLAGS_FOR_TARGET=" "CXX_FOR_TARGET=/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build/./gcc/g++ -B/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build/./gcc/ -nostdinc++ -L/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs" "CXXFLAGS_FOR_TARGET=-march=core2 -O2 -pipe -D_GNU_SOURCE" "DLLTOOL_FOR_TARGET=dlltool" "FLAGS_FOR_TARGET=-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include" "GCJ_FOR_TARGET=" "GFORTRAN_FOR_TARGET=" "LD_FOR_TARGET=/usr/x86_64-pc-linux-gnu/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -march=core2 -O2 -pipe" "LIBCXXFLAGS_FOR_TARGET=-march=core2 -O2 -pipe -D_GNU_SOURCE -fno-implicit-templates" "NM_FOR_TARGET=/usr/x86_64-pc-linux-gnu/bin/nm" "OBJDUMP_FOR_TARGET=/usr/x86_64-pc-linux-gnu/bin/objdump" "RANLIB_FOR_TARGET=/usr/x86_64-pc-linux-gnu/bin/ranlib" "STRIP_FOR_TARGET=/usr/x86_64-pc-linux-gnu/bin/strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "BUILD_CONFIG=bootstrap-debug" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=:" "STAGE1_CFLAGS=-O" "STAGE1_CXXFLAGS=-march=core2 -O2 -pipe" "STAGE1_TFLAGS=" "STAGE2_CFLAGS=-march=core2 -O2 -pipe -gtoggle" "STAGE2_CXXFLAGS=-march=core2 -O2 -pipe" "STAGE2_TFLAGS=" "STAGE3_CFLAGS=-march=core2 -O2 -pipe" "STAGE3_CXXFLAGS=-march=core2 -O2 -pipe" "STAGE3_TFLAGS=" "STAGE4_CFLAGS=-march=core2 -O2 -pipe" "STAGE4_CXXFLAGS=-march=core2 -O2 -pipe" "STAGE4_TFLAGS=" "STAGEprofile_CFLAGS=-march=core2 -O2 -pipe -gtoggle -fprofile-generate" "STAGEprofile_CXXFLAGS=-march=core2 -O2 -pipe" "STAGEprofile_TFLAGS=" "STAGEfeedback_CFLAGS=-march=core2 -O2 -pipe -fprofile-use" "STAGEfeedback_CXXFLAGS=-march=core2 -O2 -pipe" "STAGEfeedback_TFLAGS=" "TFLAGS=" "CONFIG_SHELL=/bin/sh" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000" compare
make[2]: Entering directory `/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build'
make[3]: Entering directory `/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build'
rm -f stage_current
make[3]: Leaving directory `/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build'
Comparing stages 2 and 3
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
Bootstrap comparison failure!
gcc/builtins.o differs
make[2]: *** [compare] Error 1
make[2]: Leaving directory `/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/home/portage/portage/sys-devel/gcc-4.5.0_alpha20100121/work/build'
make: *** [bootstrap-lean] Error 2
My issue was that =dev-libs/elfutils-0.131-r2 isn't enough for lto. With 0.144, it works now . A use flag to have lto definitely enabled would be a good thing imo.dirtyepic wrote:why is it wrong?
lto is automatically enabled if libelf is found. i guess i could add a USE flag to make it explicit though.

When can we expect this to be in portage?AM088 wrote:It's out!
http://gcc.gnu.org/ml/gcc/2010-04/msg00321.html
http://gcc.gnu.org/gcc-4.5/changes.html