http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57265
Bug ID: 57265 Summary: Bootstrap failure on sparc-sun-solaris2.10 in libquadmath Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: ahaas at airmail dot net My builds have failed since April 15 when building 'libquadmath' after completing the stage2/stage3 comparison. My last successful build was on April 14. The error below is taken from the 'config.log' file in the 'sparc-sun-solaris2.10/sparcv9/libquadmath' directory: { ... snip ... } configure:3386: checking whether the C compiler works configure:3395: ./a.out ld.so.1: a.out: fatal: /export/home/arth/src/gcc-0512/./gcc/libgcc_s.so.1: wrong ELF class: ELFCLASS32 /export/home/arth/src/gcc.git/libquadmath/configure: line 3397: 11229 Killed ./$ac_file configure:3399: $? = 137 configure:3406: error: in `/export/home/arth/src/gcc-0512/sparc-sun-solaris2.10/ sparcv9/libquadmath': configure:3410: error: cannot run C compiled programs. A bit of git bisecting leads to this change: commit 8aaed91dfc5f8fcd17fd6b61de3a6d68e59b5e1e Author: ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Mon Apr 15 10:31:57 2013 +0000 Use -z ignore instead of --as-needed on Solaris * configure.ac (gcc_cv_ld_as_needed): Set gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option. Use -z ignore, -z record on *-*-solaris2*. (HAVE_LD_AS_NEEDED): Update comment. (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define. * configure: Regenerate. * config.in: Regenerate. * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION. * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define. * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed equivalents. Fix markup. * doc/tm.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197964 138bc75d-0d04-0410-96 I'm able go get a successful build with the previous revision 197963, which is '98c0d6572c62b325c1e8635df3d6b22003b83619' in my git checkout. In this revision, the config.log contents from 'sparc-sun-solaris2.10/sparcv9' show this test succeeding: configure:3386: checking whether the C compiler works configure:3395: ./a.out configure:3399: $? = 0 configure:3414: result: yes Thanks. Art Haas