Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476588 - net-analyzer/mtr-0.85 failed — i386:x86-64 architecture of input file `mtr.o' is incompatible with i386 output
Summary: net-analyzer/mtr-0.85 failed — i386:x86-64 architecture of input file `mtr.o'...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-11 21:44 UTC by Piotr Szymaniak
Modified: 2013-07-12 18:28 UTC (History)
1 user (show)

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


Attachments
build.log (mtr.log,9.30 KB, text/plain)
2013-07-11 21:46 UTC, Piotr Szymaniak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Szymaniak 2013-07-11 21:44:45 UTC
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -I.   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -march=k8-sse3 -Os -pipe -fomit-frame-pointer -Wall -Wno-pointer-sign -c dns.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -I.   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -march=k8-sse3 -Os -pipe -fomit-frame-pointer -Wall -Wno-pointer-sign -c display.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -I.   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -march=k8-sse3 -Os -pipe -fomit-frame-pointer -Wall -Wno-pointer-sign -c curses.c
i686-pc-linux-gnu-gcc  -march=k8-sse3 -Os -pipe -fomit-frame-pointer -Wall -Wno-pointer-sign  curses.o -Wl,-O1,--as-needed,--sort-common -o mtr mtr.o net.o dns.o raw.o split.o display.o report.o getopt.o getopt1.o select.o asn.o  -lglib-2.0  -lresolv -lm -lncurses  -lglib-2.0
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `mtr.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `net.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `raw.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `split.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `report.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `getopt.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `getopt1.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `select.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `asn.o' is incompatible with i386 output
collect2: error: ld returned 1 exit status
make[2]: *** [mtr] Error 1
make[2]: Leaving directory `/home/p/portage/net-analyzer/mtr-0.85/work/mtr-0.85'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/p/portage/net-analyzer/mtr-0.85/work/mtr-0.85'
make: *** [all] Error 2
 * ERROR: net-analyzer/mtr-0.85 failed (compile phase):
 *   emake failed


Reproducible: Always
Comment 1 Piotr Szymaniak 2013-07-11 21:46:14 UTC
Created attachment 353120 [details]
build.log

Portage 2.2.0_alpha188 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.17, 3.4.38 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.38-i686-AMD_Sempron-tm-_Processor_3000+-with-gentoo-2.2
KiB Mem:     2075436 total,    578384 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 11 Jul 2013 19:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.4-r1 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo roslin
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8-sse3 -Os -pipe -fomit-frame-pointer"
DISTDIR="/home/p/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.ift.uni.wroc.pl/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed,--sort-common"
MAKEOPTS="-j2"
PKGDIR="/home/p/paczki"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/p"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/p/roslin"
SYNC="rsync://rsync1.pl.gentoo.org/gentoo-portage"
USE="acl bzip2 cli cracklib crypt custom-cflags custom-cxxflags cxx dri fortran gpg gudev hwdb iconv ipv6 mmx modules mudflap ncurses nls nptl openmp pam pcre readline session sse ssl tcpd threads unicode usb vim-syntax x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en pl" NGINX_MODULES_HTTP="access auth_basic autoindex empty_gif fastcgi gzip map rewrite stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



[ebuild     U ] net-analyzer/mtr-0.85 [0.82] USE="ipv6 -gtk -suid"
Comment 2 Piotr Szymaniak 2013-07-11 21:49:21 UTC
In case „this is a distcc issue” — it's not, been there, done that. Same result.
Comment 3 Sergey Popov gentoo-dev 2013-07-11 22:58:41 UTC
Hm, does it happen if you omit -march from your CFLAGS?
Comment 4 Andrew Church 2013-07-11 23:09:26 UTC
It looks like the problem is that the distribution includes some object files, so make doesn't rebuild the associated sources:

$ tar tf /usr/portage/distfiles/mtr-0.85.tar.gz
[...]
mtr-0.85/display.c
mtr-0.85/getopt1.o
mtr-0.85/mtr-gtk.h
mtr-0.85/select.c
mtr-0.85/gtk.o
mtr-0.85/Makefile.dist
[...]
Comment 5 Jason A. Donenfeld gentoo-dev 2013-07-12 18:28:07 UTC
+  12 Jul 2013; Jason A. Donenfeld <zx2c4@gentoo.org> mtr-0.85.ebuild:
+  Clean up upstream's .o files that cause build issues.
+