gcc 4.0.0 cannot be bootstrap-ed if ./configure was run with --enable-static --disable-shared.
This is due to the bug in "gcc/config/darwin.h". 317 /* -dynamiclib implies -shared-libgcc just like -shared would on linux. */ 318 #define REAL_LIBGCC_SPEC \ 319 "%{static|static-libgcc:-lgcc}\ 320 %{!static:%{!static-libgcc:\ 321 %{!Zdynamiclib:%{!shared-libgcc:-lgcc}\ 322 %{shared-libgcc:-lgcc_s -lgcc}} %{Zdynamiclib:-lgcc_s -lgcc}}}" The REAL_LIBGCC_SPEC states that libgcc.a AND libgcc_eh.a are required for static gcc. (Probably copied from linux or i386 or any other spec files.) However, in powerpc-apple-darwin7.7.0 (and possibly any of powerpc*-*-darwin*) this "libgcc_eh.a" is not build during the bootstrap procedure (and also not required). So, after the first xgcc is build, bootstarp fails at stage1 by the following error: /usr/lib/ld: can't locate file for: -lgcc_eh To fix, simply sed -e 's/ -lgcc_eh//' the gcc/config/darwin.h file. -- Summary: static gcc cannot be build (libgcc_eh.a required for static gcc) Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: critical Priority: P2 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hideishi at graduate dot chiba-u dot jp CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-apple-darwin7.7.0 GCC host triplet: powerpc-apple-darwin7.7.0 GCC target triplet: powerpc*-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19176