免费注册 查看新帖 |

Chinaunix

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

[内核入门] arm-linux tool chain制作 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-26 20:40 |只看该作者 |倒序浏览
大家好,我在编译gcc3.3.4时碰到如下问题:


/home/zhenguo/work/armlinux/build-tools/build-gcc/gcc/xgcc -B/home/zhenguo/work/armlinux/build-tools/build-gcc/gcc/ -B/home/zhenguo/armlinux/tools/arm-linux/bin/ -B/home/zhenguo/armlinux/tools/arm-linux/lib/ -isystem /home/zhenguo/armlinux/tools/arm-linux/include -O2 -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -I. -I. -I../../gcc-3.3.6/gcc -I../../gcc-3.3.6/gcc/. -I../../gcc-3.3.6/gcc/config -I../../gcc-3.3.6/gcc/../include  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss  \
          -Dinhibit_libc -c ../../gcc-3.3.6/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
/tmp/ccmqEFkZ.s: Assembler messages:
/tmp/ccmqEFkZ.s:36: Error: junk at end of line, first unrecognized character is `@'
/tmp/ccmqEFkZ.s:37: Error: junk at end of line, first unrecognized character is `@'
/tmp/ccmqEFkZ.s:38: Error: no such instruction: `stmfd sp!,{r4,r5,lr}'
/tmp/ccmqEFkZ.s:39: Error: no such instruction: `ldr r5,.L10'
/tmp/ccmqEFkZ.s:40: Error: no such instruction: `ldrb r3,[r5,'
/tmp/ccmqEFkZ.s:41: Error: expecting operand after ','; got nothing
/tmp/ccmqEFkZ.s:42: Error: no such instruction: `ldmnefd sp!,{r4,r5,pc}'
/tmp/ccmqEFkZ.s:43: Error: no such instruction: `ldr r4,.L10+4'
/tmp/ccmqEFkZ.s:44: Error: no such instruction: `ldr r3,[r4,'
/tmp/ccmqEFkZ.s:45: Error: no such instruction: `ldr r2,[r3,'
/tmp/ccmqEFkZ.s:46: Error: expecting operand after ','; got nothing
/tmp/ccmqEFkZ.s:47: Error: no such instruction: `beq .L9'
/tmp/ccmqEFkZ.s:49: Error: no such instruction: `ldr r3,[r4,'
/tmp/ccmqEFkZ.s:50: Error: too many memory references for `add'
/tmp/ccmqEFkZ.s:51: Error: invalid char '[' beginning operand 2 `[r4'
/tmp/ccmqEFkZ.s:52: Error: too many memory references for `mov'
/tmp/ccmqEFkZ.s:53: Error: too many memory references for `mov'
/tmp/ccmqEFkZ.s:54: Error: no such instruction: `ldr r3,[r4,'
/tmp/ccmqEFkZ.s:55: Error: no such instruction: `ldr r2,[r3,'
/tmp/ccmqEFkZ.s:56: Error: expecting operand after ','; got nothing
/tmp/ccmqEFkZ.s:57: Error: no such instruction: `bne .L6'
/tmp/ccmqEFkZ.s:59: Error: no such instruction: `ldr r3,.L10+8'
/tmp/ccmqEFkZ.s:60: Error: expecting operand after ','; got nothing
/tmp/ccmqEFkZ.s:61: Error: no such instruction: `ldrne r0,.L10+12'
/tmp/ccmqEFkZ.s:62: Error: no such instruction: `movne lr,pc'
/tmp/ccmqEFkZ.s:63: Error: no such instruction: `movne pc,r3'
/tmp/ccmqEFkZ.s:65: Error: expecting operand after ','; got nothing
/tmp/ccmqEFkZ.s:66: Error: invalid char '[' beginning operand 2 `[r5'
/tmp/ccmqEFkZ.s:67: Error: no such instruction: `ldmfd sp!,{r4,r5,pc}'
/tmp/ccmqEFkZ.s:78: Error: junk at end of line, first unrecognized character is `@'
/tmp/ccmqEFkZ.s:79: Error: junk at end of line, first unrecognized character is `@'
/tmp/ccmqEFkZ.s:80: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccmqEFkZ.s:82: Error: no such instruction: `bl __do_global_dtors_aux'
/tmp/ccmqEFkZ.s:84: Error: no such instruction: `ldr pc,[sp],'
/tmp/ccmqEFkZ.s:90: Error: junk at end of line, first unrecognized character is `@'
/tmp/ccmqEFkZ.s:91: Error: junk at end of line, first unrecognized character is `@'
/tmp/ccmqEFkZ.s:92: Error: no such instruction: `ldr r3,.L16'
/tmp/ccmqEFkZ.s:93: Error: expecting operand after ','; got nothing
/tmp/ccmqEFkZ.s:94: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccmqEFkZ.s:95: Error: no such instruction: `ldr r0,.L16+4'
/tmp/ccmqEFkZ.s:96: Error: no such instruction: `ldr r1,.L16+8'
/tmp/ccmqEFkZ.s:97: Error: no such instruction: `movne lr,pc'
/tmp/ccmqEFkZ.s:98: Error: no such instruction: `movne pc,r3'
/tmp/ccmqEFkZ.s:100: Error: no such instruction: `ldr r0,.L16+12'
/tmp/ccmqEFkZ.s:101: Error: no such instruction: `ldr r3,[r0,'
/tmp/ccmqEFkZ.s:102: Error: expecting operand after ','; got nothing
/tmp/ccmqEFkZ.s:103: Error: no such instruction: `ldreq pc,[sp],'
/tmp/ccmqEFkZ.s:104: Error: no such instruction: `ldr r3,.L16+16'
/tmp/ccmqEFkZ.s:105: Error: expecting operand after ','; got nothing
/tmp/ccmqEFkZ.s:106: Error: no such instruction: `ldreq pc,[sp],'
/tmp/ccmqEFkZ.s:107: Error: no such instruction: `ldr lr,[sp],'
/tmp/ccmqEFkZ.s:108: Error: no such instruction: `b _Jv_RegisterClasses'
/tmp/ccmqEFkZ.s:120: Error: junk at end of line, first unrecognized character is `@'
/tmp/ccmqEFkZ.s:121: Error: junk at end of line, first unrecognized character is `@'
/tmp/ccmqEFkZ.s:122: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccmqEFkZ.s:124: Error: no such instruction: `bl frame_dummy'
/tmp/ccmqEFkZ.s:126: Error: no such instruction: `ldr pc,[sp],'
make[1]: *** [crtbegin.o] 错误 1
make[1]:正在离开目录 `/home/zhenguo/work/armlinux/build-tools/build-gcc/gcc'
make: *** [all-gcc] 错误 2

请问什么原因造成的?如何解决?谢谢!

论坛徽章:
0
2 [报告]
发表于 2012-06-27 11:02 |只看该作者
大侠们指点一下,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP