Hi Jan, I checked the Linux scripts you pointed to and tried to apply what they have therein. They patch the gcc 4.5.1 sources. Part of the patch is bringing the avr-devices.c file into the gcc source tree.
I could run all the patches on my gcc 4.5.1 tree. Unfortunately building the gcc fails then (see below for details)! >> I googled a lot on this problem and this time tried to build the chain on >> MacOSX (recipe below). I still hit the same problem. It simply won't build >> code for the atmega2560 chip! :-( > > The device list in gcc is in gcc/config/avr/avr-devices.c - can you see > atmega2560/2561 there? I then tried to copy avr-devices.c from the patched gcc 4.5.1 tree over to the gcc 4.2.4 tree. I can build the 4.2.4 tree but configuring avr-libc still says that gcc does not support atmega2560. ./configure --host=avr --prefix=$PREFIX | grep 2560 checking if avr-gcc has support for atmega2560... no config.status: creating avr/lib/avr6/atmega2560/Makefile And making my project afterwards still brings the same error message: unknown MCU 'atmega2560' specified main.c:1: error: MCU ‘atmega2560’ supported for assembler only make: *** [toggle_led.out] Error 1 It seems you have a working gcc 4.2.4 source tree on your machine!? Would you be willing to tar your tree and send it over to me? This is indeed tricky stuff. Any other ideas? Thanks a lot, Andreas ************************************************************** Running configure in multilib subdir avrtiny10 pwd: /usr/src/avr/avrgcc/avr mkdir avrtiny10 configure: creating cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... awk checking build system type... x86_64-apple-darwin10.8.0 checking host system type... avr-unknown-none checking for avr-ar... /usr/local/avr/avr/bin/ar checking for avr-lipo... avr-lipo checking for avr-nm... /usr/src/avr/avrgcc/./gcc/nm checking for avr-ranlib... /usr/local/avr/avr/bin/ranlib checking for avr-strip... /usr/local/avr/avr/bin/strip checking whether ln -s works... yes checking for avr-gcc... /usr/src/avr/avrgcc/./gcc/xgcc -B/usr/src/avr/avrgcc/./gcc/ -B/usr/local/avr/avr/bin/ -B/usr/local/avr/avr/lib/ -isystem /usr/local/avr/avr/include -isystem /usr/local/avr/avr/sys-include -mmcu=avrtiny10 checking for suffix of object files... configure: error: in `/usr/src/avr/avrgcc/avr/avrtiny10/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 make: *** [all] Error 2 admins-Mac-mini-2:avrgcc root# _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list