during system update, package kbuild fails to build even using CFLAGS="" and MAKEOPTS="" Reproducible: Always Steps to Reproduce: 1.emerge -uND dev-util/kbuild The fail point seems to be this: /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/incdep.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1' /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line /lib/libpthread.so.0: could not read symbols: Invalid operation collect2: ld returned 1 exit status kmk: *** [/var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmk] Error 1 The failing command: @gcc -g -Wl,-O1 -Wl,--as-needed -m32 -o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmk /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/main.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kbuild.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/read.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/expreval.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/incdep.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/hash.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/strcache.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/strcache2.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/variable.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/ar.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/arscan.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/commands.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/default.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/dir.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/expand.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/file.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/function.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/implicit.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/job.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/misc.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/alloccache.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/remake.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/rule.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/signame.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/version.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/vpath.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/remote-stub.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/append.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/cat.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/chmod.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/cmp.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/cmp_util.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/cp.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/cp_utils.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/echo.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/expr.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/install.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/kDepIDB.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/kDepObj.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/md5sum.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/mkdir.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/mv.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/ln.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/printf.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/rm.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/rmdir.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/sleep.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmk/kmkbuiltin/test.o /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kUtil/kUtil.a /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kDep/kDep.a -lrt /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kmkmissing/kmkmissing.a /var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/obj/kUtil/kUtil.a kmk: *** Waiting for unfinished jobs.... kmk: Leaving directory `/var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817' kmk: Entering directory `/var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817' kmk: *** Exiting with status 2 make: *** [/var/tmp/portage/dev-util/kbuild-0.1.9998_pre20110817/work/kBuild-0.1.9998-pre20110817/out/linux.x86/release/bootstrap/ts-stage2-build] Errore 2
Portage 2.1.10.11 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.12.2-r0, 3.0.6-gentoo i686) ================================================================= System uname: Linux-3.0.6-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.0.3 Timestamp of tree: Fri, 09 Dec 2011 09:45:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/cmake: 2.8.6-r4 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.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.22 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.12.2 Repositories: gentoo science lxde zugaina proaudio elettronik ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA PUEL Q3AEULA dlj-1.1 sun-bcla-java-vm skype-eula AdobeFlash-10.1 AdobeFlash-10 AdobeFlash-9.0.31.0" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=core2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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 -pipe" DISTDIR="/home/portage/distfiles/" EMERGE_DEFAULT_OPTS="" 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 usersandbox" FFLAGS="-O2 -march=core2 -pipe" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://tux.rainside.sk/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://mirror.ovh.net/gentoo-distfiles/" LANG="it_IT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="it en en_GB en_US" MAKEOPTS="-j3" PKGDIR="/home/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="/var/lib/layman/science /var/lib/layman/lxde /var/lib/layman/zugaina /var/lib/layman/pro-audio /home/elettronik/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac acl alsa bash-completion bluetooth bzip2 cairo cleartype cli consolekit cracklib crypt cups custom-cflags custom-optimization cxx dbus device-mapper dri fortran gd gdbm gmp gnutls gpm iconv idn jack java jpeg libnotify lm_sensors mmap mmx modules mudflap ncurses nls nptl nptlonly nss ogg opengl pam pcre png policykit pppd qt4 readline session sqlite sqlite3 sse sse2 ssl svg sysfs threads truetype udev unicode vim-syntax wifi win32codecs x86 xattr xcomposite xorg zlib" ALSA_CARDS="loopback hda-intel usb-audio" 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 authz_host autoindex cgi deflate dir env expires ext_filter filter headers include info log_config mime mime_magic negotiation rewrite setenvif vhost_alias dav dav_fs dav_lock userdir status authn_file authz_user auth_digest" APACHE2_MPMS="worker" 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="evdev" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="it en en_GB en_US" LIRC_DEVICES="devinput userspace" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XFCE_PLUGINS="brightness logout trash menu" 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
Failure seem related to sys-devel/binutils-2.22, after removin keywords ~x86 on binutils and downgrading to sys-devel/binutils-2.21.1-r1, the package build correctly
Please attach the entire build log to this bug report.
Cannot attach build log because was deleted after successful build. By the way examining build log the only error that show up is the one shown before. No other warning are issued.