大家好,最近我在安装arm-linux-gcc遇到了一个问题,被难住了,请各位指教!
--- 在编译gcc第一阶段时, make all-gcc 时,遇到了gcc好像无法识别编译arm汇编指令的现象,其提示如下:
/root/Desktop/ctools/BUILD/gcc-3.4.4-stage1/gcc/xgcc -B/root/Desktop/ctools/BUILD/gcc-3.4.4-stage1/gcc/ -B/usr/local/arm/3.4.4/arm-linux/bin/ -B/usr/local/arm/3.4.4/arm-linux/lib/ -isystem /usr/local/arm/3.4.4/arm-linux/include -isystem /usr/local/arm/3.4.4/arm-linux/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../../gcc-3.4.4/gcc -I../../../gcc-3.4.4/gcc/. -I../../../gcc-3.4.4/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time \ -c ../../../gcc-3.4.4/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o /tmp/cc1OVxCs.s: Assembler messages: /tmp/cc1OVxCs.s:36: Error: junk at end of line, first unrecognized character is `@' /tmp/cc1OVxCs.s:37: Error: junk at end of line, first unrecognized character is `@' /tmp/cc1OVxCs.s:38: Error: no such instruction: `stmfd sp!,{r4,r5,lr}' /tmp/cc1OVxCs.s:39: Error: no such instruction: `ldr r5,.L12' /tmp/cc1OVxCs.s:40: Error: no such instruction: `ldrb r3,[r5,' /tmp/cc1OVxCs.s:41: Error: expecting operand after ','; got nothing /tmp/cc1OVxCs.s:42: Error: no such instruction: `ldmnefd sp!,{r4,r5,pc}' /tmp/cc1OVxCs.s:43: Error: no such instruction: `ldr r4,.L12+4' /tmp/cc1OVxCs.s:44: Error: no such instruction: `b .L9' /tmp/cc1OVxCs.s:46: Error: no such instruction: `ldr r3,][r4,' /tmp/cc1OVxCs.s:47: Error: too many memory references for `add' /tmp/cc1OVxCs.s:48: Error: invalid char '][' beginning operand 2 `][r4' /tmp/cc1OVxCs.s:49: Error: too many memory references for `mov' /tmp/cc1OVxCs.s:50: Error: too many memory references for `mov' /tmp/cc1OVxCs.s:52: Error: no such instruction: `ldr r3,][r4,' /tmp/cc1OVxCs.s:53: Error: no such instruction: `ldr r2,][r3,' /tmp/cc1OVxCs.s:54: Error: expecting operand after ','; got nothing /tmp/cc1OVxCs.s:55: Error: no such instruction: `bne .L11' /tmp/cc1OVxCs.s:56: Error: no such instruction: `ldr r3,.L12+8' /tmp/cc1OVxCs.s:57: Error: expecting operand after ','; got nothing /tmp/cc1OVxCs.s:58: Error: no such instruction: `ldrne r0,.L12+12' /tmp/cc1OVxCs.s:59: Error: no such instruction: `movne lr,pc' /tmp/cc1OVxCs.s:60: Error: no such instruction: `movne pc,r3' /tmp/cc1OVxCs.s:62: Error: expecting operand after ','; got nothing /tmp/cc1OVxCs.s:63: Error: invalid char '][' beginning operand 2 `][r5' /tmp/cc1OVxCs.s:64: Error: no such instruction: `ldmfd sp!,{r4,r5,pc}' /tmp/cc1OVxCs.s:75: Error: junk at end of line, first unrecognized character is `@' /tmp/cc1OVxCs.s:76: Error: junk at end of line, first unrecognized character is `@' /tmp/cc1OVxCs.s:77: Error: invalid char '][' beginning operand 2 `][sp' /tmp/cc1OVxCs.s:80: Error: no such instruction: `bl __do_global_dtors_aux' /tmp/cc1OVxCs.s:83: Error: no such instruction: `ldr pc,][sp],' /tmp/cc1OVxCs.s:89: Error: junk at end of line, first unrecognized character is `@' /tmp/cc1OVxCs.s:90: Error: junk at end of line, first unrecognized character is `@' /tmp/cc1OVxCs.s:91: Error: no such instruction: `ldr r3,.L18' /tmp/cc1OVxCs.s:92: Error: expecting operand after ','; got nothing /tmp/cc1OVxCs.s:93: Error: invalid char '[' beginning operand 2 `][sp' /tmp/cc1OVxCs.s:94: Error: no such instruction: `ldr r0,.L18+4' /tmp/cc1OVxCs.s:95: Error: no such instruction: `ldr r1,.L18+8' /tmp/cc1OVxCs.s:96: Error: no such instruction: `movne lr,pc' /tmp/cc1OVxCs.s:97: Error: no such instruction: `movne pc,r3' /tmp/cc1OVxCs.s:99: Error: no such instruction: `ldr r0,.L18+12' /tmp/cc1OVxCs.s:100: Error: no such instruction: `ldr r3,][r0,' /tmp/cc1OVxCs.s:101: Error: expecting operand after ','; got nothing /tmp/cc1OVxCs.s:102: Error: no such instruction: `ldreq pc,][sp],' /tmp/cc1OVxCs.s:103: Error: no such instruction: `ldr r3,.L18+16' /tmp/cc1OVxCs.s:104: Error: expecting operand after ','; got nothing /tmp/cc1OVxCs.s:105: Error: no such instruction: `ldreq pc,[sp],' /tmp/cc1OVxCs.s:106: Error: no such instruction: `ldr lr,[sp],' /tmp/cc1OVxCs.s:107: Error: no such instruction: `b _Jv_RegisterClasses' /tmp/cc1OVxCs.s:119: Error: junk at end of line, first unrecognized character is `@' /tmp/cc1OVxCs.s:120: Error: junk at end of line, first unrecognized character is `@' /tmp/cc1OVxCs.s:121: Error: invalid char '[' beginning operand 2 `][sp' /tmp/cc1OVxCs.s:124: Error: no such instruction: `bl frame_dummy' /tmp/cc1OVxCs.s:127: Error: no such instruction: `ldr pc,][sp],' make[1]: *** [crtbegin.o] 错误 1 make[1]: Leaving directory `/root/Desktop/ctools/BUILD/gcc-3.4.4-stage1/gcc' make: *** [all-gcc] 错误 2
请问各位有什么办法解决这个问题,谢谢先! |