assembler errors compiling arm-none-elf

Owen Emry Owen.Emry@corp.palm.com
Wed Jul 31 10:43:00 GMT 2002


> You have either built your assembler incorrectly, or gcc is 
> not finding it 
> and is using the native one (most likely).  Have you got 
> <prefix>/bin on 
> your PATH?  <prefix> is the prefix you used to configure the 
> assembler.

Yes, it looked to me as though it was using the wrong assembler, too, but
the install path (~/bin) definitely was in my path.

I finally built binutils+gcc successfully by configuring with a prefix of
/usr/local instead of ~.  This really was the only difference.

I'm wondering if it could be that the new assembler couldn't find libopcodes
or something like that, but I don't understand the whole gcc architecture
enough to know what I'm talking about.  :)

Anyway, thanks for your help!

Regards,
Owen



> 
> > I've seen suggestions that this is caused by not having an 
> ARM binutils
> > installed, but it seems to have built itself without 
> trouble, and the
> > binaries are definitely in my path.
> > 
> > What am I doing wrong??  Any input greatly apprecated.  
> Thanks very much in
> > advance!
> > 
> > Regards,
> > Owen
> > 
> > 
> > 
> > 
> > for name in _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls; \
> > do \
> >   echo ${name}; \
> >   /home/owen/build/gcc/gcc/xgcc -B/home/owen/build/gcc/gcc/
> > -B~//arm-none-elf/bin/ -I~//arm-none-elf/include -O2  -DC
> > ROSS_COMPILE -DIN_GCC     -g -O2 -I./include  -Dinhibit_libc -g1
> > -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I../..
> > /../src/gcc-2.95.3/gcc -I../../../src/gcc-2.95.3/gcc/config
> > -I../../../src/gcc-2.95.3/gcc/../include -c -DL${name} li
> > bgcc1.S; \
> >   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
> >   mv libgcc1.o ${name}.o; \
> >   arm-none-elf-ar rc tmplibgcc1.a ${name}.o; \
> >   rm -f ${name}.o; \
> > done
> > _udivsi3
> > /tmp/ccaC2BGe.s: Assembler messages:
> > /tmp/ccaC2BGe.s:2: Warning: rest of line ignored; first 
> ignored character is
> > `@'
> > /tmp/ccaC2BGe.s:3: Warning: rest of line ignored; first 
> ignored character is
> > `@'
> > /tmp/ccaC2BGe.s:72: Error: no such instruction: `dividend .req r0'
> > /tmp/ccaC2BGe.s:73: Error: no such instruction: `divisor .req r1'
> > /tmp/ccaC2BGe.s:74: Error: no such instruction: `result .req r2'
> > /tmp/ccaC2BGe.s:75: Error: no such instruction: `curbit .req r3'
> > /tmp/ccaC2BGe.s:76: Error: no such instruction: `ip .req r12'
> > /tmp/ccaC2BGe.s:77: Error: no such instruction: `sp .req r13'
> > /tmp/ccaC2BGe.s:78: Error: no such instruction: `lr .req r14'
> > /tmp/ccaC2BGe.s:79: Error: no such instruction: `pc .req r15'
> > /tmp/ccaC2BGe.s:87: Error: expecting operand after ','; got nothing
> > /tmp/ccaC2BGe.s:88: Error: no such instruction: `beq Ldiv0'
> > /tmp/ccaC2BGe.s:89: Error: expecting operand after ','; got nothing
> > /tmp/ccaC2BGe.s:90: Error: expecting operand after ','; got nothing
> > /tmp/ccaC2BGe.s:91: Error: too many memory references for `cmp'
> > /tmp/ccaC2BGe.s:92: Error: no such instruction: `bcc Lgot_result'
> > /tmp/ccaC2BGe.s:94: Warning: rest of line ignored; first 
> ignored character
> > is `@'
> > /tmp/ccaC2BGe.s:95: Warning: rest of line ignored; first 
> ignored character
> > is `@'
> > /tmp/ccaC2BGe.s:96: Warning: rest of line ignored; first 
> ignored character
> > is `@'
> > /tmp/ccaC2BGe.s:97: Warning: rest of line ignored; first 
> ignored character
> > is `@'
> > /tmp/ccaC2BGe.s:98: Error: expecting operand after ','; got nothing
> > /tmp/ccaC2BGe.s:99: Error: no such instruction: `cmpcc 
> divisor,dividend'
> > /tmp/ccaC2BGe.s:100: Error: no such instruction: `movcc 
> divisor,divisor,lsl'
> > /tmp/ccaC2BGe.s:101: Error: no such instruction: `movcc 
> curbit,curbit,lsl'
> > /tmp/ccaC2BGe.s:102: Error: no such instruction: `bcc Loop1'
> > /tmp/ccaC2BGe.s:105: Warning: rest of line ignored; first 
> ignored character
> > is `@'
> > /tmp/ccaC2BGe.s:106: Warning: rest of line ignored; first 
> ignored character
> > is `@'
> > /tmp/ccaC2BGe.s:107: Error: expecting operand after ','; got nothing
> > /tmp/ccaC2BGe.s:108: Error: no such instruction: `cmpcc 
> divisor,dividend'
> > /tmp/ccaC2BGe.s:109: Error: no such instruction: `movcc 
> divisor,divisor,lsl'
> > /tmp/ccaC2BGe.s:110: Error: no such instruction: `movcc 
> curbit,curbit,lsl'
> > /tmp/ccaC2BGe.s:111: Error: no such instruction: `bcc Lbignum'
> > /tmp/ccaC2BGe.s:114: Warning: rest of line ignored; first 
> ignored character
> > is `@'
> > /tmp/ccaC2BGe.s:115: Warning: rest of line ignored; first 
> ignored character
> > is `@'
> > /tmp/ccaC2BGe.s:116: Warning: rest of line ignored; first 
> ignored character
> > is `@'
> > /tmp/ccaC2BGe.s:117: Warning: rest of line ignored; first 
> ignored character
> > is `@'
> > /tmp/ccaC2BGe.s:118: Error: too many memory references for `cmp'
> > /tmp/ccaC2BGe.s:119: Error: no such instruction: `subcs
> > dividend,dividend,divisor'
> > /tmp/ccaC2BGe.s:120: Error: no such instruction: `orrcs
> > result,result,curbit'
> > /tmp/ccaC2BGe.s:121: Error: too many memory references for `cmp'
> > /tmp/ccaC2BGe.s:122: Error: no such instruction: `subcs
> > dividend,dividend,divisor,lsr'
> > /tmp/ccaC2BGe.s:123: Error: no such instruction: `orrcs
> > result,result,curbit,lsr'
> > /tmp/ccaC2BGe.s:124: Error: too many memory references for `cmp'
> > /tmp/ccaC2BGe.s:125: Error: no such instruction: `subcs
> > dividend,dividend,divisor,lsr'
> > /tmp/ccaC2BGe.s:126: Error: no such instruction: `orrcs
> > result,result,curbit,lsr'
> > /tmp/ccaC2BGe.s:127: Error: too many memory references for `cmp'
> > /tmp/ccaC2BGe.s:128: Error: no such instruction: `subcs
> > dividend,dividend,divisor,lsr'
> > /tmp/ccaC2BGe.s:129: Error: no such instruction: `orrcs
> > result,result,curbit,lsr'
> > /tmp/ccaC2BGe.s:130: Error: expecting operand after ','; got nothing
> > /tmp/ccaC2BGe.s:131: Error: no such instruction: `movnes 
> curbit,curbit,lsr'
> > /tmp/ccaC2BGe.s:132: Error: no such instruction: `movne 
> divisor,divisor,lsr'
> > /tmp/ccaC2BGe.s:133: Error: no such instruction: `bne Loop3'
> > /tmp/ccaC2BGe.s:135: Error: too many memory references for `mov'
> > /tmp/ccaC2BGe.s:136: Error: too many memory references for `mov'
> > /tmp/ccaC2BGe.s:139: Error: invalid char '[' beginning 
> operand 2 `[sp'
> > /tmp/ccaC2BGe.s:140: Error: no such instruction: `bl __div0 (PLT)'
> > /tmp/ccaC2BGe.s:141: Error: expecting operand after ','; got nothing
> > /tmp/ccaC2BGe.s:142: Error: no such instruction: `ldmia sp!,{pc}'
> > make[1]: *** [libgcc1-asm.a] Error 1
> > make[1]: Leaving directory `/home/owen/build/gcc/gcc'
> > make: *** [all-gcc] Error 2
> > 
> > 
> > ------
> > Want more information?  See the CrossGCC FAQ, 
http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to
crossgcc-unsubscribe@sources.redhat.com
> 





------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list