编译binutils出错
我在构建交叉工具链,编译binutils时,怎么都不成功。关于环境变量的,我已经按照网的资料设置好。差点忘了,binutils是2.15版本的。../binutils-2.15/configure --target=$TARGET --prefix=$PREFIX
此使命令的结果是:
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for i686-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i686-pc-linux-gnu-as... no
checking for as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... (cached) ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... (cached) windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... (cached) objdump
checking for arm-linux-ar... no
checking for arm-linux-as... no
checking for arm-linux-dlltool... no
checking for arm-linux-ld... no
checking for arm-linux-nm... no
checking for arm-linux-ranlib... no
checking for arm-linux-windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
creating ./config.status
creating Makefile
出现很多的no,不知道有没有错,继续执行下一步
make
此命令出错啦,结果是:
Configuring in libiberty
configure: loading cache ./config.cache
configure: error: `target_alias' has changed since the previous run:
configure: former value:
configure: current value: arm-linux
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-libiberty] Error 1
按照提示,执行make distclean再执行一次,结果还是一样。请问这个问题如何解决呢? 自己顶一个 会的就给点意见啊,我现在没有分,所以给不了分,请大家帮帮啊 呼唤高手啊 你的编译环境都没有装,这么能成功呢?下一个你需要的交叉编译器,压解到根目录。在安装的过程中,用--CROSS-COMPILE 选项指定你的交叉编译器的路径
页:
[1]