Problem compiling GCC

Robert Larsen robert at the-playground.dk
Sat Oct 26 14:01:28 PDT 2002


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
I have no name!:/usr/src/gcc-build# $CC
gcc: no input files
I have no name!:/usr/src/gcc-build#

I have followed the descriptions without any changes to parameters.
Anybody knows what's wrong here ??

Robert

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