GCC install cant find compiler

A D B hackmaster451 at lycos.com
Fri Jan 3 03:15:34 PST 2003

I'm trying to install gcc for the second time (not static, in the chrooted environment), and I get the following errors:

../gcc-3.2/configure --prefix=/usr --enable-shared \
>     --enable-languages=c,c++ --enable-threads=posix \
>     --with-slibdir=/lib --enable-__cxa_atexit \
>     --enable-clocale=gnu
Configuring for a i686-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/lfs-packages-4.0/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 -s -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

I checked, and gcc does exist at /static/bin/gcc (non-chrooted path is /mnt/lfs/static/bin/gcc).
The original $CC variable was 'gcc -s', and its oviously not working. I tried setting it to '/static/bin/gcc -s' and that produced the same exact error.

Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
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