This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Build for avr-gcc fails
- From: Russell Shaw <rjshaw at iprimus dot com dot au>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 04 Mar 2003 18:08:59 +1100
- Subject: Build for avr-gcc fails
Hi,
I downloaded, compiled, and installed binutils from cvs for the AVR.
Building the latest gcc from cvs using gcc-3.2.1 gives errors.
CC=gcc-3.2 ./configure --target=avr --disable-nls --enable-languages=c
make
Errors:
make[2]: Entering directory `/home/russell/src/gcc/gcc'
for d in libgcc avr3 libgcc/avr3 avr4 libgcc/avr4 avr5 libgcc/avr5; do \
if [ -d $d ]; then true; else /bin/sh ./mkinstalldirs $d; fi; \
done
mkdir libgcc
mkdir avr3
mkdir libgcc/avr3
mkdir avr4
mkdir libgcc/avr4
mkdir avr5
mkdir libgcc/avr5
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/russell/src/gcc/gcc/xgcc -B/home/russell/src/gcc/gcc/ -B/usr/local/avr/bin/ -B/usr/local/avr/lib/ -isystem /usr/local/avr/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./config
-I./../include -DL_mulqi3 -xassembler-with-cpp -c ./config/avr/libgcc.S -o libgcc/./_mulqi3.o
/tmp/ccWy82a1.s: Assembler messages:
/tmp/ccWy82a1.s:27: Error: suffix or operands invalid for `clr'
/tmp/ccWy82a1.s:27: Error: no such instruction: `clear result'
/tmp/ccWy82a1.s:29: Error: no such instruction: `sbrc r24,0'
/tmp/ccWy82a1.s:30: Error: too many memory references for `add'
/tmp/ccWy82a1.s:31: Error: too many memory references for `add'
/tmp/ccWy82a1.s:31: Error: no such instruction: `shift multiplicand'
/tmp/ccWy82a1.s:32: Error: no such instruction: `breq __mulqi3_exit'
/tmp/ccWy82a1.s:32: Error: no such instruction: `while multiplicand!=0'
/tmp/ccWy82a1.s:33: Error: no such instruction: `lsr r24'
/tmp/ccWy82a1.s:34: Error: no such instruction: `brne __mulqi3_loop'
/tmp/ccWy82a1.s:34: Error: no such instruction: `exit if multiplier=0'
/tmp/ccWy82a1.s:36: Error: too many memory references for `mov'
/tmp/ccWy82a1.s:36: Error: no such instruction: `result to return register'
make[2]: *** [libgcc/./_mulqi3.o] Error 1
make[2]: Leaving directory `/home/russell/src/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/russell/src/gcc/gcc'
make: *** [all-gcc] Error 2
http://users.rcn.com/rneswold/avr/x142.html
--
Debian 2.4.20.