Build for avr-gcc fails
Russell Shaw
rjshaw@iprimus.com.au
Tue Mar 4 16:09:00 GMT 2003
I tried building in a separate subdirectory but it still fails.
I downloaded and compiled gcc-core-20030224.tar.bz2 and it works.
Obvioulsy, only the 'core' version of gcc works.
Russell Shaw wrote:
> 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.
>
>
More information about the Gcc-help
mailing list