LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 725|回复: 0

请问大家,这个问题怎么解决。谢谢!

[复制链接]
发表于 2005-8-3 17:09:40 | 显示全部楼层 |阅读模式
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 show 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!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表