avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] Illegal opcode errors building gcc-4.2.3


From: Wouter van Gulik
Subject: RE: [avr-gcc-list] Illegal opcode errors building gcc-4.2.3
Date: Sat, 19 Apr 2008 16:28:23 +0200


> -----Oorspronkelijk bericht-----
> Van: address@hidden [mailto:avr-gcc-
> address@hidden Namens Rick Mann
> Verzonden: zaterdag 19 april 2008 0:03
> Aan: avr-gcc List
> Onderwerp: [avr-gcc-list] Illegal opcode errors building gcc-4.2.3
> 
> I'm getting these errors building gcc-4.2.3:
> 
> /Users/rmann/LZRepo/avrbuild/trunk/work-4.2.3/gcc-4.2.3/Darwin/./gcc/
> xgcc -B/Users/rmann/LZRepo/avrbuild/trunk/work-4.2.3/gcc-4.2.3/
> Darwin/./gcc/ -B/usr/local/avr-4.2.3/avr/bin/ -B/usr/local/avr-4.2.3/
> avr/lib/ -isystem /usr/local/avr-4.2.3/avr/include -isystem /usr/local/
> avr-4.2.3/avr/sys-include -O2  -O2 -g -O2  -DIN_GCC -DCROSS_COMPILE   -
> W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-
> style-definition  -isystem ./include  -DDF=SF -Dinhibit_libc -mcall-
> prologues -Os -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
> -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../
> gcc/../libcpp/include  -I../../gcc/../libdecnumber -I../libdecnumber -
> mmcu=avr35 -DL_divmodqi4 -xassembler-with-cpp -c ../../gcc/config/avr/
> libgcc.S -o libgcc/avr35/_divmodqi4.o
> ../../gcc/config/avr/libgcc.S: Assembler messages:
> ../../gcc/config/avr/libgcc.S:280: Error: illegal opcode movw for mcu
> avr3
> ../../gcc/config/avr/libgcc.S:282: Error: illegal opcode movw for mcu
> avr3
> 
> 
> 
> Any ideas? If gcc-4.2.3 is broken for AVR, where can I find which
> versions of GCC do work, or what patches are necessary?
> 

This is because binutils 2.18 does not support avr architecture 35.
Use binutils 2.18.5 or more recent. Search the gcc mailing list for some
more info. 
If your are building for linux maybe you should take a look at the linux
build scripts sticky post on
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=42631
You need to be logged in to actually download the scripts. These script are
for 4.2.2

HTH,

Wouter





reply via email to

[Prev in Thread] Current Thread [Next in Thread]