public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* problems building gcc for arm-elf
@ 2001-08-29  6:50 Manfred Bergmann
  2001-09-04 19:26 ` Alexandre Oliva
  0 siblings, 1 reply; 3+ messages in thread
From: Manfred Bergmann @ 2001-08-29  6:50 UTC (permalink / raw)
  To: gcc-help

Hi,

tried to build gcc3.0.1 as a cross compiler for arm-elf target on a x86 
hosted linux.
this is my configure line:

../gcc-src-all/gcc-3.0.1/configure --prefix=/usr/local/gcc-301-arm-elf \ 
--target=arm-elf --enable-languages=c,c++

binutils version is: 2.10.91

The compiling stage goes well, but i get some assembler errors:

/home/mberg/_transfer/gcc-build-arm-elf/gcc/xgcc 
-B/home/mberg/_transfer/gcc-build-arm-elf/gcc/ 
-B/usr/local/gcc-301-arm-elf/arm-elf/bin/ 
-B/usr/local/gcc-301-arm-elf/arm-elf/lib/ -isystem 
/usr/local/gcc-301-arm-elf/arm-elf/include -O2  -DCROSS_COMPILE -DIN_GCC    
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -Dinhibit_libc -fno-inline -g1  -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. 
-I../../gcc-src-all/gcc-3.0.1/gcc -I../../gcc-src-all/gcc-3.0.1/gcc/. 
-I../../gcc-src-all/gcc-3.0.1/gcc/config 
-I../../gcc-src-all/gcc-3.0.1/gcc/../include -DL_udivsi3 -xassembler-with-cpp 
-c ../../gcc-src-all/gcc-3.0.1/gcc/config/arm/lib1funcs.asm -o 
libgcc/./_udivsi3.o
/tmp/ccnvjvyR.s: Assembler messages:
/tmp/ccnvjvyR.s:2: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:3: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:52: Error: no such instruction: `work .req r4@XXXX is this 
safe?'
/tmp/ccnvjvyR.s:53: Error: no such instruction: `dividend .req r0'
/tmp/ccnvjvyR.s:54: Error: no such instruction: `divisor .req r1'
/tmp/ccnvjvyR.s:55: Error: no such instruction: `overdone .req r2'
/tmp/ccnvjvyR.s:56: Error: no such instruction: `result .req r2'
/tmp/ccnvjvyR.s:57: Error: no such instruction: `curbit .req r3'
/tmp/ccnvjvyR.s:58: Error: no such instruction: `ip .req r12'
/tmp/ccnvjvyR.s:59: Error: no such instruction: `sp .req r13'
/tmp/ccnvjvyR.s:60: Error: no such instruction: `lr .req r14'
/tmp/ccnvjvyR.s:61: Error: no such instruction: `pc .req r15'
/tmp/ccnvjvyR.s:318: Error: expecting operand after ','; got nothing
/tmp/ccnvjvyR.s:319: Error: no such instruction: `beq Ldiv0'
/tmp/ccnvjvyR.s:320: Error: expecting operand after ','; got nothing
/tmp/ccnvjvyR.s:321: Error: expecting operand after ','; got nothing
/tmp/ccnvjvyR.s:322: Error: too many memory references for `cmp'
/tmp/ccnvjvyR.s:323: Error: no such instruction: `blo Lgot_result'
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: expecting operand after ','; got nothing
/tmp/ccnvjvyR.s:325: Error: no such instruction: `cmplo divisor,dividend'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `movlo divisor,divisor,lsl'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `movlo curbit,curbit,lsl'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `blo Loop1'
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: expecting operand after ','; got nothing
/tmp/ccnvjvyR.s:325: Error: no such instruction: `cmplo divisor,dividend'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `movlo divisor,divisor,lsl'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `movlo curbit,curbit,lsl'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `blo Lbignum'
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: Rest of line ignored. First ignored character is 
`@'.
/tmp/ccnvjvyR.s:325: Error: too many memory references for `cmp'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `subhs 
dividend,dividend,divisor'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `orrhs result,result,curbit'
/tmp/ccnvjvyR.s:325: Error: too many memory references for `cmp'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `subhs 
dividend,dividend,divisor,lsr'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `orrhs 
result,result,curbit,lsr'
/tmp/ccnvjvyR.s:325: Error: too many memory references for `cmp'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `subhs 
dividend,dividend,divisor,lsr'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `orrhs 
result,result,curbit,lsr'
/tmp/ccnvjvyR.s:325: Error: too many memory references for `cmp'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `subhs 
dividend,dividend,divisor,lsr'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `orrhs 
result,result,curbit,lsr'
/tmp/ccnvjvyR.s:325: Error: expecting operand after ','; got nothing
/tmp/ccnvjvyR.s:325: Error: no such instruction: `movnes curbit,curbit,lsr'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `movne divisor,divisor,lsr'
/tmp/ccnvjvyR.s:325: Error: no such instruction: `bne Loop3'
/tmp/ccnvjvyR.s:327: Error: too many memory references for `mov'
/tmp/ccnvjvyR.s:328: Error: too many memory references for `mov'
/tmp/ccnvjvyR.s:332: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccnvjvyR.s:332: Error: no such instruction: `bl __div0 (PLT)'
/tmp/ccnvjvyR.s:332: Error: expecting operand after ','; got nothing
/tmp/ccnvjvyR.s:332: Error: no such instruction: `ldmia sp!,{pc}'
make[2]: *** [libgcc/./_udivsi3.o] Error 1
make[2]: Leaving directory `/home/mberg/_transfer/gcc-build-arm-elf/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/mberg/_transfer/gcc-build-arm-elf/gcc'
make: *** [all-gcc] Error 2

can somebody tell me how to fix this?

thx in advance...

Manfred Bergmann

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problems building gcc for arm-elf
  2001-08-29  6:50 problems building gcc for arm-elf Manfred Bergmann
@ 2001-09-04 19:26 ` Alexandre Oliva
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 2001-09-04 19:26 UTC (permalink / raw)
  To: Manfred Bergmann; +Cc: gcc-help

On Aug 29, 2001, Manfred Bergmann <bergmamd@iis.fhg.de> wrote:

> The compiling stage goes well, but i get some assembler errors:

> /tmp/ccnvjvyR.s:2: Error: Rest of line ignored. First ignored character is 
> `@'.
> /tmp/ccnvjvyR.s:3: Error: Rest of line ignored. First ignored character is 
> `@'.
> /tmp/ccnvjvyR.s:52: Error: no such instruction: `work .req r4@XXXX is this 
> safe?'

Are you sure you've built the assembler for the target too?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problems building gcc for arm-elf
@ 2001-09-05  0:54 Manfred Bergmann
  0 siblings, 0 replies; 3+ messages in thread
From: Manfred Bergmann @ 2001-09-05  0:54 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

Am Mittwoch, 5. September 2001 01:21 schrieben Sie:
> On Aug 29, 2001, Manfred Bergmann <bergmamd@iis.fhg.de> wrote:
> > The compiling stage goes well, but i get some assembler errors:
> >
> > /tmp/ccnvjvyR.s:2: Error: Rest of line ignored. First ignored character
> > is `@'.
> > /tmp/ccnvjvyR.s:3: Error: Rest of line ignored. First ignored character
> > is `@'.
> > /tmp/ccnvjvyR.s:52: Error: no such instruction: `work .req r4@XXXX is
> > this safe?'
>
> Are you sure you've built the assembler for the target too?


Yes, got a working arm-elf-as in path. 
Told configure to use arm-elf-as : --with-as=arm-elf-as
but that had no other effect.


thx, for reply.


Manfred
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-05  0:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-29  6:50 problems building gcc for arm-elf Manfred Bergmann
2001-09-04 19:26 ` Alexandre Oliva
2001-09-05  0:54 Manfred Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).