Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394989 - sys-devel/gcc-4.5.3-r2 fails to compile: /usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `src/x86/.libs/unix64.o' is incompatible with i386 output
Summary: sys-devel/gcc-4.5.3-r2 fails to compile: /usr/x86_64-pc-linux-gnu/bin/ld: i38...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-16 20:15 UTC by Thomas Sachau
Modified: 2012-01-14 07:59 UTC (History)
0 users

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


Attachments
build.log (sys-devel:gcc-4.5.3-r2:20111216-190319.log.xz,109.33 KB, application/octet-stream)
2011-12-16 23:35 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Sachau gentoo-dev 2011-12-16 20:15:33 UTC
emerge --info:

Portage 2.2.0_alpha81-r1 (hardened/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r1, 2.6.32-gentoo-r39 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r39-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sa 3. Dez 16:06:39 CET 2011
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r1, 2.7.2-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
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-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo enlightenment sunrise multilib Meins
Installed sets: @enlightenment, @fonts, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/home/thomas/daten/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE.UTF-8@euro"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="de"
MAKEOPTS="-j5 --load-average=8"
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="/home/thomas/daten"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/enlightenment /usr/local/portage/layman/sunrise /usr/local/portage/layman/multilib-portage /usr/local/portage"
SYNC="cvs://tommy@cvs.gentoo.org:/var/cvsroot"
USE="3dnow X alsa amd64 berkdb cli cracklib crypt cups custom-cflags custom-cxxflags custom-optimization cxx dri gpm hardened java5 java6 justify mmx modules mudflap multilib ncurses nls nptl nptlonly nsplugin ogg openmp pam pax_kernel pppd readline scanner session sse sse2 ssl sysfs tcpd unicode urandom vorbis xorg zlib" ALSA_CARDS="hda-intel" 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="de" MULTILIB_ABIS="amd64 x86" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 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" multilib_abi="amd64 x86"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Sachau gentoo-dev 2011-12-16 21:53:32 UTC
Since the build.log is too big to attach, i have placed it into my devspace for now, URL as above. Additionally, here are the last lines of it (Fehler = error:

libtool: compile:  /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/xgcc -B/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -DHAVE_CONFIG_H -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/include -Iinclude -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src -Wall -g -fexceptions -g -march=native -O2 -pipe -m32 -MT src/x86/ffi.lo -MD -MP -MF src/x86/.deps/ffi.Tpo -c /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src/x86/ffi.c  -fPIC -DPIC -o src/x86/.libs/ffi.o
libtool: compile:  /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/xgcc -B/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -DHAVE_CONFIG_H -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/include -Iinclude -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src -Wall -g -fexceptions -g -march=native -O2 -pipe -m32 -MT src/x86/ffi.lo -MD -MP -MF src/x86/.deps/ffi.Tpo -c /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src/x86/ffi.c -o src/x86/ffi.o >/dev/null 2>&1
depbase=`echo src/x86/sysv.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool   --mode=compile /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/xgcc -B/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32 -DHAVE_CONFIG_H -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi  -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/include -Iinclude -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src  -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/include -Iinclude -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src -march=native -O2 -pipe -m64 -MT src/x86/sysv.lo -MD -MP -MF $depbase.Tpo -c -o src/x86/sysv.lo /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src/x86/sysv.S &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/xgcc -B/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -DHAVE_CONFIG_H -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/include -Iinclude -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/include -Iinclude -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src -march=native -O2 -pipe -m64 -MT src/x86/sysv.lo -MD -MP -MF src/x86/.deps/sysv.Tpo -c /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src/x86/sysv.S  -fPIC -DPIC -o src/x86/.libs/sysv.o
libtool: compile:  /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/xgcc -B/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -DHAVE_CONFIG_H -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/include -Iinclude -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src -I. -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/include -Iinclude -I/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src -march=native -O2 -pipe -m64 -MT src/x86/sysv.lo -MD -MP -MF src/x86/.deps/sysv.Tpo -c /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src/x86/sysv.S -o src/x86/sysv.o >/dev/null 2>&1
/bin/sh ./libtool --tag=CC   --mode=link /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/xgcc -B/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32 -Wall -g -fexceptions -g -march=native -O2 -pipe  -m32  -m32 -o libffi_convenience.la  src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo                     src/x86/ffi64.lo src/x86/unix64.lo src/x86/ffi.lo src/x86/sysv.lo      
libtool: link: /usr/x86_64-pc-linux-gnu/bin/ar rc .libs/libffi_convenience.a src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/x86/.libs/ffi64.o src/x86/.libs/unix64.o src/x86/.libs/ffi.o src/x86/.libs/sysv.o 
libtool: link: /usr/x86_64-pc-linux-gnu/bin/ranlib .libs/libffi_convenience.a
libtool: link: ( cd ".libs" && rm -f "libffi_convenience.la" && ln -s "../libffi_convenience.la" "libffi_convenience.la" )
/bin/sh ./libtool --tag=CC   --mode=link /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/xgcc -B/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32 -Wall -g -fexceptions -g -march=native -O2 -pipe  -m32 -version-info `grep -v '^#' /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/libtool-version`  '-m32'  -m32 -o libffi.la -rpath /usr/lib/../lib32 src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo                     src/x86/ffi64.lo src/x86/unix64.lo src/x86/ffi.lo src/x86/sysv.lo      
libtool: link: /home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/xgcc -B/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32 -shared  src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/x86/.libs/ffi64.o src/x86/.libs/unix64.o src/x86/.libs/ffi.o src/x86/.libs/sysv.o    -m32 -march=native -m32 -m32 -m32   -Wl,-soname -Wl,libffi.so.4 -o .libs/libffi.so.4.0.1
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `src/x86/.libs/unix64.o' is incompatible with i386 output
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `src/x86/.libs/sysv.o' is incompatible with i386 output
src/x86/.libs/unix64.o: In function `ffi_closure_unix64':
(.text+0x1b0): undefined reference to `ffi_closure_unix64_inner'
src/x86/.libs/ffi.o: In function `ffi_prep_closure_loc':
/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/libffi/src/x86/ffi.c:555: undefined reference to `ffi_closure_SYSV'
/usr/x86_64-pc-linux-gnu/bin/ld: src/x86/.libs/ffi.o: relocation R_386_GOTOFF against undefined hidden symbol `ffi_closure_SYSV' can not be used when making a shared object
/usr/x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[7]: *** [libffi.la] Fehler 1
make[7]: Leaving directory `/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/x86_64-pc-linux-gnu/32/libffi'
make[6]: *** [all-recursive] Fehler 1
make[6]: Leaving directory `/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/x86_64-pc-linux-gnu/32/libffi'
make[5]: *** [all] Fehler 2
make[5]: Leaving directory `/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/x86_64-pc-linux-gnu/32/libffi'
make[4]: *** [multi-do] Fehler 1
make[4]: Leaving directory `/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/x86_64-pc-linux-gnu/libffi'
make[3]: *** [all-multi] Fehler 2
make[3]: Leaving directory `/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/x86_64-pc-linux-gnu/libffi'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build/x86_64-pc-linux-gnu/libffi'
make[1]: *** [all-target-libffi] Fehler 2
make[1]: Leaving directory `/home/thomas/daten/portage/sys-devel/gcc-4.5.3-r2/work/build'
make: *** [bootstrap-lean] Fehler 2
emake failed
Comment 2 SpanKY gentoo-dev 2011-12-16 23:35:06 UTC
Created attachment 296091 [details]
build.log

all it takes is a little compression :P

xz ftw: 10,847,770 bytes -> 111,952 bytes
Comment 3 SpanKY gentoo-dev 2012-01-14 07:59:25 UTC
you have -m64 in LDFLAGS.  don't do that.