/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `fft4gasm.o' is incompatible with i386:x86-64 output collect2: ld returned 1 exit status make: *** [mppenc] Error 1 * * ERROR: media-sound/musepack-tools-1.15v-r1 failed. * Call stack: * ebuild.sh, line 1648: Called dyn_compile * ebuild.sh, line 988: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * musepack-tools-1.15v-r1.ebuild, line 65: Called die Reproducible: Always Portage 2.1.3_rc9 (default-linux/amd64/2007.0, gcc-4.2.0, glibc-2.6-r0, 2.6.22.1 x86_64) ================================================================= System uname: 2.6.22.1 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz Gentoo Base System release 1.12.10 Timestamp of tree: Mon, 23 Jul 2007 07:30:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17.50.0.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=nocona -mtune=nocona -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=nocona -mtune=nocona -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ " LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac acl acpi alsa amd64 apm berkdb bitmap-fonts blas bluetooth bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dell dri dvd dvdr dvdread encode fam fortran gdbm gif gphoto2 gpm gstreamer hal iconv ieee1394 ipv6 isdnlog jpeg kde lapack libg++ lm_sensors mad midi mikmod mmx mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcmcia pcre pdf perl pmu png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session smp spell spl sse sse2 ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis xinerama xml xorg xv xvid 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 mulaw multi null plug rate route share shm softvol" CAMERAS="fuji canon casio kodak konica minolta panasonic ptp2 samsung" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="i810" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Simon, sys-devel/binutils: 2.17.50.0.17 Is that sane? Can you reproduce this bug with a ~amd64 binutils (currently 2.17-r1) I couldn't reproduce your bug using gcc-4.2.0 and binutils-2.17-r1. Please re-open if you can do so. Thanks, malc.
Re-openining - Flameeyes pointed me in the right direction - the 2.17 linker is skipping over the broken files since we are dynamic linking - the snapshot version is stricter and causes us to bail. We need to fix all the asm stuff that is compiled by nasm - that doesn't produce 64bit elfs... Probably we will just the asm parts on x86_64.
(In reply to comment #1) > Simon, > > sys-devel/binutils: 2.17.50.0.17 > > Is that sane? Can you reproduce this bug with a ~amd64 binutils (currently > 2.17-r1) Just want to answer your question: With binutils-2.17-r1 I get another problem. nasm -f elf synthasm.nas -o synthasm.o -l synthasm.lst synthasm.nas:459: warning: section attributes ignored on redeclaration of sectio n `.text' /usr/lib/libm.so: file not recognized: File format not recognized collect2: ld returned 1 exit status make: *** [config.h] Error 1 make: *** Waiting for unfinished jobs.... synthasm.nas:863: warning: signed byte value exceeds bounds * * ERROR: media-sound/musepack-tools-1.15v-r1 failed. * Call stack: * ebuild.sh, line 1648: Called dyn_compile * ebuild.sh, line 988: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * musepack-tools-1.15v-r1.ebuild, line 65: Called die Maybe that's because different binutils-versions were used, I don't know. Thanks, Simon
Works fine over here with gcc-4.1.2 and binutils-2.17-r1. Tried it with binutils-2.17.50.0.18 (currently ~amd64) and got the same error. Those binutils snapshots always gave me trouble, so I masked them. emerge --info Portage 2.1.3.6 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r4 x86_64) ================================================================= System uname: 2.6.22-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System release 1.12.10 Timestamp of tree: Tue, 21 Aug 2007 07:30:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildsyspkg ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=9" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/lila-theme /usr/portage/local/layman/sunrise /usr/portage/local/andrija" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi akode alsa amd64 aotuv arts audiofile berkdb bitmap-fonts bzip2 cairo caps cddb cdparanoia cli cracklib crypt css cups curl dbus devil doc dri dts dv dvd dvdr dvdread editor encode examples exif expat fat ffmpeg fftw flac fontconfig fortran fpx gd gdbm gif glitz gmp gnutls gphoto2 gpm graphviz gs gtk hal iconv ieee1394 imagemagick imlib ipv6 isdnlog jpeg jpeg2k kde lame libsamplerate lirc lzo mad matroska midi mikmod mjpeg mmx mmxext mng modplug mp3 mp4 mpeg mplayer mudflap musepack musicbrainz ncurses nfs nls nptl nptlonly nsplugin ntfs offensive ogg openal openexr opengl openmp pam pango pascal pcre pdf perl plotutils pmount png postgres povray ppds pppd python qt3 qt3support qt4 quicktime rar readline reflection samba scanner sdl session sndfile sox spell spl sse sse2 ssl svg tcpd tga theora tiff tools truetype truetype-fonts type1-fonts unicode usb utempter v4l v4l2 vcd vhosts visualization vorbis wmf x264 xerces-c xine xml xorg xpm xv xvid xvmc zlib zvbi" ALSA_CARDS="emu10k1 via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick vmmouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga v4l" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
I'm running binutils 2.18 gcc 4.1.2. On amd64. I get the following: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `fft4gasm.o' is incompatible with i386:x86-64 output collect2: ld returned 1 exit status make: *** [mppenc] Error 1 * * ERROR: media-sound/musepack-tools-1.15v-r1 failed. * Call stack: * ebuild.sh, line 1684: Called dyn_compile * ebuild.sh, line 1020: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * musepack-tools-1.15v-r1.ebuild, line 65: Called die * The specific snippet of code: * ARCH= emake CC="$(tc-getCC)" mppenc mppdec replaygain || die * The die message: * (no error message) * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-sound/musepack-tools-1.15v-r1/temp/build.log'. *
no need to confirms this again and again, like malc pointed out, there's 32bit asm in fft4gasm.nas which leads to: angelos@loki sv7 % nasm -f elf -o fft4gasm.o fft4gasm.nas angelos@loki sv7 % file fft4gasm.o fft4gasm.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped binutils-2.17 ignores it, binutils-2.18 does what it's told to do, link in fft4gasm.o which fails
Just a small addition: if you have 16bit in USE, it will error out on different files: /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `cpu_feat.o' is incompatible with i386:x86-64 output /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `synthasm.o' is incompatible with i386:x86-64 output collect2: ld returned 1 exit status make: *** [mppdec] Error 1 make: *** Waiting for unfinished jobs....
Created attachment 138750 [details, diff] Makefile diff to remove asm refs OK, after checking the Musepack svn and forum, it turns out that the asm has been removed from the current beta of SV8 and that there's no point in building or linking the asm unless USE_ASM is defined: http://forum.musepack.net/showthread.php?t=230 So, as an experiment, I hacked out all references to the asm object and source files, compiled, and it built. So far I've only tested mppdec, but I was able to play a musepack file just fine with it.
thanks Thomas. I had the same problem as the initial bug-reporter with gcc-4.1.2 and binutils 2.18-r1 on amd64. With those asm references patched out everything compiled fine. Think there is no need for a detailed emerge --info and the like. -- Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64)
Created attachment 149458 [details] Altered ebuild - compiles on amd64 nasm -f elf vs. nasm -f elf64 The attached ebuild will simply alter the Makefile (added a sed hack for amd64). Ebuild might need some more dev love, but compiled for me. Enjoy.
I had to use "MAKEOPTS="-j1", the -r2 ebuild AND emerge nasm as 2.02, not 0.98.39-r3 to get musepack-tools to compile.
(In reply to comment #11) > I had to use "MAKEOPTS="-j1", the -r2 ebuild AND emerge nasm as 2.02, not > 0.98.39-r3 to get musepack-tools to compile. > I didn't have to drop MAKEOPTS to j1, and already had nasm 2.02. The attached ebuild worked for me. Portage 2.1.5.4 (default-linux/amd64/2007.0/desktop, gcc-4.3.0, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 x86_64) ================================================================= System uname: 2.6.25-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ Timestamp of tree: Sun, 08 Jun 2008 01:35:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r3 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -ggdb -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" 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/terminfo /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe -ggdb -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="" LINGUAS="en" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" 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/overlays/paludis-extras /usr/local/overlays/sunrise /usr/local/overlays/gnome /usr/local/overlays/mainline /usr/local/overlays/desktop-effects /usr/local/overlays/vmware /usr/local/overlays/berkano /usr/local/overlays/myoverlay" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 amr bash-completion berkdb bluetooth bzip2 cairo cdda cdr cli cracklib crypt css cups dbus dri dts dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg flac fortran gdbm gif glitz gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kdehiddenvisibility kerberos ldap libnotify mad midi mikmod mmx mono mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png pppd python qt3support qt4 quicktime readline reflection ruby samba sdl session spell spl sqlite sse sse2 ssl svg tcpd theora tiff truetype unicode usb userlocales vcd vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="cmipci hdaintel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I didn't have to drop MAKEOPTS too (gcc-4.3.1, nasm-2.03.01). Everything works fine with the ebuild from Rene Treffer.
*** Bug 231858 has been marked as a duplicate of this bug. ***
Created attachment 167447 [details, diff] Small nasm version dep patch to Rene Treffer's ebuild above A small patch to Rene Treffer's ebuild, making the nasm > 2.0 dependency explicit. This was probably already intended since there were nasm dep lines for both "x86?" and "amd64?" in place.
When this bug gets fixed, please do remember that it is not just the v1.15v-r1 ebuild that needs fixing. Also the v1.15 ebuild needs the same massage -- and it currently has amd64 marked as stable ...
Fix provided in comment #10 works here too, would be great if a dev had 5 minutes to commit the update, Thanks
Fixed in the funtoo portage tree, but not in gentoo: http://github.com/funtoo/portage/commit/8c111eead306d421341e9aa9c55f0b8024ed418d
(In reply to comment #10) > Created an attachment (id=149458) [edit] > Altered ebuild - compiles on amd64 > > nasm -f elf vs. nasm -f elf64 > > The attached ebuild will simply alter the Makefile (added a sed hack for > amd64). Ebuild might need some more dev love, but compiled for me. > > Enjoy. > Didn't understand the make clean part, so I omitted it. Tested, works, applied without a version bump (to both -r0 & r1). Please file new bugs for any additional problems. Resolving bug. Thanks (and sorry for not responding quicker).