免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2849 | 回复: 4
打印 上一主题 下一主题

问一个linux交叉编译器的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-07-09 08:05 |只看该作者 |倒序浏览
在我对配置的uboot进行测试编译的时候,# make test2410_config可以通过,但是

# make CROSS_COMPILE=arm-linux- 总是通不过。出现如下情况:

[root@localhost u-boot-1.1.6]# make CROSS_COMPILE=arm-linux-
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/u-boot-1.1.6/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/u-boot-1.1.6/tools'
make[1]: Entering directory `/home/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/u-boot-1.1.6/examples'
make[1]: Entering directory `/home/u-boot-1.1.6/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/u-boot-1.1.6/post'
make[1]: Entering directory `/home/u-boot-1.1.6/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory `/home/u-boot-1.1.6/tools'
gcc -Wall -pedantic -idirafter /home/u-boot-1.1.6/include -idirafter /home/u-boot-1.1.6/include2 -idirafter /home/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc: installation problem, cannot exec `cc1': No such file or directory
make[1]: *** [img2srec.o] Error 1
make[1]: Leaving directory `/home/u-boot-1.1.6/tools'
make: *** [tools] Error 2



怎么办,不知道为什么出这些错

论坛徽章:
2
摩羯座
日期:2013-10-10 14:29:04天蝎座
日期:2014-01-03 09:14:49
2 [报告]
发表于 2010-07-09 08:23 |只看该作者
gcc -Wall -pedantic -idirafter /home/u-boot-1.1.6/include -idirafter /home/u-boot-1.1.6/include2 -idirafter /home/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c

手动执行这条命令试试,看看是否也有错。

论坛徽章:
0
3 [报告]
发表于 2012-05-13 01:00 |只看该作者
在制作交叉编译器时遇到问题。这个是怎么回事儿啊,求大侠帮助啊

OG6IZTHV7`693]~{}${853K.jpg (29.04 KB, 下载次数: 18)

编译GNU binutil

编译GNU binutil

论坛徽章:
2
摩羯座
日期:2013-10-10 14:29:04天蝎座
日期:2014-01-03 09:14:49
4 [报告]
发表于 2012-05-14 10:05 |只看该作者
没有找到configure文件,看看路径 “../../src/binutils-2.16” 是否正确。

论坛徽章:
3
2015年迎新春徽章
日期:2015-03-04 09:56:11数据库技术版块每日发帖之星
日期:2016-08-03 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
5 [报告]
发表于 2012-05-15 19:19 |只看该作者
怎么感觉是本地编译器gcc安装有问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP