GCC compilation segfaults

StyX styx at mailbox.as
Sun Jan 28 08:17:34 PST 2001


Hello guys

I'm trying to compile GCC 2.95.2 (chapter 5) on a totally vanilla RH 6.2
system. I run egcs v. 2.91.66. After a good while of errorless
compilation, the following happens:

-- SNIP --

./genconfig ../../gcc-2.95.2/gcc/config/i386/i386.md > tmp-config.h
../../gcc-2.95.2/gcc/move-if-change tmp-config.h insn-config.h
touch s-config
stage1/xgcc -Bstage1/ -B/usr/local/gcc2952/i586-pc-linux-gnu/bin/ 
-DIN_GCC     -O2 -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include  \
  -DTARGET_NAME=\"i586-pc-linux-gnu\" \
  -c `echo ../../gcc-2.95.2/gcc/toplev.c | sed 's,^\./,,'`
../../gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from
incompatible pointer type
../../gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from
incompatible pointer type
../../gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from
incompatible pointer type
../../gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from
incompatible pointer type
../../gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from
incompatible pointer type
../../gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from
incompatible pointer type
../../gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from
incompatible pointer type
../../gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from
incompatible pointer type
../../gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from
incompatible pointer type
stage1/xgcc -Bstage1/ -B/usr/local/gcc2952/i586-pc-linux-gnu/bin/ -c 
-DIN_GCC     -O2 -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
../../gcc-2.95.2/gcc/tree.c
stage1/xgcc -Bstage1/ -B/usr/local/gcc2952/i586-pc-linux-gnu/bin/ -c 
-DIN_GCC     -O2 -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
../../gcc-2.95.2/gcc/print-tree.c
stage1/xgcc -Bstage1/ -B/usr/local/gcc2952/i586-pc-linux-gnu/bin/ -c 
-DIN_GCC     -O2 -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
../../gcc-2.95.2/gcc/stor-layout.c
stage1/xgcc -Bstage1/ -B/usr/local/gcc2952/i586-pc-linux-gnu/bin/ -c 
-DIN_GCC     -O2 -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
../../gcc-2.95.2/gcc/fold-const.c
stage1/xgcc -Bstage1/ -B/usr/local/gcc2952/i586-pc-linux-gnu/bin/ -c 
-DIN_GCC     -O2 -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
../../gcc-2.95.2/gcc/genflags.c
stage1/xgcc -Bstage1/ -B/usr/local/gcc2952/i586-pc-linux-gnu/bin/ 
-DIN_GCC     -O2 -g -O2  -DHAVE_CONFIG_H  -o genflags \
 genflags.o rtl.o bitmap.o print-rtl.o ` case "obstack.o" in ?*) echo
obstack.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*)
echo  ;; esac `  ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo 
;; esac `
./genflags ../../gcc-2.95.2/gcc/config/i386/i386.md > tmp-flags.h
../../gcc-2.95.2/gcc/move-if-change tmp-flags.h insn-flags.h
touch s-flags
stage1/xgcc -Bstage1/ -B/usr/local/gcc2952/i586-pc-linux-gnu/bin/ -c 
-DIN_GCC     -O2 -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
../../gcc-2.95.2/gcc/function.c
xgcc: Internal compiler error: program cc1 got fatal signal 11
make[2]: *** [function.o] Error 1
make[2]: Leaving directory `/lfs/usr/src/gcc-build/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/lfs/usr/src/gcc-build/gcc'
make: *** [bootstrap] Error 2
[root at SuxOS-devel gcc-2.95.2]#

-- SNIP --

Have any of you guys encountered this problem? I've tried three times,
with the same result...

All help appreciated! :)

-- 

StyX
styx at mailbox.as

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/CC/IT d?>d s:>s++:++ a? C++>C++++$ UL++++ 
P+>P+++++ L+++>L+++++ E--- W++>$ N++ w--- PS PE Y+ 
PGP>PGP+++ t+ 5 X+ R+ tv+ b+ D-- G++ e->e+++++ h-->h++ y?
------END GEEK CODE BLOCK------


-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list