Can't make gcc for avr
Russ.Shaw
russell@webaxs.net
Mon Jun 26 03:00:00 GMT 2000
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
More information about the crossgcc
mailing list