i try to update gcc for powerpc-unknown-linux-gnu from 4.1.2 to 4.2.0 but it fails with a segmentation fault from ld gcc-4.1.x was installed using crossdev, updates since run automatically via emerge -auND world /var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/./gcc -nostdinc++ -L/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/src/.libs -B/usr/powerpc-unknown-linux-gnu/bin/ -B/usr/powerpc-unknown-linux-gnu/lib/ -isystem /usr/powerpc-unknown-linux-gnu/include -isystem /usr/powerpc-unknown-linux-gnu/sys-include -shared -nostdlib /usr/powerpc-unknown-linux-gnu/lib/crti.o /var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/./gcc/crtbeginS.o .libs/bitmap_allocator.o .libs/pool_allocator.o .libs/mt_allocator.o .libs/codecvt.o .libs/compatibility.o .libs/complex_io.o .libs/ctype.o .libs/debug.o .libs/debug_list.o .libs/functexcept.o .libs/globals_io.o .libs/ios.o .libs/ios_failure.o .libs/ios_init.o .libs/ios_locale.o .libs/limits.o .libs/list.o .libs/locale.o .libs/locale_init.o .libs/locale_facets.o .libs/localename.o .libs/stdexcept.o .libs/strstream.o .libs/tree.o .libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o .libs/ext-inst.o .libs/ios-inst.o .libs/iostream-inst.o .libs/istream-inst.o .libs/istream.o .libs/locale-inst.o .libs/misc-inst.o .libs/ostream-inst.o .libs/sstream-inst.o .libs/streambuf-inst.o .libs/streambuf.o .libs/string-inst.o .libs/valarray-inst.o .libs/wlocale-inst.o .libs/wstring-inst.o .libs/atomicity.o .libs/codecvt_members.o .libs/collate_members.o .libs/ctype_members.o .libs/messages_members.o .libs/monetary_members.o .libs/numeric_members.o .libs/time_members.o .libs/basic_file.o .libs/c++locale.o .libs/compatibility-ldbl.o -Wl,--whole-archive ../libmath/.libs/libmath.a ../libsupc++/.libs/libsupc++convenience.a -Wl,--no-whole-archive -L/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/src/.libs -lm ../libmath/.libs/libmath.a -lm ../libsupc++/.libs/libsupc++convenience.a -lm -L/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/./gcc -L/usr/powerpc-unknown-linux-gnu/lib -L/usr/lib/gcc/powerpc-unknown-linux-gnu/../../../powerpc-unknown-linux-gnu/lib -L/usr/powerpc-unknown-linux-gnu/usr/lib -lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s /var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/./gcc/crtsavres.o /var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/./gcc/crtendS.o /usr/powerpc-unknown-linux-gnu/lib/crtn.o -Wl,-O1 -Wl,-z -Wl,relro -Wl,--gc-sections -Wl,--version-script=libstdc++-symbols.ver -Wl,-soname -Wl,libstdc++.so.6 -o .libs/libstdc++.so.6.0.9 collect2: ld terminated with signal 11 [Segmentation fault] make[4]: *** [libstdc++.la] Error 1 make[4]: Leaving directory `/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/powerpc-unknown-linux-gnu/libstdc++-v3/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/powerpc-unknown-linux-gnu/libstdc++-v3' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build/powerpc-unknown-linux-gnu/libstdc++-v3' make[1]: *** [all-target-libstdc++-v3] Error 2 make[1]: Leaving directory `/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/work/build' make: *** [all] Error 2 * * ERROR: cross-powerpc-unknown-linux-gnu/gcc-4.2.0 failed. * Call stack: * ebuild.sh, line 1647: Called dyn_compile * ebuild.sh, line 988: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1327: Called toolchain_src_compile * toolchain.eclass, line 26: Called gcc_src_compile * toolchain.eclass, line 1546: Called gcc_do_make * toolchain.eclass, line 1420: Called die * * emake failed with all * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/cross-powerpc-unknown-linux-gnu/gcc-4.2.0/temp/build.log'. * This ebuild is from an overlay: '/usr/local/portage/' * i tried almost everything possible: MAKEOPTS="-j1", CFLAGS="-march=athlon64 -O2 -pipe", without ccache re-emerge-ing binutils with minimal CFLAGS nothing helps, it always crashes first with fortran use flag activated it crashed somewhere in fortran or fortran lib, without fortran it crashes in libstdc++-v3 i have crosscompiler for i686-pc-linux-gnu and sparc-unknown-linux-gnu, both compile/update fine
Created attachment 125664 [details] build log attached build.log
Created attachment 125666 [details] emerge --info emerge --info
Created attachment 125670 [details] build.log build log for compilation using FEATURES="-ccache" MAKEOPTS="-j1"
does it fail at exactly the same spot everytime ?
yes, always fails at the same spot, linking libstdc++-v3 (withfortran i don't know now, but also always happened at the same spot there) if it weren't always failing at the same spot i'd check my system for hardware errors but since it is always the same spot whereas _everything_ else compiles fine, even gcc-4.2.0 for sparc and i686 (and sure, for amd64 too), i filed this bug. i tried to recompile glibc (sometimes strange things seem to happen there) recompiled gcc-4.2.0, gcc-4.1.2 (amd64), no success i also checked for unusual temperatures and everything, nothing
upgrade your cross binutils and it should work fine i'm not really inclined to investigate/fix this for 2.17 if a newer version already addresses the problem
since there's no newer binutils for ~ppc/+ppc i used the +ppc64 binutils and gcc merges successfully (if newer binutils work well on ppc, maybe those could be marked ~ppc so it's automatically upgraded without manual interaction when upgrading the system) thanks alot
that's really up to the ppc team
This should be fixed now that binutils-2.18 is in the tree and marked ~ppc. Please re-open if you're still having problems.