en/libroken.la -lcrypt -lresolv libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -O2 -pipe -ftracer -march=native -frecord-gcc-switches -g -fdiagnostics-color=always -Wimplicit-function-declaration -Wformat-security -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o .libs/tc tc.o ./.libs/libheim-ipcc.a /var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/base/.libs/libheimbase.so /var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/lib/roken/.libs/libroken.so ../../lib/vers/.libs/libvers.a ../../lib/roken/.libs/libroken.so -lcrypt -lresolv /var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/base/.libs/libheimbase.so: error: undefined reference to 'pthread_key_create' /var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/base/.libs/libheimbase.so: error: undefined reference to 'pthread_getspecific' /var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/base/.libs/libheimbase.so: error: undefined reference to 'pthread_setspecific' collect2: error: ld returned 1 exit status Makefile:799: recipe for target 'tc' failed make[2]: *** [tc] Error 1 make[2]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/lib/ipc' Makefile:557: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/lib' Makefile:599: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 * ERROR: app-crypt/heimdal-1.5.3-r2::gentoo failed (compile phase): * emake failed $ einfo =app-crypt/heimdal-1.5.3-r2 Portage 2.2.18 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.2-asneeded, glibc-2.20-r2, 4.0.2-lh x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.0.2-lh-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 16399524 total, 993756 free KiB Swap: 8388600 total, 8388600 free Timestamp of repository gentoo: Mon, 18 May 2015 05:45:01 +0000 sh bash 4.3_p33-r2 ld GNU gold (Gentoo 2.25 p1.0 2.25) 1.11 ccache version 3.2.2 [enabled] app-shells/bash: 4.3_p33-r2::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2-r1::gentoo dev-lang/python: 2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo dev-util/ccache: 3.2.2::gentoo dev-util/cmake: 3.2.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.16::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25::gentoo sys-devel/gcc: 4.1.2::gentoo, 4.9.2::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /var/db/gentoo sync-type: git sync-uri: https://github.com/gentoo/gentoo-portage-rsync-mirror.git priority: -1000 betagarden location: /local/src/repos/betagarden sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/betagarden.git masters: gentoo priority: 50 dummy location: /local/src/repos/dummy masters: gentoo priority: 50 last-hope location: /local/src/repos/last-hope sync-type: git sync-uri: git://github.com/ercpe/lh-overlay.git masters: gentoo priority: 50 science location: /local/src/repos/science sync-type: git sync-uri: git://github.com/gentoo-science/sci.git masters: gentoo priority: 50 gentoo-cvs location: /local/home/justin/tree masters: gentoo priority: 1000 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -ftracer -march=native -frecord-gcc-switches -g -fdiagnostics-color=always -Wimplicit-function-declaration -Wformat-security" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/munin-async/.ssh /var/spool/torque" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -ftracer -march=native -frecord-gcc-switches -g -fdiagnostics-color=always -Wenum-compare -Wformat-security" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS=" -vt --keep-going --autounmask-write --autounmask --quiet-build=n --autounmask-unrestricted-atoms=y" FCFLAGS="-O2 -pipe -ftracer -march=native -frecord-gcc-switches -g -fdiagnostics-color=always" FEATURES="assume-digests binpkg-logs buildsyspkg ccache cgroup collision-protect compressdebug distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -ftracer -march=native -frecord-gcc-switches -g -fdiagnostics-color=always" GENTOO_MIRRORS=" /mnt/tmpfs/ http://gentoo.j-schmitz.net/mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common" MAKEOPTS="-j12 -l8" PKGDIR="/var/cache/packages" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-z -e -9 -v --threads=4" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--omit-dir-times" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X acl alsa amd64 avx bash-completion berkdb branding bzip2 cairo caps cli cracklib crypt cups cxx dbus dri fortran gdbm gif gmp gstreamer gtk gtk3 iconv icu ipv6 jpeg jpeg2k ldap logrotate mmx mmxext modules multilib ncurses network-cron nls nptl nsplugin numa opengl openmp pam pcre pgo png pulseaudio qt3support readline session smp sse sse2 sse2_4way sse2check sse3 sse4 sse41 sse4_1 sse4_2 sse4a sse5 ssl ssse3 startup-notification tcpd threads tiff truetype unicode vaapi vdpau xattr xinerama zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DRACUT_MODULES="plymouth" 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 ublox ubx" GRUB_PLATFORMS="efi-32 efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport scripting-javascript wiki-publisher nlpsolver" LINGUAS="en en_GB en_US" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4 pypy" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm armeb" QEMU_USER_TARGETS="i386 x86_64 arm armeb" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="clock trash power" 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" USE_PYTHON="2.7 3.3" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND
Created attachment 403522 [details] build.log
Same failure mode, different place: >>> Test phase: app-crypt/heimdal-1.5.3-r2 * abi_x86_64.amd64: running multilib-minimal_abi_src_test make -j3 check Making check in include make[1]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include' Making check in kadm5 make[2]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/kadm5' make check-local make[3]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/kadm5' make[3]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/kadm5' make[2]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/kadm5' Making check in hcrypto make[2]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/hcrypto' make check-local make[3]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/hcrypto' make[3]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/hcrypto' make[2]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/hcrypto' Making check in gssapi make[2]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/gssapi' make check-local make[3]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/gssapi' make[3]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/gssapi' make[2]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include/gssapi' make[2]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include' make check-local make[3]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include' make[3]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include' make[2]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include' make[1]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/include' Making check in base make[1]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/base' make test_base make[2]: Entering directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/base' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3/base -I../include -I/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3/include -I../lib/roken -I/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3/lib/roken -I/usr/include/et -D_LARGE_FILES= -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -O2 -pipe -fno-strict-aliasing -c -o test_base.o /var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3/base/test_base.c /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -O2 -pipe -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed -o test_base test_base.o ../base/libheimbase.la -lresolv libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -O2 -pipe -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed -o .libs/test_base test_base.o ../base/.libs/libheimbase.so -lresolv ../base/.libs/libheimbase.so: undefined reference to `pthread_getspecific' ../base/.libs/libheimbase.so: undefined reference to `pthread_key_create' ../base/.libs/libheimbase.so: undefined reference to `pthread_setspecific' collect2: error: ld returned 1 exit status Makefile:608: recipe for target 'test_base' failed make[2]: *** [test_base] Error 1 make[2]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/base' Makefile:760: recipe for target 'check-am' failed make[1]: *** [check-am] Error 2 make[1]: Leaving directory '/var/tmp/portage/app-crypt/heimdal-1.5.3-r2/work/heimdal-1.5.3-abi_x86_64.amd64/base' Makefile:599: recipe for target 'check-recursive' failed make: *** [check-recursive] Error 1 * ERROR: app-crypt/heimdal-1.5.3-r2::gentoo failed (test phase): * emake failed
Works if you add -lpthread (such a silly upstream fail). But then it fails again on amd64 multilib without an extra -L/$(get_libdir) -L/usr/$(get_libdir). It doesn't quite look in the right places for linking either.