I installed a precompiled version of GCC from a project. The version of it is 4.0 > gcc -v Using built-in specs. Target: hppa64-hp-hpux11.00 Configured with: ../src/configure --enable-languages=c,c++ --prefix=/usr/local/pa20_64 --with-local-prefix=/usr/local/pa20_64 --with-gnu-as --with-as=/usr/local/pa20_64/bin/as --with-gnu-ld --with-ld=/usr/local/pa20_64/bin/ld --disable-shared --disable-nls --host=hppa64-hp-hpux11.00
I'm trying to use it to build 4.4.2. I ran configure like this: ../src/configure \ --enable-languages=c,c++ \ --prefix=/usr/local/pa20_64 --with-local-prefix=/usr/local/pa20_64 \ --with-gnu-as --with-as=/usr/local/pa20_64/bin/as \ --with-gnu-ld --with-ld=/usr/local/pa20_64/bin/ld \ --disable-shared \ --disable-nls \ --with-gmp-include=/usr/local/include \ --with-mpfr-include=/usr/local/include \ --with-mpfr-lib=/usr/local/lib \ --with-gmp-lib=/usr/local/lib and then: make bootstrap-lean When it gets to libgcc, it fails when trying to "checking for suffix of object files" The config.log looks like this: configure:2396: $? = 1 configure:2415: /home/dmoore/gnu/obj-64/./gcc/xgcc -B/home/dmoore/gnu/obj-64/./g cc/ -B/usr/local/pa20_64/hppa2.0w-hp-hpux11.00/bin/ -B/usr/local/pa20_64/hppa2.0 w-hp-hpux11.00/lib/ -isystem /usr/local/pa20_64/hppa2.0w-hp-hpux11.00/include -i system /usr/local/pa20_64/hppa2.0w-hp-hpux11.00/sys-include -o conftest -g -O2 conftest.c >&5 xgcc: Internal error: Segmentation fault (program cc1) Please submit a full bug report. See <http://gcc.gnu.org/bugs.html> for instructions. configure:2418: $? = 1 configure:2590: checking for suffix of object files configure:2611: /home/dmoore/gnu/obj-64/./gcc/xgcc -B/home/dmoore/gnu/obj-64/./g cc/ -B/usr/local/pa20_64/hppa2.0w-hp-hpux11.00/bin/ -B/usr/local/pa20_64/hppa2.0 w-hp-hpux11.00/lib/ -isystem /usr/local/pa20_64/hppa2.0w-hp-hpux11.00/include -i system /usr/local/pa20_64/hppa2.0w-hp-hpux11.00/sys-include -c -g -O2 conftes t.c >&5 xgcc: Internal error: Segmentation fault (program cc1) Please submit a full bug report. 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 `/home/dmoore/gnu/obj-64/hppa2.0w-hp-hpux11.00/libgcc' : configure:2629: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. I'm not sure how to do the -save-temps switch since this is part of the make file. -- Summary: gcc fails to build libgcc Product: gcc Version: 4.4.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sorakiu at gmail dot com GCC build triplet: hppa2.0w-hp-hpux11.00 GCC host triplet: hppa2.0w-hp-hpux11.00 GCC target triplet: hppa2.0w-hp-hpux11.00 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43046