QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2178|回复: 3

求助,制作交叉编译gcc时出现错误

[复制链接]
发表于 2007-5-21 12:28:05 | 显示全部楼层 |阅读模式
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... /mygod/arm/arm-linux/bin/strip
checking for --enable-version-specific-runtime-libs... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-linux-gcc... /mygod/gcc-4.2.0/host-i686-pc-linux-gnu/gcc/xgcc -B/mygod/gcc-4.2.0/host-i686-pc-linux-gnu/gcc/ -B/mygod/arm/arm-linux/bin/ -B/mygod/arm/arm-linux/lib/ -isystem /mygod/arm/arm-linux/include -isystem /mygod/arm/arm-linux/sys-include
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libmudflap] 错误 1
make[1]: Leaving directory `/mygod/gcc-4.2.0'
make: *** [all] 错误 2

我的配置参数如下
./configure --target=arm-linux --prefix=/mygod/arm --disable-shared --disable-threads --disable-nls --with-newlib --enable-languages=c --without-headers --with-binutils=/mygod/arm/arm-linux/bin
发表于 2007-6-1 11:50:21 | 显示全部楼层
configure +--disable-libmudflap即可
回复

使用道具 举报

发表于 2007-6-1 12:11:09 | 显示全部楼层
如果编译成功了,回复一下过程,我刚搞定这个libmudflap的问题,后面又是出现没法libiberty的问题了,disable也不行,用的是gcc-4.2,fedora5下,host上的gcc是4.1版本,不知道是不是这个原因
回复

使用道具 举报

 楼主| 发表于 2007-6-4 22:22:05 | 显示全部楼层
后边出现了一个相似的错误,忘了是什么了,disable过去了。还有就是把binutils的目录给设一下,这个也出错过
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-28 00:38 , Processed in 0.099440 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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