Hello all!
This is my first build lfs by refer to LFS BOOK 6.0.
I use FC4 as host system.
I rename /usr/bin/gcc to gcc4 and rename /usr/bin/gcc32 to gcc.Because I think 
use gcc-3.2 should be better,may be it can reduce problems.
Now I exec the command:
===================================================================
../gcc-3.4.1/configure --prefix=/tools \
    --libexecdir=/tools/lib --with-local-prefix=/tools \
    --disable-nls --enable-shared --enable-languages=c
===================================================================
but the system shows errors:
===================================================================
lfs:/tools/gcc-build$../gcc-3.4.1/configure --prefix=/tools \
>     --libexecdir=/tools/lib --with-local-prefix=/tools \
>     --disable-nls --enable-shared --enable-languages=c
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
*** This configuration is not supported in the following subdirectories:
     target-libstdc++-v3
    (Any other directories should still work fine.)
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0xc): In 
function `_start':
: undefined reference to `__libc_csu_fini'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x11): In 
function `_start':
: undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
====================================================================
When I "su - root",it can continue,but I will meet the same problem about ld 
later.
Please tell me how to deal with it.Thank you very much!
-- 
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