Bug 16241 - bootstrap of gcc-3.3.4 fails on irix6.5 using gcc-3.3
Summary: bootstrap of gcc-3.3.4 fails on irix6.5 using gcc-3.3
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 3.3.4
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2004-06-28 04:29 UTC by florin
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host: mips-sgi-irix6.5
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description florin 2004-06-28 04:29:08 UTC
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
Comment 1 Andrew Pinski 2004-06-28 07:10:08 UTC
Could you try to just compile C and then bootstrap with that compiler?
Comment 2 florin 2004-06-28 12:59:20 UTC
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.
Comment 3 florin 2004-06-29 16:50:45 UTC
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
Comment 4 florin 2004-06-30 00:10:56 UTC
gcc-3.4.1-20040625 built sucessfully for C in 3h57m38.07s
Comment 5 florin 2004-06-30 17:36:49 UTC
./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.
Comment 6 Andrew Pinski 2005-07-02 01:13:51 UTC
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.