- 论坛徽章:
- 0
|
本帖最后由 zuiwei 于 2012-05-02 09:32 编辑
我在CentOS6.2 64位上面下载了gnu官网的gcc4.7的tar包。
我之前编译安装了对应的gmp, mpc, mpfr这3个包,安装完了都ldconfig了。
然后在gcc源码目录里面config没有问题。
make了40多分钟以后,报错:
make[3]: Leaving directory `/home/a/下载/gcc-4.7.0/host-x86_64-unknown-linux-gnu/gcc'
Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
configure: loading cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-lipo... lipo
checking for x86_64-unknown-linux-gnu-nm... /home/a/下载/gcc-4.7.0/host-x86_64-unknown-linux-gnu/gcc/nm
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc... /home/a/下载/gcc-4.7.0/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/home/a/下载/gcc-4.7.0/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/home/a/下载/gcc-4.7.0/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] 错误 1
make[2]: Leaving directory `/home/a/下载/gcc-4.7.0'
make[1]: *** [stage1-bubble] 错误 2
make[1]: Leaving directory `/home/a/下载/gcc-4.7.0'
make: *** [all] 错误 2
config.log.gz
(6.54 KB, 下载次数: 3)
这是个什么错误呢? configure: error: cannot compute suffix of object files: cannot compile |
|