On Thu, 24 Nov 2011 19:08:33 -0600
Eleanore Boyd <[email protected]> wrote:

> On 11/24/2011 10:41 AM, Aaron Hill wrote:
> > I am using Version 7.0 of the LFS book. When I try to compile GCC with 
> > the make command as root, I receive the following error:
> >
> > cc1-checksum.o main.o tree-browser.o libbackend.a ../libcpp/libcpp.a 
> > ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   
> > ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   
> >  -L/mnt/lfs/sources/gcc-build/./gmp/.libs 
> > -L/mnt/lfs/sources/gcc-build/mpfr/src/.libs 
> > -L/mnt/lfs/sources/gcc-build/./mpc/src/.libs -lmpc -lmpfr -lgmp 
> > -rdynamic -ldl  -L../zlib -lz
> > collect2: ld terminated with signal 9 [Killed]
> > make[3]: *** [cc1] Error 1
> > make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
> > make[2]: *** [all-stage1-gcc] Error 2
> > make[2]: Leaving directory `/mnt/lfs/sources/gcc-build'
> > make[1]: *** [stage1-bubble] Error 2
> > make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
> > amake: *** [all] Error 2
> >
> > I saw a similar problem at this post 
> > <http://www.linuxfromscratch.org/pipermail/lfs-support/2011-September/041326.html>,
> >  
> > but the person was using an older version of the book. Can you help me?
> >
> >
> I think something killed the process, as it even says so. Make sure no 
> antivirus is running in the background, and make sure nothing is outside 
> the chroot environment where it won't be seen. Also, make sure there 
> isn't a process killer running when you're doing this.

I agree, it looks like something killed the process. My suspicion is
that it was the kernel's "out of memory" code at work. Gcc needs quite
a lot of RAM to compile these days. Do you have a large enough swap
partition?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to