找回密码
 注册
搜索
查看: 1799|回复: 2

arm-linux tool chain 制作问题

[复制链接]
发表于 2012-6-27 11:22:32 | 显示全部楼层 |阅读模式
我在制作tool chain过程中,编译gcc时遇到如下问题
/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

貌似是不认识arm指令导致,是哪个过程出错了吗?如何解决?
发表于 2012-12-24 23:43:38 | 显示全部楼层
不知道我还没入门呢
点评回复

使用道具 举报

发表于 2014-1-17 07:16:34 | 显示全部楼层
我都没看明白呢。
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-11-23 00:49 , Processed in 0.043833 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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