[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] gcc 4.3.2: AVR architecture types
From: |
Weddington, Eric |
Subject: |
RE: [avr-gcc-list] gcc 4.3.2: AVR architecture types |
Date: |
Fri, 26 Dec 2008 11:25:38 -0700 |
Ah, I forgot. Yes, that is a problem. Yes, it got fixed on the 2.19 branch
*after* 2.19 was released. Attached is the patch. Please rebuild binutils 2.19
with the patch.
Let me know if that works for you.
Sorry for the hassle. FYI, I hear that a 2.19.1 release is being planned for
sometime in January and will include the fix that is in the attached patch.
Eric Weddington
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Kövesdi György
> Sent: Friday, December 26, 2008 11:03 AM
> To: address@hidden
> Subject: Re: [avr-gcc-list] gcc 4.3.2: AVR architecture types
>
> > > 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/lib
> exec/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/li
> b/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/crtusb1
> 62.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/crtusb
> 162.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
>
>
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>
40-binutils-2.19-wrong-arch.patch
Description: 40-binutils-2.19-wrong-arch.patch
- [avr-gcc-list] gcc 4.3.2: AVR architecture types, Kövesdi György, 2008/12/26
- RE: [avr-gcc-list] gcc 4.3.2: AVR architecture types, Weddington, Eric, 2008/12/26
- Re: [avr-gcc-list] gcc 4.3.2: AVR architecture types, Kövesdi György, 2008/12/26
- RE: [avr-gcc-list] gcc 4.3.2: AVR architecture types,
Weddington, Eric <=
- Re: [avr-gcc-list] gcc 4.3.2: AVR architecture types, Kövesdi György, 2008/12/26
- [avr-gcc-list] cannot find -lgcc, Jan Johansson, 2008/12/26
- Re: [avr-gcc-list] cannot find -lgcc, Jan Johansson, 2008/12/29
- Re: [avr-gcc-list] cannot find -lgcc, dlc, 2008/12/29
- Re: [avr-gcc-list] cannot find -lgcc, Jan Johansson, 2008/12/29
- Re: [avr-gcc-list] cannot find -lgcc, Steve Franks, 2008/12/31
- RE: [avr-gcc-list] cannot find -lgcc, Weddington, Eric, 2008/12/31