Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146282 - Unable to merge sys-devel/binutils-2.16.1-r3 on amd64 with distcc
Summary: Unable to merge sys-devel/binutils-2.16.1-r3 on amd64 with distcc
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-04 09:09 UTC by Torbjörn Svensson
Modified: 2006-09-04 13:47 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjörn Svensson 2006-09-04 09:09:32 UTC
I am unable to build sys-devel/binutils-2.16.1-r3 on amd64 using distcc. Maybe distcc, and probobly ccache too, should be striped of $FEATURES before getting merged? This is the error I get:

gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/opcodes -I. -D_GNU_SOURCE -I. -I/var/tmp/portage/binutils-2.16.1-r3/wo                     rk/binutils-2.16.1/opcodes -I../bfd -I/var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/opcodes/../include -I/var/tmp/portage/binutils-2.16.1-r3/w                     ork/binutils-2.16.1/opcodes/../bfd -I/var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmi                     ssing-prototypes -march=athlon64 -O2 -pipe -c /var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/opcodes/dis-init.c -o dis-init.o >/dev/null 2>&1
gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/opcodes -I. -D_GNU_SOURCE -I. -I/var/tmp/portage/binutils-2.16.1-r3/wo                     rk/binutils-2.16.1/opcodes -I../bfd -I/var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/opcodes/../include -I/var/tmp/portage/binutils-2.16.1-r3/w                     ork/binutils-2.16.1/opcodes/../bfd -I/var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmi                     ssing-prototypes -march=athlon64 -O2 -pipe -c /var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/opcodes/i386-dis.c -o i386-dis.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -march=athlon64 -O2 -pipe    -o libopcodes.la -rpath /usr/lib64/binut                     ils/x86_64-pc-linux-gnu/2.16.1 -release 2.16.1  dis-buf.lo disassemble.lo dis-init.lo i386-dis.lo  
gcc -shared  .libs/dis-buf.o .libs/disassemble.o .libs/dis-init.o .libs/i386-dis.o   -Wl,-soname -Wl,libopcodes-2.16.1.so -o .libs/libopcodes-2.16.1.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: warning: i386 architecture of input file `.libs/disassemble.o' is incompat                     ible with i386:x86-64 output
.libs/disassemble.o: In function `disassembler':
disassemble.c:(.text+0x39): undefined reference to `bfd_get_arch'
collect2: ld returned 1 exit status
distcc[17509] ERROR: compile (null) on localhost failed
make[3]: *** [libopcodes.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/binutils-2.16.1-r3/work/build/opcodes'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/binutils-2.16.1-r3/work/build/opcodes'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/binutils-2.16.1-r3/work/build/opcodes'
make: *** [all-opcodes] Error 2

!!! ERROR: sys-devel/binutils-2.16.1-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called toolchain-binutils_src_compile
  toolchain-binutils.eclass, line 197:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-04 09:28:38 UTC
Reopen with emerge --info.
Comment 2 Torbjörn Svensson 2006-09-04 09:42:43 UTC
# emerge --info
Portage 2.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 unknown
Gentoo Base System version 1.12.4
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ABI="amd64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE=""
ALSA_CARDS="emu10k1"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_SIZE="512M"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=athlon64 -O2 -pipe"
CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORFGBG="default;default;0"
COLORTERM="rxvt-xpm"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DCCC_PATH="/usr/lib/distcc/bin"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="autoconfig distcc distlocks metadata-transfer sandbox sfperms strict"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
G_BROKEN_FILENAMES="1"
G_FILENAME_ENCODING="UTF-8"
HOME="/root"
HUSHLOGIN="FALSE"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info"
INPUT_DEVICES="keyboard mouse"
JAVAC="/opt/blackdown-jdk-1.4.2.03/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JDK_HOME="/opt/blackdown-jdk-1.4.2.03"
KDEDIRS="/usr"
KERNEL="linux"
LC_ADDRESS="sv_SE.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="sv_SE.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_TIME="en_GB.UTF-8"
LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_x86="lib32"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:"
MAKEOPTS="-j8"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa x86"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_CALLER="emerge"
PORTAGE_CONFIGROOT="/"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
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'"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PWD="/"
PYTHONPATH="/usr/lib/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
ROOT="/"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="7"
STAGE1_USE="nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="rxvt-unicode"
USE="amd64 X alsa berkdb bitmap-fonts bzip2 cli crypt cups curl dlloader dri dvd fortran gdbm gtk gtk2 ipv6 isdnlog libg++ ncurses nptl nptlonly pam pcre perl ppds pppd python readline reflection session smp spl ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode vorbis xorg zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa"
USER="root"
USERLAND="GNU"
USE_EXPAND="DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults"
VIDEO_CARDS="nvidia nv vesa"
WINDOWID="25165828"
WMAKER_BIN_NAME="wmaker"
WRASTER_COLOR_RESOLUTION0="4"
XARGS="xargs -r"
XAUTHORITY="/root/.xauthnBjZg1"
XMLTV_OPTS="tv_grab_se"
_="/usr/bin/emerge"
Comment 3 SpanKY gentoo-dev 2006-09-04 12:21:43 UTC
my guess is you're trying to use non-amd64 nodes in your distcc list
Comment 4 Torbjörn Svensson 2006-09-04 12:59:58 UTC
Yes I am using non amd64 nodes to compile, *BUT* they do use a crosscompiled gcc and all the tools needed (created using crossdev). I have also made sure it do run the *correct* gcc by simply emerging some packages, and _none_ except binutils complained. I have also checked the logs on all nodes, and from what I can see there, it *does* use the correct gcc. The nodes are simply a stage3-i686-2006.1 in witch I have just run 
* emerge distcc
* crossdev -t x86_64
* fixed so it will use x86_64-pc-linux-gnu-4.1.1 and not i686-pc-linux-gnu-4.1.1 (changed in /etc/init.d/distcc and linked {g,}cc to x86_64-pc-linux-gnu-gcc and  {g++,cpp,cxx} to x86_64-pc-linux-gnu-g++ in /usr/i686-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/4.1.1 )
* started distcc
Comment 5 SpanKY gentoo-dev 2006-09-04 13:47:01 UTC
something is wrong in your setup, look at the error message:
warning: i386 architecture of input file `.libs/disassemble.o' is incompat     
               ible with i386:x86-64 output

that means something compiled it as a 32bit object instead of a 64bit