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

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

Re: [avr-gcc-list] gcc 4.3.2: AVR architecture types


From: Kövesdi György
Subject: Re: [avr-gcc-list] gcc 4.3.2: AVR architecture types
Date: Fri, 26 Dec 2008 19:03:04 +0100
User-agent: KMail/1.9.9

> > I found that gcc 4.3.2 generates avr4 object files for the
> > AT90USB162 mcu, but
> > the linker is called to link against avr35 objects, which is failed.
> Are you using binutils 2.19? If not, then you should try that.
Yes:
~> avr-ld --version
GNU ld (GNU Binutils) 2.19
...
~> avr-gcc --version
avr-gcc (GCC) 4.3.2
...
But i think that gcc selects the architecture type for the mcu type and passes 
it to the linker:
(the main.c can be as simple as possible here)

~> avr-gcc -v -mmcu=at90usb162 main.c
Using built-in specs.
Target: avr
Configured 
with: ../gcc-4.3.2/configure --target=avr --enable-languages=c++ 
--disable-libssp
Thread model: single
gcc version 4.3.2 (GCC)
COLLECT_GCC_OPTIONS='-v' '-mmcu=at90usb162'
 /usr/local/libexec/gcc/avr/4.3.2/cc1 -quiet -v -imultilib avr35 
main.c -quiet -dumpbase main.c -mmcu=at90usb162 -auxbase 
main -version -o /tmp/cceZcqRH.s
ignoring nonexistent 
directory "/usr/local/lib/gcc/avr/4.3.2/../../../../avr/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc/avr/4.3.2/include
 /usr/local/lib/gcc/avr/4.3.2/include-fixed
 /usr/local/lib/gcc/avr/4.3.2/../../../../avr/include
End of search list.
GNU C (GCC) version 4.3.2 (avr)
        compiled by GNU C version 4.3.1 20080507 (prerelease) [gcc-4_3-branch 
revision 135036], GMP version 4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128166
Compiler executable checksum: 7d821ff7da77c77a3ee921fe85f83284
COLLECT_GCC_OPTIONS='-v' '-mmcu=at90usb162'
 /usr/local/lib/gcc/avr/4.3.2/../../../../avr/bin/as -mmcu=at90usb162 -o 
/tmp/ccWYs39i.o /tmp/cceZcqRH.s
COMPILER_PATH=/usr/local/libexec/gcc/avr/4.3.2/:/usr/local/libexec/gcc/avr/4.3.2/:/usr/local/libexec/gcc/avr/:/usr/local/lib/gcc/avr/4.3.2/:/usr/local/lib/gcc/avr/:/usr/local/lib/gcc/avr/4.3.2/../../../../avr/bin/
LIBRARY_PATH=/usr/local/lib/gcc/avr/4.3.2/avr35/:/usr/local/lib/gcc/avr/4.3.2/../../../../avr/lib/avr35/:/usr/local/lib/gcc/avr/4.3.2/:/usr/local/lib/gcc/avr/4.3.2/../../../../avr/lib/
COLLECT_GCC_OPTIONS='-v' '-mmcu=at90usb162'
 /usr/local/lib/gcc/avr/4.3.2/../../../../avr/bin/ld -m avr3 -Tdata 
0x800100 /usr/local/lib/gcc/avr/4.3.2/../../../../avr/lib/avr35/crtusb162.o 
-L/usr/local/lib/gcc/avr/4.3.2/avr35 
-L/usr/local/lib/gcc/avr/4.3.2/../../../../avr/lib/avr35 
-L/usr/local/lib/gcc/avr/4.3.2 
-L/usr/local/lib/gcc/avr/4.3.2/../../../../avr/lib /tmp/ccWYs39i.o -lgcc -lc 
-lgcc
/usr/local/lib/gcc/avr/4.3.2/../../../../avr/bin/ld: avr:4 architecture of 
input file 
`/usr/local/lib/gcc/avr/4.3.2/../../../../avr/lib/avr35/crtusb162.o' is 
incompatible with avr:3 output
/usr/local/lib/gcc/avr/4.3.2/../../../../avr/bin/ld: avr:4 architecture of 
input file `/tmp/ccWYs39i.o' is incompatible with avr:3 output




reply via email to

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