LinuxSir.cn,穿越时空的Linuxsir!

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

编译GCC4.3.0静态出现问题。。。。

[复制链接]
发表于 2008-6-14 17:10:10 | 显示全部楼层 |阅读模式
Configuring in ./gcc
configure: loading cache ./config.cache
configure: error: `GMPINC' has changed since the previous run:
configure:   former value:  -I/slfs/systools/include
configure:   current value: -I/slfs/systools/include
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make: *** [configure-gcc] Error 1
bash-3.00$                     

采用的 地球发动机 的  用GCC 4.3-20040810构造SYSROOT工具链和youbest的 从源代码建立Linux系统系列之(Sysroot LFS 1.0)的环境变量,在第一遍GCC时出了问题。。环境变量如下
bash-3.00$ cat ~/.bashrc
set +h
umask 022
export TARGET_DIR="/slfs"
export LC_ALL=POSIX
export BUILD_DIR="${TARGET_DIR}/build"
export DOWNLOAD_DIR="${TARGET_DIR}/download"
export BUILD_TARGET=${MACHTYPE}
export BUILD_HOST=${BUILD_TARGET}.old
export PATH=${TARGET_DIR}/systools/bin:/bin:/usr/bin
unset CFLAGS
unset CXXFLAGS
bash-3.00$
发表于 2008-6-14 20:24:03 | 显示全部楼层
你似乎进行了两次configure,而第二次没有删除gcc-build目录重新再来。请把该目录删除重建,然后重新configure,make
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-14 20:41:15 | 显示全部楼层
这个已经过了。。。又出现新问题了。。。
GLIBC过不去。不知道是不是binutils太老。。。用的是binutils-2.16.1,现在寻找答案中
回复 支持 反对

使用道具 举报

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

本版积分规则

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