trying to build current gcc-4.2 branch with --enable-libstdcxx-debug, ld segfaults while linking the the debug version of libstdc++. 2.17 works ok, but any 2007 version from HEAD fails to build the library.
What is the linker command line when this seg-fault happens ? Is it possible for you to upload the object files that are needed in order to reproduce this failure ? Cheers Nick
please see http://people.ubuntu.com/~doko/tmp/libstd++-v3-powerpc.tar.bz2 http://people.ubuntu.com/~doko/tmp/libstdc++-v3-sparc.tar.bz2 the linker command line is in the collect2.sh file; I see another segfault on sparc-linux-gnu the powerpc binutils are configured using --enable-targets=powerpc64-linux-gnu, the sparc binutils using --enable-targets=sparc-linux-gnu Matthias
Not sure, if it's only a ld bug; the gcc powerpc build was configured with -enable-secureplt. Omitting this option results in a sucessful gcc bootstrap. related to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31364 ?
Looks like a linker bug in elf32-ppc.c:allocate_dynrelocs. Testing a fix.
Powerpc bug fixed by http://sourceware.org/ml/binutils-cvs/2007-03/msg00177.html. I am not able to fully test the sparc64 problem because the testcase lacks libm and libc, however I did find a segfault in evaluate_complex_relocation_symbols. Fixed by http://sourceware.org/ml/binutils-cvs/2007-03/msg00178.html. Being an optimist I'm closing the bug as fixed. Matthias, please reopen if this isn't the case.
both segfaults on powerpc and sparc are gone thanks, Matthias
*** Bug 4031 has been marked as a duplicate of this bug. ***