compiling error on gcc-3.2

Chris Lingard chris at stockwith.co.uk
Sun Oct 13 15:48:27 PDT 2002


jose nuno neto wrote:

> Hello,
> 
> I've been trying to install a linux system with LFS
> 4.0
> but i'm getting compile error with gcc at Chapter 6
> 
> I've followed latest instructions on the cvs but
> still...
> http://www.linuxfromscratch.org/view/cvs/chapter06/gcc.html
> 
> Let me know should i do
> 
> Thanxs
> Jose' Neto
> 
> out put message
> 
> I have no name!:/usr/src/gcc-3.2# cd ../gcc-build
> <c-build# ../gcc-3.2/configure --prefix=/usr
> --enable-shared \
>>  --enable-languages=c,c++,objc,f77,ada
> --enable-threads=posix \
>>  --with-slibdir=/lib --enable-__cxa_atexit
> Configuring for a i586-pc-linux-gnulibc1 host.
> *** This configuration is not supported in the
> following subdirectories:
>      target-libffi target-boehm-gc target-zlib
> target-libjava zlib fastjar
>     (Any other directories should still work fine.)
> Created "Makefile" in /usr/src/gcc-build using
> "mh-frag" and "mt-frag"
> 
/static/lib/gcc-lib/i586-pc-linux-gnu/3.2/../../../../i586-pc-linux-gnu/bin/ld:
> cannot open crt1.o: No such file or directory
> collect2: ld returned 1 exit stat
> *** The command 'cc -o conftest -g   conftest.c'
> failed.
> *** You must set the environment variable CC to a
> working compiler.

Please check that you have installed grep correctly.  You should have
a static program called egrep in your LFS system

Check for this by doing    ldd  $LFS/static/bin/egrep

If this reports that it is dynamically linked then reinstall Grep.

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



More information about the lfs-support mailing list