I am trying to bootstrap gcc-3.3.4 using the gcc-3.3 from freeware.sgi.com The machine is a R5k O2. # This directory was configured as follows: ../gcc-3.3.4/configure --with-gcc-version-trigger=/scratch/build/gcc/gcc-3.3.4/gcc/version.c --host=mips-sgi-irix6.5 --prefix=/usr/local --enable-version-specific-runtime-libs --disable-shared --enable-threads --enable-haifa --enable-libgcj --disable-c-mbchar --program-suffix=-3.3.4 --enable-languages=c,c++,java --norecursion The error is: stage1/xgcc -Bstage1/ -B/usr/local/mips-sgi-irix6.5/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -Icp -I../../gcc-3.3.4/gcc -I../../gcc-3.3.4/gcc/cp -I../../gcc-3.3.4/gcc/config -I../../gcc-3.3.4/gcc/../include ../../gcc-3.3.4/gcc/cp/typeck2.c -o cp/typeck2.o stage1/xgcc -Bstage1/ -B/usr/local/mips-sgi-irix6.5/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -Icp -I../../gcc-3.3.4/gcc -I../../gcc-3.3.4/gcc/cp -I../../gcc-3.3.4/gcc/config -I../../gcc-3.3.4/gcc/../include ../../gcc-3.3.4/gcc/cp/class.c -o cp/class.o ../../gcc-3.3.4/gcc/cp/class.c: In function `resolves_to_fixed_type_p': ../../gcc-3.3.4/gcc/cp/class.c:5708: internal compiler error: Segmentation fault
Could you try to just compile C and then bootstrap with that compiler?
I am planning to, however it takes a long time and the machine is a bit noisy ;). I will try to bootstrap only C tonight.
With languages=c it got quite a bit further: stage2/xgcc -Bstage2/ -B/usr/local/mips-sgi-irix6.5/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.3.4/gcc -I../../gcc-3.3.4/gcc/. -I../../gcc-3.3.4/gcc/config -I../../gcc-3.3.4/gcc/../include ../../gcc-3.3.4/gcc/print-rtl.c -o print-rtl.o stage2/xgcc -Bstage2/ -B/usr/local/mips-sgi-irix6.5/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.3.4/gcc -I../../gcc-3.3.4/gcc/. -I../../gcc-3.3.4/gcc/config -I../../gcc-3.3.4/gcc/../include ../../gcc-3.3.4/gcc/print-tree.c -o print-tree.o ../../gcc-3.3.4/gcc/print-tree.c: In function `print_node': ../../gcc-3.3.4/gcc/print-tree.c:770: internal compiler error: Segmentation fault I will try to compile 3.4.1-rc1 tonight
gcc-3.4.1-20040625 built sucessfully for C in 3h57m38.07s
./xgcc -B./ -B/usr/local/mips-sgi-irix6.5/bin/ -isystem /usr/local/mips-sgi-irix6.5/include -isystem /usr/local/mips-sgi-irix6.5/sys-include -L/scratch/build/gcc/objs/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.4.1-20040625/gcc -I../../gcc-3.4.1-20040625/gcc/. -I../../gcc-3.4.1-20040625/gcc/../include -DL_fixunsdfsi -c ../../gcc-3.4.1-20040625/gcc/libgcc2.c -o libgcc/./_fixunsdfsi.o ./xgcc -B./ -B/usr/local/mips-sgi-irix6.5/bin/ -isystem /usr/local/mips-sgi-irix6.5/include -isystem /usr/local/mips-sgi-irix6.5/sys-include -L/scratch/build/gcc/objs/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.4.1-20040625/gcc -I../../gcc-3.4.1-20040625/gcc/. -I../../gcc-3.4.1-20040625/gcc/../include -DL_fixunssfsi -c ../../gcc-3.4.1-20040625/gcc/libgcc2.c -o libgcc/./_fixunssfsi.o gmake[3]: *** [libgcc/./_fixunssfsi.o] Segmentation fault (core dumped) gmake[3]: Leaving directory `/mnt/disk2/scratch/build/gcc/objs/gcc' gmake[2]: *** [stmp-multilib] Error 2 gmake[2]: Leaving directory `/mnt/disk2/scratch/build/gcc/objs/gcc' gmake[1]: *** [stage1_build] Error 2 gmake[1]: Leaving directory `/mnt/disk2/scratch/build/gcc/objs/gcc' gmake: *** [bootstrap] Error 2 Failed after 38 minutes, despite C only running though last night.
You are having some kind of hardware problem if you could build 3.4 with only C and then cannot with C++ enabled and it is failing in libgcc.