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

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

[avr-gcc-list] Problems compiling for AT90USB162


From: Nicholas Vinen
Subject: [avr-gcc-list] Problems compiling for AT90USB162
Date: Wed, 19 Nov 2008 23:19:43 +1100

Hi,

I tried sending this from my normal e-mail address but for some reason
it never showed up on the mailing list. I'm trying again from another
address...


I've been having problems for a while with various versions of
avr-gcc, avr-libc and avr-binutils compiling for this target.

As far as I know I'm using the latest release versions of each tool
(see below) and I get this error:

avr-gcc 4.3.2 (Gentoo 4.3.2 p1.0)
avr-binutils 2.19
avr-libc 1.6.2

The problem:

$ echo 'int main(void) { return 0; }' > test.c
$ avr-gcc -Os -Wall -mmcu=at90usb162 -o test.o test.c
/usr/libexec/gcc/avr/ld: avr:4 architecture of input file
`/usr/lib/gcc/avr/4.3.2/../../../../avr/lib/avr35/crtusb162.o' is
incompatible with avr:3 output
/usr/libexec/gcc/avr/ld: avr:4 architecture of input file
`/tmp/cc4DQkkx.o' is incompatible with avr:3 output

This didn't happen with avr-gcc 4.1.2, however that version has its
own share of problems, which I have had to work around in order to be
able to compile for this device (e.g. can't use the multiply operator
or it won't compile). It works but it's very frustrating.


Thanks,

Nicholas.




reply via email to

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