public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Can't make gcc for avr
@ 2000-06-26  3:00 Russ.Shaw
  2000-07-03 11:10 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Russ.Shaw @ 2000-06-26  3:00 UTC (permalink / raw)
  To: Avr, crossgcc

Hi all,

I'm using mandrake 7.0 and trying to compile the avr gcc
compiler. I think the 'make' step is trying to assemble
some avr instructions as 386 code. What can i do?

I've downloaded gcc-2.95.2 avr c-compiler sources,
then done:

cd gcc-2.95.2
make

This is some output i get:

(cd intl && make all)
make[2]: Entering directory `/home/russell/tmp/gcc-2.95.2/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/russell/tmp/gcc-2.95.2/gcc/intl'
rm -f tmplibgcc1.a libgcc1.S
cp ./config/avr/libgcc.S libgcc1.S
for name in mulqi3 mulhi3 mulsi3 umodqi3 udivqi3 modqi3 divqi3 umodhi3
          udivhi3 modhi3 divhi3 umodsi3 udivsi3 modsi3 divsi3 prologue
          epilogue __exit; \
do \
  echo ${name}; \
  /home/russell/tmp/gcc-2.95.2/gcc/xgcc -B/home/russell/tmp/gcc-2.95.2/gcc/
          -B/usr/local/avr/bin/ -I/usr/local/avr/include
          -O2  -DCROSS_COMPILE -DIN_GCC
          -g -O2 -I./include  -DDF=SF -Dinhibit_libc -g1  -DIN_LIBGCC2
          -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I./config -I./../include
          -c -DL${name} libgcc1.S; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  mv libgcc1.o ${name}.o; \
  avr-ar rc tmplibgcc1.a ${name}.o; \
  rm -f ${name}.o; \
done
mulqi3
make[1]: Leaving directory `/home/russell/tmp/gcc-2.95.2/gcc'



After this point, i get these errors:

/tmp/ccwFGPiF.s: Assembler messages:
/tmp/ccwFGPiF.s:37: Error: no such 386 instruction: `mulqi3 '
/tmp/ccwFGPiF.s:44: Error: suffix or operands invalid for `clr'
/tmp/ccwFGPiF.s:44: Error: no such 386 instruction: `clear result'
/tmp/ccwFGPiF.s:46: Error: no such 386 instruction: `sbrc r24,0'
/tmp/ccwFGPiF.s:47: Error: too many memory references for `add'
/tmp/ccwFGPiF.s:48: Error: too many memory references for `add'
/tmp/ccwFGPiF.s:48: Error: no such 386 instruction: `shift multiplicand'
/tmp/ccwFGPiF.s:49: Error: no such 386 instruction: `breq __mulqi3_exit'
/tmp/ccwFGPiF.s:49: Error: no such 386 instruction: `while multiplicand!=0'
/tmp/ccwFGPiF.s:50: Error: no such 386 instruction: `lsr r24'
/tmp/ccwFGPiF.s:51: Error: no such 386 instruction: `brne __mulqi3_loop'
/tmp/ccwFGPiF.s:51: Error: no such 386 instruction: `exit if multiplier=0'
/tmp/ccwFGPiF.s:53: Error: too many memory references for `mov'
/tmp/ccwFGPiF.s:53: Error: no such 386 instruction: `result to return register'
make[1]: *** [libgcc1-asm.a] Error 1
make: *** [all-gcc] Error 2



-- 
*******************************************
*   Russell Shaw, B.Eng, M.Eng(Research)  *
*   Electronics Consultant                *
*      email: russell@webaxs.net          *
*      Australia                          *
*******************************************

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

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

* Re: Can't make gcc for avr
  2000-06-26  3:00 Can't make gcc for avr Russ.Shaw
@ 2000-07-03 11:10 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2000-07-03 11:10 UTC (permalink / raw)
  To: Russ.Shaw; +Cc: Avr, crossgcc

"Russ.Shaw" wrote:
> 
> I'm using mandrake 7.0 and trying to compile the avr gcc
> compiler. I think the 'make' step is trying to assemble
> some avr instructions as 386 code. What can i do?
> 
[snip]
> /tmp/ccwFGPiF.s:53: Error: no such 386 instruction: `result to return register'
> make[1]: *** [libgcc1-asm.a] Error 1
> make: *** [all-gcc] Error 2

http://www.objsw.com/CrossGCC/FAQ-5.html#ss5.2

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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

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

end of thread, other threads:[~2000-07-03 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-26  3:00 Can't make gcc for avr Russ.Shaw
2000-07-03 11:10 ` Jonathan Larmour

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).