Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394345 - cross-avr/gcc-4.5.2 - configure: error: cannot compute suffix of object files: cannot compile
Summary: cross-avr/gcc-4.5.2 - configure: error: cannot compute suffix of object files...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 15:03 UTC by Jan-Erik Skata
Modified: 2012-03-02 19:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/cross-avr-info.log (cross-avr-info.log,15.06 KB, text/plain)
2011-12-11 15:04 UTC, Jan-Erik Skata
Details
/var/log/portage/cross-avr:gcc-4.5.2:20111212-172505.log (cross-avr:gcc-4.5.2:20111212-172505.log,528.68 KB, text/plain)
2011-12-12 17:43 UTC, Jan-Erik Skata
Details
/var/tmp/portage/cross-avr/gcc-4.5.2/work/build/config.log (config.log,37.31 KB, text/plain)
2011-12-12 20:24 UTC, Jan-Erik Skata
Details
/var/tmp/portage/cross-avr/gcc-4.5.2/work/build/gcc/config.log (config.log,203.71 KB, text/plain)
2011-12-13 17:18 UTC, Jan-Erik Skata
Details
failing config.log (config.log,15.22 KB, text/plain)
2012-02-25 14:24 UTC, Tanktalus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Erik Skata 2011-12-11 15:03:07 UTC
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'
Comment 1 Jan-Erik Skata 2011-12-11 15:04:13 UTC
Created attachment 295471 [details]
/var/log/portage/cross-avr-info.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-11 23:22:52 UTC
Please attach the entire build log to this bug report.
Comment 3 Jan-Erik Skata 2011-12-12 17:43:14 UTC
Created attachment 295577 [details]
/var/log/portage/cross-avr:gcc-4.5.2:20111212-172505.log
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-12 19:42:42 UTC
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?
Comment 5 Jan-Erik Skata 2011-12-12 20:24:07 UTC
Created attachment 295597 [details]
/var/tmp/portage/cross-avr/gcc-4.5.2/work/build/config.log
Comment 6 SpanKY gentoo-dev 2011-12-12 23:23:38 UTC
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.
Comment 7 Jan-Erik Skata 2011-12-13 07:05:18 UTC
Where is it to be found then?
Comment 8 Jan-Erik Skata 2011-12-13 17:18:48 UTC
Created attachment 295699 [details]
/var/tmp/portage/cross-avr/gcc-4.5.2/work/build/gcc/config.log
Comment 9 Jan-Erik Skata 2011-12-26 10:44:49 UTC
Problem still persists, has there been any further discoveries?
Comment 10 SpanKY gentoo-dev 2012-01-14 07:57:28 UTC
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.
Comment 11 Tanktalus 2012-02-25 14:24:03 UTC
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 12 SpanKY gentoo-dev 2012-03-02 19:02:35 UTC
Comment on attachment 303177 [details]
failing config.log

not the same bug