gcc-4.2.4 fails to bootstrap on Solaris10/x86 as follows: env CONFIG_SHELL=/usr/bin/bash /home/mikpe/gcc-4.2.4/configure --prefix=/opt/local/gcc-4.2.4 --with-gnu-as --with-as=/opt/local/binutils-2.18/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --disable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --enable-java-awt=xlib --with-system-zlib --enable-languages=c,c++ --with-mpfr=/opt/csw make bootstrap ... checking sys/sem.h presence... yes checking for sys/sem.h... yes checking for sin in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory `/home/mikpe/objdir-4.2.4-static' make: *** [bootstrap] Error 2
I have previously built gcc-4.1.2 and gcc-4.2.3 successfully on this system, so this failure is an obvious regression. Testing older 4.2 snapshots showed that 4.2-20080206 was the last snapshot that built ok, and 4.2-20080213 is the first one that fails. Inspecting the diff between 20080206 and 20080213 and testing parts of it separately has identified H.J. Lu's fix for PR31868 as the culprit. Specifically, after that change crtstuff.c is compiled with -fno-asynchronous-unwind-tables which it wasn't before the change. 20080213 minus the -fno-asynchronous-unwind-tables change builds fine. I haven't yet checked if gcc-4.3 is similarly affected because I needed to resolve a generic 4.3 problem first (PR36339). -- Summary: gcc-4.2.4 bootstrap failure on Solaris/x86 caused by PR31868 fix Product: gcc Version: 4.2.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mikpe at it dot uu dot se GCC host triplet: i386-pc-solaris2.10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36356