Problem compiling GCC

Chris Lingard chris at stockwith.co.uk
Sat Oct 26 15:55:59 PDT 2002


Robert Larsen wrote:

> Hi all
> 
> I have a problem installing LFS. In chapter 6 when installing GCC I get
> this:
> 
> I have no name!:/usr/src/gcc-3.2# patch -Np1 -i ../gcc-3.2.patch &&
>  > mkdir ../gcc-build &&
>  > cd ../gcc-build &&
>  > ../gcc-3.2/configure --prefix=/usr --enable-shared \
>  >     --enable-languages=c,c++ --enable-threads=posix \
>  >     --with-slibdir=/lib --enable-__cxa_atexit \
>  >     --enable-clocale=gnu &&
>  > make bootstrap &&
>  > make install &&
>  > ln -s ../usr/bin/cpp /lib &&
>  > ln -s ../bin/cpp /usr/lib &&
>  > ln -s gcc /usr/bin/cc
> patching file gcc/calls.c
> patching file gcc/calls.c
> patching file gcc/config/i386/i386.h
> patching file gcc/expr.c
> Configuring for a i586-pc-linux-gnulibc1 host.
> *** This configuration is not supported in the following subdirectories:
>      target-libf2c target-libffi target-boehm-gc target-zlib
> target-libjava zlib fastjar target-libobjc
>     (Any other directories should still work fine.)
> Created "Makefile" in /usr/src/gcc-build using "mh-frag" and "mt-frag"
> 
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/ld:
> cannot open crt1.o: No such file or directory
> collect2: ld returned 1 exit status
> *** The command '/static/bin/gcc -o conftest -g -O2   conftest.c' failed.
> *** You must set the environment variable CC to a working compiler.
> I have no name!:/usr/src/gcc-build#
> 
> I have set CC:
> I have no name!:/usr/src/gcc-build# echo $CC
> /static/bin/gcc

Your implementation of package Grep is probably wrong

Try  ldd  /static/bin/egrep  this should return
"not a dynamic executable"

If not, rebuild package 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