I'm trying to bootstrap GCC trunk on a "Linux 2.6.5-7.97-pseries64 #1 SMP Fri Jul 2 14:21:59 UTC 2004 ppc64", and after configure by:
../gcc/configure --enable-languages=c,fortran --with-gmp=[...] --enable-bootstrap I get the following error: /tmp/debug/ibin/./prev-gcc/xgcc -B/tmp/debug/ibin/./prev-gcc/ -B/tmp/debug/irun/powerpc64-unknown-linux-gnu/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genmodes \ build/genmodes.o build/errors.o ../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a collect2: ld terminated with signal 11 [Segmentation fault] /usr/bin/ld: warning: powerpc:common architecture of input file `../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(xmalloc.o)' is incompatible with powerpc:common64 output /usr/bin/ld: warning: powerpc:common architecture of input file `../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(xexit.o)' is incompatible with powerpc:common64 output /usr/bin/ld: can not size stub section: Bad value /usr/lib/../lib64/crt1.o(.text+0x1c): In function `._start': ../sysdeps/powerpc/powerpc64/elf/start.S:58: undefined reference to `.__libc_start_main' [... other nice error messages ...] make[3]: *** [build/genmodes] Error 1 make[3]: Leaving directory `/tmp/debug/ibin/stage2-gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/tmp/debug/ibin' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/tmp/debug/ibin' make: *** [all] Error 2 Did I miss something obvious? I ran through the ppc-specific install notes, but noted nothing special. binutils are 2.15.90.0.1.1 20040303, which should be enough (install notes specify binutils >= 2.15). -- Summary: build failure on ppc64-linux Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fxcoudert at gcc dot gnu dot org GCC build triplet: powerpc64-unknown-linux-gnu GCC host triplet: powerpc64-unknown-linux-gnu GCC target triplet: powerpc64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25665