Trying to install gnuarm gcc compiler on Linux

Hi guys, I’m trying to install the gnuarm gcc compiler on my Linux box, Ubuntu 6.06 (I’m still a novice with Linux at the moment…).

I got the libutils portion installed with no issue but when I tried to install the gcc part (per the instructions found at both http://www.doctort.org/adam/nerd-notes/ … l#comments and gnuarm.com), I got a whole bunch of errors:

/tmp/cc9pHCec.s: Assembler messages:

/tmp/cc9pHCec.s:44: Error: junk at end of line, first unrecognized character is `@’

/tmp/cc9pHCec.s:45: Error: junk at end of line, first unrecognized character is `@’

/tmp/cc9pHCec.s:46: Error: no such instruction: `stmfd sp!,{r4,r5,lr}’

/tmp/cc9pHCec.s:47: Error: no such instruction: `ldr r5,.L12’

/tmp/cc9pHCec.s:48: Error: no such instruction: `ldrb r3,[r5,’

/tmp/cc9pHCec.s:49: Error: expecting operand after ‘,’; got nothing

/tmp/cc9pHCec.s:50: Error: no such instruction: `ldmnefd sp!,{r4,r5,pc}’

/tmp/cc9pHCec.s:51: Error: no such instruction: `ldr r4,.L12+4’

/tmp/cc9pHCec.s:52: Error: no such instruction: `ldr r3,[r4,’

/tmp/cc9pHCec.s:53: Error: no such instruction: `ldr r2,[r3,’

/tmp/cc9pHCec.s:54: Error: expecting operand after ‘,’; got nothing

/tmp/cc9pHCec.s:55: Error: no such instruction: `beq .L4’

/tmp/cc9pHCec.s:57: Error: too many memory references for `add’

/tmp/cc9pHCec.s:58: Error: invalid char ‘[’ beginning operand 2 `[r4’

/tmp/cc9pHCec.s:59: Error: too many memory references for `mov’

/tmp/cc9pHCec.s:60: Error: no such instruction: `bx r2’

/tmp/cc9pHCec.s:61: Error: no such instruction: `ldr r3,[r4,’

/tmp/cc9pHCec.s:62: Error: no such instruction: `ldr r2,[r3,’

/tmp/cc9pHCec.s:63: Error: expecting operand after ‘,’; got nothing

/tmp/cc9pHCec.s:64: Error: no such instruction: `bne .L9’

/tmp/cc9pHCec.s:66: Error: no such instruction: `ldr r3,.L12+8’

/tmp/cc9pHCec.s:67: Error: expecting operand after ‘,’; got nothing

/tmp/cc9pHCec.s:68: Error: no such instruction: `ldrne r0,.L12+12’

/tmp/cc9pHCec.s:69: Error: no such instruction: `movne lr,pc’

/tmp/cc9pHCec.s:70: Error: no such instruction: `bxne r3’

/tmp/cc9pHCec.s:72: Error: expecting operand after ‘,’; got nothing

/tmp/cc9pHCec.s:73: Error: invalid char ‘[’ beginning operand 2 `[r5’

/tmp/cc9pHCec.s:74: Error: no such instruction: `ldmfd sp!,{r4,r5,pc}’

/tmp/cc9pHCec.s:85: Error: junk at end of line, first unrecognized character is `@’

/tmp/cc9pHCec.s:86: Error: junk at end of line, first unrecognized character is `@’

/tmp/cc9pHCec.s:87: Error: invalid char ‘[’ beginning operand 2 `[sp’

/tmp/cc9pHCec.s:89: Error: no such instruction: `bl __do_global_dtors_aux’

/tmp/cc9pHCec.s:91: Error: no such instruction: `ldr pc,[sp],’

/tmp/cc9pHCec.s:100: Error: junk at end of line, first unrecognized character is `@’

/tmp/cc9pHCec.s:101: Error: junk at end of line, first unrecognized character is `@’

/tmp/cc9pHCec.s:102: Error: no such instruction: `ldr r3,.L23’

/tmp/cc9pHCec.s:103: Error: expecting operand after ‘,’; got nothing

/tmp/cc9pHCec.s:104: Error: invalid char ‘[’ beginning operand 2 `[sp’

/tmp/cc9pHCec.s:105: Error: no such instruction: `ldr r0,.L23+4’

/tmp/cc9pHCec.s:106: Error: no such instruction: `ldr r1,.L23+8’

/tmp/cc9pHCec.s:107: Error: no such instruction: `movne lr,pc’

/tmp/cc9pHCec.s:108: Error: no such instruction: `bxne r3’

/tmp/cc9pHCec.s:110: Error: no such instruction: `ldr r0,.L23+12’

/tmp/cc9pHCec.s:111: Error: no such instruction: `ldr r3,[r0,’

/tmp/cc9pHCec.s:112: Error: expecting operand after ‘,’; got nothing

/tmp/cc9pHCec.s:113: Error: no such instruction: `ldr r3,.L23+16’

/tmp/cc9pHCec.s:114: Error: no such instruction: `ldreq pc,[sp],’

/tmp/cc9pHCec.s:115: Error: expecting operand after ‘,’; got nothing

/tmp/cc9pHCec.s:116: Error: no such instruction: `ldreq pc,[sp],’

/tmp/cc9pHCec.s:117: Error: too many memory references for `mov’

/tmp/cc9pHCec.s:118: Error: no such instruction: `bx r3’

/tmp/cc9pHCec.s:119: Error: no such instruction: `ldr pc,[sp],’

/tmp/cc9pHCec.s:131: Error: junk at end of line, first unrecognized character is `@’

/tmp/cc9pHCec.s:132: Error: junk at end of line, first unrecognized character is `@’

/tmp/cc9pHCec.s:133: Error: invalid char ‘[’ beginning operand 2 `[sp’

/tmp/cc9pHCec.s:135: Error: no such instruction: `bl frame_dummy’

/tmp/cc9pHCec.s:137: Error: no such instruction: `ldr pc,[sp],’

make[3]: *** [crtbegin.o] Error 1

make[3]: Leaving directory `/home/oem/ARMstuff/build-gcc/gcc’

make[2]: *** [extra] Error 2

make[2]: Leaving directory `/home/oem/ARMstuff/build-gcc/gcc’

make[1]: *** [stmp-multilib] Error 2

make[1]: Leaving directory `/home/oem/ARMstuff/build-gcc/gcc’

make: *** [all-gcc] Error 2

Does anybody know how to fix this?

Thanks,

Steve

/tmp/cc9pHCec.s: Assembler messages:

/tmp/cc9pHCec.s:44: Error: junk at end of line, first unrecognized character is `@’

/tmp/cc9pHCec.s:45: Error: junk at end of line, first unrecognized character is `@’

/tmp/cc9pHCec.s:46: Error: no such instruction: `stmfd sp!,{r4,r5,lr}’

It looks like invoking gas is not ARM-aware, i.e., native i386 instead. Mangled PATH, or procedural error.