This is an error I get compiling latest gcc 4.1 snapshot (gcc-4.1-20050813)
./xgcc -B./ -B/opt/gcc/sparc-sun-solaris2.10/bin/ -isystem
/opt/gcc/sparc-sun-solaris2.10/include -isystem
/opt/gcc/sparc-sun-solaris2.10/sys-include
-L/mac/build/gcc-4.1-20050813/objdir/gcc/../ld -O2 -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -I. -I. -I../../gcc
-I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include \
-c ../../gcc/config/sparc/gmon-sol2.c -o gmon.o
xgcc: Internal error: Segmentation Fault (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake[2]: *** [gmon.o] Error 1
gmake[2]: Leaving directory `/mac/build/gcc-4.1-20050813/objdir/gcc'
gmake[1]: *** [stage2_build] Error 2
gmake[1]: Leaving directory `/mac/build/gcc-4.1-20050813/objdir/gcc'
gmake: *** [bootstrap] Error 2
I've tried to bootstrap it with 2 different gcc's:
1)
gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
2)
gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../configure --prefix=/opt/gcc
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
--enable-threads=solaris --with-system-zlib --disable-nls
--disable-libgcj --enable-languages=c,c++,objc
Thread model: solaris
gcc version 4.0.1
They both do stop with the same error at the same place.
System used:
Sun SPARC Solaris 10 Generic_118822-11 sun4u sparc SUNW,Sun-Blade-2500
This is a configure string I use:
../configure --prefix=/opt/gcc --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-threads=solaris --with-system-zlib
--disable-nls --disable-libgcj --enable-languages=c,c++,objc
/Mareks