Trying to build GCC 4.3.4, 4.4.3 and 4.4.4RC using gcc 3.4.6 as a system compiler fails:
configure:2590: checking for suffix of object files configure:2611: /x/./gcc/xgcc -B/x/./gcc/ -B/y/bfin-unknown-elf/bin/ -B/y/bfin-unknown-elf/lib/ -isystem /y/bfin-unknown-elf/include -isystem /y/bfin-unknown-elf/sys-include -c -g -Os conftest.c >&5 conftest.c:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. configure:2614: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2627: error: in `/x/bfin-unknown-elf/libgcc': configure:2630: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gdb tells a bit more on the location of the failure: Program received signal SIGSEGV, Segmentation fault. 0x37bf0000 in ?? () (gdb) bt #0 0x37bf0000 in ?? () #1 0x0816af3d in emit_move_insn () #2 0x080f8457 in init_set_costs () #3 0x083063e7 in lang_dependent_init_target () #4 0x0830646d in lang_dependent_init () #5 0x08306655 in do_compile () #6 0x083066c8 in toplev_main () #7 0x080b3b2a in main () Bootstrap compiler: ./xgcc -v Using built-in specs. Target: bfin-unknown-elf Configured with: /z/gcc-4.4.4-RC-20100422/configure --build=i486-build_pc-linux-gnu --host=i486-build_pc-linux-gnu --target=bfin-unknown-elf --prefix=/y --with-local-prefix=/y/bfin-unknown-elf/bfin-unknown-elf//sys-root --disable-multilib --with-sysroot=/y/bfin-unknown-elf//sys-root --with-newlib --enable-threads=no --enable-shared --with-pkgversion=naa --disable-decimal-float --disable-__cxa_atexit --with-gmp=/o/targets/bfin-unknown-elf/build/static --with-mpfr=/o/targets/bfin-unknown-elf/build/static --disable-nls --enable-symvers=gnu --enable-languages=c,c++ --enable-target-optspace Thread model: single gcc version 4.4.4 20100422 (prerelease) (naa) System compiler: # i486-pc-linux-gnu-gcc -v Reading specs from /a/i486-pc-linux-gnu-gcc3.4.6/bin/../lib/gcc/i486-pc-linux-gnu/3.4.6/specs Configured with: /s/gcc-3.4.6/configure --build=i486-build_pc-linux-gnu --host=i486-build_pc-linux-gnu --target=i486-pc-linux-gnu --prefix=/y/i486-pc-linux-gnu --with-sysroot=/y/i486-pc-linux-gnu/i486-pc-linux-gnu//sys-root --enable-languages=c,c++ --disable-multilib --with-arch=i486 --enable-__cxa_atexit --enable-threads=posix --with-local-prefix=/y/i486-pc-linux-gnu/i486-pc-linux-gnu//sys-root --disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace Thread model: posix gcc version 3.4.6 note: gcc 4.2.4 build successfully in the same environment. -- Summary: Bootstrap compiler segfault while configuring libgcc Product: gcc Version: 4.4.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lacombar at gmail dot com GCC build triplet: i486-pc-linux-gnu GCC host triplet: i486-pc-linux-gnu GCC target triplet: bfin-unknown-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43873