I am trying to set up AVR crosscompiler for Arduino using the steps described in http://en.gentoo-wiki.com/wiki/Crossdev . PORTDIR_OVERLAY is set to /usr/local/portage. Build using "USE="-cxx" crossdev -v --target avr --gcc 4.5.2 --binutils 2.21 --libc 1.7.0 -s1 --without-headers", fails some bit into gcc. Reproducible: Always Actual Results: 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... gawk checking build system type... x86_64-pc-linux-gnu checking host system type... avr-unknown-none checking for avr-ar... avr-ar checking for avr-lipo... avr-lipo checking for avr-nm... /var/tmp/portage/cross-avr/gcc-4.5.2/work/build/./gcc/nm checking for avr-ranlib... avr-ranlib checking for avr-strip... avr-strip checking whether ln -s works... yes checking for avr-gcc... /var/tmp/portage/cross-avr/gcc-4.5.2/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.5.2/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include checking for suffix of object files... configure: error: in `/var/tmp/portage/cross-avr/gcc-4.5.2/work/build/avr/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[1]: Leaving directory `/var/tmp/portage/cross-avr/gcc-4.5.2/work/build' make: *** [all] Error 2 emake failed * ERROR: cross-avr/gcc-4.5.2 failed (compile phase): * emake failed with all * * Call stack: * ebuild.sh, line 84: Called src_compile * environment, line 4283: Called toolchain_src_compile * environment, line 4982: Called gcc_do_make * environment, line 2597: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * * If you need support, post the output of 'emerge --info =cross-avr/gcc-4.5.2', * the complete build log and the output of 'emerge -pqv =cross-avr/gcc-4.5.2'. * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/' * The complete build log is located at '/var/log/portage/cross-avr:gcc-4.5.2:20111211-143235.log'. * The ebuild environment file is located at '/var/tmp/portage/cross-avr/gcc-4.5.2/temp/environment'. * S: '/var/tmp/portage/cross-avr/gcc-4.5.2/work/build' * Messages for package cross-avr/gcc-4.5.2: * ERROR: cross-avr/gcc-4.5.2 failed (compile phase): * emake failed with all * * Call stack: * ebuild.sh, line 84: Called src_compile * environment, line 4283: Called toolchain_src_compile * environment, line 4982: Called gcc_do_make * environment, line 2597: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * * If you need support, post the output of 'emerge --info =cross-avr/gcc-4.5.2', * the complete build log and the output of 'emerge -pqv =cross-avr/gcc-4.5.2'. * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/' * The complete build log is located at '/var/log/portage/cross-avr:gcc-4.5.2:20111211-143235.log'. * The ebuild environment file is located at '/var/tmp/portage/cross-avr/gcc-4.5.2/temp/environment'. * S: '/var/tmp/portage/cross-avr/gcc-4.5.2/work/build'
Created attachment 295471 [details] /var/log/portage/cross-avr-info.log
Please attach the entire build log to this bug report.
Created attachment 295577 [details] /var/log/portage/cross-avr:gcc-4.5.2:20111212-172505.log
checking for suffix of object files... configure: error: in `/var/tmp/portage/cross-avr/gcc-4.5.2/work/build/avr/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 Could you attach that config.log too?
Created attachment 295597 [details] /var/tmp/portage/cross-avr/gcc-4.5.2/work/build/config.log
Comment on attachment 295597 [details] /var/tmp/portage/cross-avr/gcc-4.5.2/work/build/config.log this isn't the config.log in question. if you can't find the failing one, then tar all of the ones in the build dir and post that as an attachment.
Where is it to be found then?
Created attachment 295699 [details] /var/tmp/portage/cross-avr/gcc-4.5.2/work/build/gcc/config.log
Problem still persists, has there been any further discoveries?
Comment on attachment 295699 [details] /var/tmp/portage/cross-avr/gcc-4.5.2/work/build/gcc/config.log same answer as comment #6. please tar up all the config.log's rather than posting them one by one.
Created attachment 303177 [details] failing config.log I'm having the same problem with cross-i686-pc-linux-gnu/gcc-4.5.3-r2 on two amd64 boxes. I'm attaching the config.log from this case. It has the error in it ;-) /var/tmp/portage/cross-i686-pc-linux-gnu/gcc-4.5.3-r2/work/build/i686-pc-linux-gnu/64/libgcc/config.log
Comment on attachment 303177 [details] failing config.log not the same bug