gcc compilation problems

Bealers mail at bealers.com
Tue Jul 17 12:02:41 PDT 2001


OK, it's still barfing, I'm going to list everything that I've done and hope
someone can help as this is beyond me.

book: 3.0-pre4
chapter 5 - "Installing GCC"
Host OS:  RH 7.1
Machine: 366 K6-2 with 128MB RAM
RH sits on disk one, disk 2 has /tmp on it for RH and the rest (10GB) is
mounted on
/mnt/lfs (/dev/hdb5)

I'm in $LFS/usr/src/gcc-build

===I type:

../gcc-2.95.2.1/configure --prefix=/usr \
--enable-languages=c,c++ --disable-nls \
--disable-shared &&
make -e LDFLAGS=-static bootstrap

===and get

../../gcc.2.95.1/gcc/genattrtab.c: In function 'attr_rtx':
../../gcc.2.95.1/gcc/genattrtab.c:727: Internal error: Segmentation fault.
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make[2]: *** [genattrtab.o] Error 1
make[1]: *** [bootstrap] Error 2

===is the --prefix a typo?, i.e. should it not be --prefix=$LFS/usr

===install gcc-2.9.3 and cpp 2.9.3 as RPMs on my RH disk

===try again (added $LFS to prefix):

../gcc-2.95.2.1/configure --prefix=$LFS/usr \
--enable-languages=c,c++ --disable-nls \
--disable-shared
make -e LDFLAGS=-static bootstrap

===barfed:

stage1/xgcc -Bstage1/ -B/mnt/lfs/usr/i586-pc-linux-gnu/bin/ -c  -DIN_GCC
 -O2 -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2.1/gcc -I../../gcc-2.9
5.2.1/gcc/config -I../../gcc-2.95.2.1/gcc/../include
../../gcc-2.95.2.1/gcc/c-pragma.c
xgcc: Internal compiler error: program cpp got fatal signal 11
make[2]: *** [c-pragma.o] Error 1
make[2]: Leaving directory `/mnt/lfs/usr/src/gcc-build/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/mnt/lfs/usr/src/gcc-build/gcc'
make: *** [bootstrap] Error 2

===tried again without the $LFS

../gcc-2.95.2.1/configure --prefix=/usr \
--enable-languages=c,c++ --disable-nls \
--disable-shared
make -e LDFLAGS=-static bootstrap

===same error

delete gcc-build and gcc.2.95 dirs and untar again, create gcc-build again

===try again:

../gcc-2.95.2.1/configure --prefix=/usr \
--enable-languages=c,c++ --disable-nls \
--disable-shared

make -e LDFLAGS=-static bootstrap

===different error

../../gcc-2.95.2.1/gcc/dwarfout.c: In function
`output_global_subroutine_die':
../../gcc-2.95.2.1/gcc/dwarfout.c:3498: virtual memory exhausted
make[2]: *** [dwarfout.o] Error 1
make[2]: Leaving directory `/mnt/lfs/usr/src/gcc-build/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/mnt/lfs/usr/src/gcc-build/gcc'
make: *** [bootstrap] Error 2

can someone please help?

regs

;D






-- 
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