Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395073 - cross-i686-pc-linux-gnu/gcc-4.5.3-r1 cannot be re-emerged: cannot compute suffix of object files: cannot compile
Summary: cross-i686-pc-linux-gnu/gcc-4.5.3-r1 cannot be re-emerged: cannot compute suf...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-17 15:23 UTC by Petr Pisar
Modified: 2011-12-18 20:15 UTC (History)
0 users

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


Attachments
/var/tmp/portage/cross-i686-pc-linux-gnu/gcc-4.5.3-r1/temp/build.log (build.log,697.95 KB, text/plain)
2011-12-17 15:23 UTC, Petr Pisar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisar 2011-12-17 15:23:01 UTC
Created attachment 296135 [details]
/var/tmp/portage/cross-i686-pc-linux-gnu/gcc-4.5.3-r1/temp/build.log

While re-emerging cross-i686-pc-linux-gnu/gcc-4.5.3-r1 on amd64

[ebuild   R    ] cross-i686-pc-linux-gnu/gcc-4.5.3-r1  USE="cxx fortran (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk -hardened -libffi -libssp% -lto -mudflap -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 0 kB [1]

configure terminates with:

Running configure in multilib subdir 64
pwd: /var/tmp/portage/cross-i686-pc-linux-gnu/gcc-4.5.3-r1/work/build/i686-pc-linux-gnu
mkdir 64
configure: creating cache ./config.cache
[...]
checking for suffix of object files... configure: error: in `/var/tmp/portage/cross-i686-pc-linux-gnu/gcc-4.5.3-r1/work/build/i686-pc-linux-gnu/64/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-i686-pc-linux-gnu/gcc-4.5.3-r1/work/build'

And /var/tmp/portage/cross-i686-pc-linux-gnu/gcc-4.5.3-r1/work/build/i686-pc-linux-gnu/64/libgcc/config.log contains:

configure:3211: checking for suffix of object files
configure:3233: /var/tmp/portage/cross-i686-pc-linux-gnu/gcc-4.5.3-r1/work/build/./gcc/xgcc -B/var/tmp/portage/cross-i686-pc-linux-gnu/gcc-4.5.3-r1/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include  -m64 -c -g -O2 -pipe  conftest.c >&5
conftest.c:1:0: error: CPU you selected does not support x86-64 instruction set
configure:3237: $? = 1

This problem is described on <http://forums.gentoo.org/viewtopic-t-898964-start-0.html>.

I think this is because multilib USE flag is forced (see the leading emerge summary) which causes i686-gcc to compile for x86-64 which is non-sense.


Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.0.6-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 10 Dec 2011 13:15:01 +0000
distcc[31638] (dcc_mkdir) ERROR: mkdir '/var/tmp/portage/.distcc/state' failed: No such file or directory [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-perl-gcpan x-petr
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -msse4.1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -msse4.1 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.linux.cz/pub/linux/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/perl-gcpan /usr/local/portage/petr"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="a52 aac acl acpi alsa amd64 audiofile avi berkdb bzip2 caps cdparanoia cdr cjk cli cracklib crypt cups custom-cxxflags djvu dri dvd esd exif ffmpeg flac fortran ftp gdbm gif gnutls gpm gtk gtk2 iconv icq idn imagemagick imap imlib ipv6 irc jabber java javascript jpeg jpeg2k live lm_sensors mbox mikmod mime mmap mmx modules motif mp3 mpeg mudflap multilib nas ncurses nls nodrm nptl nptlonly ogg openmp pam pcre pdf perl plotutils png posix ppds pppd pulseaudio qt3support readline recode rss samba sasl scanner sdl session sharedmem smartcard sndfile snmp sockets speex spell sse sse2 ssl ssse3 svg sysfs sysvipc tcpd tetex theora threads tiff truetype ucs2 ucs4 unicode usb vorbis xattr xml xml2 xmms xorg xosd xpm xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel fglrx radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

cross-i686-pc-linux-gnu/gcc-4.5.3-r1 was built with the following:
USE="cxx fortran (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk -hardened -libffi -lto -mudflap -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"
CFLAGS="-O2 -pipe"
CXXFLAGS=""
Comment 1 SpanKY gentoo-dev 2011-12-17 18:46:59 UTC
most likely your toolchain was installed with an older crossdev.  you'll need to redo it:
emerge -C cross-i686-pc-linux-gnu/gcc
crossdev i686
Comment 2 Petr Pisar 2011-12-18 20:15:32 UTC
You're right. Reinstallation with sys-devel/crossdev-20110819 works. I thought crossdev just adds category, symlinks into overlay and tunes keywords acceptance. Obviously there is something more. The multilib is not forced anymore. Just for record: cross-i686-pc-linux-gnu/gcc installed with previous crossdev could be rebuilt last on 2011-11-26.