LinuxSir.cn,穿越时空的Linuxsir!

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

请问 5.4 gcc-3.4.3 编译第一遍错误 谢谢!!1

[复制链接]
发表于 2006-11-28 21:58:56 | 显示全部楼层 |阅读模式
这是我在命令
为编译 GCC 作准备:

../gcc-3.4.3/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 target-libf2c target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc    (Any other directories should still work fine.)
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libc.so: file format not recognized; treating as linker script
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libc.so:5: syntax error
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.
发表于 2006-11-28 22:07:10 | 显示全部楼层
似乎主系统存在一些问题?用LFS的LiveCD试试看呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-28 22:13:41 | 显示全部楼层
谢谢~
看了你们写的不少帖子,很有帮助。
今天开始动手的,这里的最后一句话说我要设置编译环境为CC,请问是什么意思
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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