免费注册 查看新帖 |

Chinaunix

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

移植blob到44B0时,编译出错!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-16 15:54 |只看该作者 |倒序浏览
[root@localhost blob]# make
Making all in doc
make[1]: Entering directory `/home/lvshishi/blob-44b0/blob/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/lvshishi/blob-44b0/blob/doc'
Making all in tools
make[1]: Entering directory `/home/lvshishi/blob-44b0/blob/tools'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/lvshishi/blob-44b0/blob/tools'
Making all in utils
make[1]: Entering directory `/home/lvshishi/blob-44b0/blob/utils'
Making all in build
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/utils/build'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/utils/build'
Making all in mkparamblock
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/utils/mkparamblock'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/utils/mkparamblock'
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/utils'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/utils'
make[1]: Leaving directory `/home/lvshishi/blob-44b0/blob/utils'
Making all in include
make[1]: Entering directory `/home/lvshishi/blob-44b0/blob/include'
Making all in blob
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/include/blob'
make  all-recursive
make[3]: Entering directory `/home/lvshishi/blob-44b0/blob/include/blob'
Making all in arch
make[4]: Entering directory `/home/lvshishi/blob-44b0/blob/include/blob/arch'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/lvshishi/blob-44b0/blob/include/blob/arch'
make[4]: Entering directory `/home/lvshishi/blob-44b0/blob/include/blob'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/lvshishi/blob-44b0/blob/include/blob'
make[3]: Leaving directory `/home/lvshishi/blob-44b0/blob/include/blob'
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/include/blob'
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/include'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/include'
make[1]: Leaving directory `/home/lvshishi/blob-44b0/blob/include'
Making all in src
make[1]: Entering directory `/home/lvshishi/blob-44b0/blob/src'
Making all in lib
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/src/lib'
gcc -DHAVE_CONFIG_H -I. -I. -I../../include/blob -I../../include -I../../include    -Os -I/usr/src/linux-2.4/include -Wall -march=armv4 -mtune=strongarm1100 -fomit-frame-pointer -fno-builtin -mapcs-32 -nostdinc -c command.c
cc1: error: invalid option `tune=strongarm1100'
cc1: error: invalid option `apcs-32'
cc1: error: bad value (armv4) for -march= switch
cc1: error: bad value (armv4) for -mcpu= switch
make[2]: *** [command.o] Error 1
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/src/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lvshishi/blob-44b0/blob/src'
make: *** [all-recursive] Error 1

[ 本帖最后由 lvshishi 于 2006-3-16 18:30 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-03-16 16:00 |只看该作者
小弟在移植blob到44b0的时候,编译出错!还请各位高手帮忙看看什么原因,小弟不胜感激啊!

论坛徽章:
0
3 [报告]
发表于 2006-03-16 17:03 |只看该作者
原帖由 lvshishi 于 2006-3-16 15:54 发表
2.4/include -Wall -march=armv4 -mtune=strongarm1100 -fomit-frame-pointer -fno-builtin -mapcs-32 -nostdinc -c command.c
cc1: error: invalid option `tune=strongarm1100'
cc1: error: invalid option `apcs-32'
cc1: error: bad value (armv4) for -march= switch
cc1: error: bad value (armv4) for -mcpu= switch

这些参数有问题吧,我记得我以前用的优龙44box板子用的是arm7tdmi的核心。你最好检查一下上面的这些参数设置有没有冲突的地方。

论坛徽章:
0
4 [报告]
发表于 2006-03-16 17:14 |只看该作者
richardhesidu ,你的意思是不是把-mtune选项改为ARM7TDMI?

论坛徽章:
0
5 [报告]
发表于 2006-03-16 17:49 |只看该作者
原帖由 lvshishi 于 2006-3-16 17:14 发表
richardhesidu ,你的意思是不是把-mtune选项改为ARM7TDMI?


-mtune是gcc的一个优化选项,可以不设置。ARM7TDMI是处理器的名称,-mcpu应该设置为arm7tdmi,-march=armv4t

[ 本帖最后由 richardhesidu 于 2006-3-16 18:00 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2006-03-16 18:18 |只看该作者
照你说的该了,不过还是有问题
[root@localhost blob]# make
Making all in doc
make[1]: Entering directory `/home/lvshishi/blob-44b0/blob/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/lvshishi/blob-44b0/blob/doc'
Making all in tools
make[1]: Entering directory `/home/lvshishi/blob-44b0/blob/tools'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/lvshishi/blob-44b0/blob/tools'
Making all in utils
make[1]: Entering directory `/home/lvshishi/blob-44b0/blob/utils'
Making all in build
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/utils/build'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/utils/build'
Making all in mkparamblock
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/utils/mkparamblock'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/utils/mkparamblock'
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/utils'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/utils'
make[1]: Leaving directory `/home/lvshishi/blob-44b0/blob/utils'
Making all in include
make[1]: Entering directory `/home/lvshishi/blob-44b0/blob/include'
Making all in blob
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/include/blob'
make  all-recursive
make[3]: Entering directory `/home/lvshishi/blob-44b0/blob/include/blob'
Making all in arch
make[4]: Entering directory `/home/lvshishi/blob-44b0/blob/include/blob/arch'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/lvshishi/blob-44b0/blob/include/blob/arch'
make[4]: Entering directory `/home/lvshishi/blob-44b0/blob/include/blob'
make[4]: Leaving directory `/home/lvshishi/blob-44b0/blob/include/blob'
make[3]: Leaving directory `/home/lvshishi/blob-44b0/blob/include/blob'
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/include/blob'
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/include'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/include'
make[1]: Leaving directory `/home/lvshishi/blob-44b0/blob/include'
Making all in src
make[1]: Entering directory `/home/lvshishi/blob-44b0/blob/src'
Making all in lib
make[2]: Entering directory `/home/lvshishi/blob-44b0/blob/src/lib'
gcc -DHAVE_CONFIG_H -I. -I. -I../../include/blob -I../../include -I../../include    -Os -I/usr/src/linux-2.4/include -Wall -march=armv4t -mcpu=arm7tdmi -fomit-frame-pointer -fno-builtin -mapcs-32 -nostdinc -c command.c
cc1: error: invalid option `apcs-32'
cc1: error: bad value (armv4t) for -march= switch
cc1: error: bad value (arm7tdmi) for -mcpu= switch
make[2]: *** [command.o] Error 1
make[2]: Leaving directory `/home/lvshishi/blob-44b0/blob/src/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lvshishi/blob-44b0/blob/src'
make: *** [all-recursive] Error 1

论坛徽章:
0
7 [报告]
发表于 2006-03-16 20:06 |只看该作者
没人知道嘛?

论坛徽章:
0
8 [报告]
发表于 2006-03-16 20:40 |只看该作者
cc1: error: invalid option `apcs-32'
cc1: error: bad value (armv4t) for -march= switch
cc1: error: bad value (arm7tdmi) for -mcpu= switch

检查一下你的编译器是否支持这几个参数?

论坛徽章:
0
9 [报告]
发表于 2006-03-16 20:56 |只看该作者
你的意思是不是我的编译器版本太旧了?

论坛徽章:
0
10 [报告]
发表于 2006-03-16 21:12 |只看该作者
LZ应该了解一下BBS问问题的方式。像这样的问题,你至少应该提供内核版本,板子的牌子,芯片型号,blob的版本,gcc编译器的版本。还有说说自己的看法,在别人回答你的问题以后,如果还是没有解决问题,应该尽可能多得反馈信息。

我猜楼主可能是在用linux原来提供的gcc编译器在编译blob。楼主有没有安装arm的工具链啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP