Hi all, >> 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. > > You do know that you'd have to apply the included binutils patches to > binutils also ?? > > Some of the avr device def's usually have to be made in both binutils & > gcc
Thanks a lot for this hint. I indeed had not patched binutils. Doing so solved a lot of problems. However, the gcc build still does not go through completely. It stops in one avr subdir: 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 When I move avrtiny10 away mv avrtiny10 avrtiny10_ the gcc build succeeds. But this gets me into trouble when building avr-libc! :-( So I guess I have to figure out what the problem is with this avrtiny10 subdir! The config.log says ... localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr/local/avr' program_transform_name='s&^&avr-&' psdir='${docdir}' sbindir='${exec_prefix}/sbin' set_have_cc_tls='' set_use_emutls='' sharedstatedir='${prefix}/com' slibdir='$(exec_prefix)/$(host_noncanonical)/lib' sysconfdir='${prefix}/etc' target_alias='avr' target_subdir='avr' tmake_file='' vis_hide='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "GNU C Runtime Library" #define PACKAGE_TARNAME "libgcc" #define PACKAGE_VERSION "1.0" #define PACKAGE_STRING "GNU C Runtime Library 1.0" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" configure: exit 1 I have no idea what this means and how this can be fixed. I applied all 20 gcc patches one after the other and all went through without error messages (see below). Still the tree does not build. I am rather clueless here! :-( Hints still greatly appreciated!! Thanks a lot, Andreas **************************************************************************************** cd /usr/src/avr mkdir avrgcc bunzip2 gcc-4.5.1.tar.bz2 tar xvf gcc-4.5.1.tar cd gcc-4.5.1 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-200-gcc-4.5.1-libiberty-Makefile.in patch -p0 < /usr/src/gcc-4.5.1-patches/patch-300-gcc-4.5.1-fixedpoint-3-4-2010 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-301-gcc-4.5.1-xmega-v14 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-302-gcc-4.5.1-avrtiny10 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-303-gcc-4.5.1-osmain patch -p0 < /usr/src/gcc-4.5.1-patches/patch-304-gcc-4.5.1-builtins-v6 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-305-gcc-4.5.1-avrtiny10-non-fixedpoint patch -p0 < /usr/src/gcc-4.5.1-patches/patch-306-gcc-4.5.1-option-list-devices patch -p0 < /usr/src/gcc-4.5.1-patches/patch-400-gcc-4.5.1-new-devices patch -p0 < /usr/src/gcc-4.5.1-patches/patch-401-gcc-4.5.1-atmega32_5_50_90_pa patch -p0 < /usr/src/gcc-4.5.1-patches/patch-402-gcc-4.5.1-attiny1634 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-403-gcc-4.5.1-atmega48pa patch -p0 < /usr/src/gcc-4.5.1-patches/patch-500-gcc-4.5.1-bug13473 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-501-gcc-4.5.1-bug13579 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-502-gcc-4.5.1-bug-18145-v4 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-503-gcc-4.5.1-avrtiny10-bug-12510 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-504-gcc-4.5.1-bug12915 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-505-gcc-4.5.1-bug13932 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-506-gcc-4.5.1-bug13789 patch -p0 < /usr/src/gcc-4.5.1-patches/patch-599-gcc-4.5.1-bug46779 cd .. cd avrgcc ../gcc-4.5.1/configure --target=avr --prefix=$PREFIX --with-gnu-ld --with-gnu-as --enable-languages="c,c++" --disable-libssp --with-dwarf2 --with-gmp=/usr/local --with-mpfr=/usr/local make _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list