Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494928 - dev-libs/elfutils-0.156[threads] - ld: elflint.o: undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
Summary: dev-libs/elfutils-0.156[threads] - ld: elflint.o: undefined reference to symb...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2013-12-21 08:12 UTC by LE GARREC Vincent
Modified: 2014-10-20 17:08 UTC (History)
4 users (show)

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


Attachments
elfutils-0.156 build.log.tar.xz (build.log.tar.xz,15.29 KB, application/x-xz-compressed-tar)
2013-12-21 18:46 UTC, LE GARREC Vincent
Details
elfutils-0.158 -O2 build.log (build.log,622.30 KB, text/plain)
2014-02-03 02:38 UTC, Alex Xu (Hello71)
Details
bfd build.log (also -O2) (build.log,622.66 KB, text/plain)
2014-02-03 14:33 UTC, Alex Xu (Hello71)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LE GARREC Vincent 2013-12-21 08:12:00 UTC
I have the same problem that the one in the summary field :

x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -DDEBUGPRED=0 -DSRCDIR=\"/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/src\" -DOBJDIR=\"/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156-amd64/src\" -I. -I/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/src -I.. -I. -I/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/src -I/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/lib -I.. -I/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/src/../libelf -I/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/src/../libebl -I/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/src/../libdw -I/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/src/../libdwfl -I/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/src/../libasm -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2 -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -c -o i386_ld.os -fpic -DPIC -DSHARED /home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/src/i386_ld.c
chmod +x make-debug-archive.new
mv -f make-debug-archive.new make-debug-archive
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o nm nm.o ../libdw/libdw.so ../libebl/libebl.a ../libelf/libelf.so ../lib/libeu.a  -ldl -lstdc++ 
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o size size.o ../libelf/libelf.so ../lib/libeu.a  
x86_64-pc-linux-gnu-ranlib libar.a
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o strip strip.o ../libebl/libebl.a ../libelf/libelf.so ../lib/libeu.a  -ldl 
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o elfcmp elfcmp.o ../libebl/libebl.a ../libelf/libelf.so  -ldl 
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o findtextrel findtextrel.o ../libdw/libdw.so ../libelf/libelf.so  
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o addr2line addr2line.o ../libdw/libdw.so ../libelf/libelf.so  
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o objdump objdump.o ../libasm/libasm.so ../libebl/libebl.a ../libelf/libelf.so ../lib/libeu.a  -ldl 
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o ranlib ranlib.o libar.a ../libelf/libelf.so ../lib/libeu.a  
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o strings strings.o ../libelf/libelf.so ../lib/libeu.a  
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o ar ar.o libar.a ../libelf/libelf.so ../lib/libeu.a  
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o unstrip unstrip.o ../libebl/libebl.a ../libelf/libelf.so ../libdw/libdw.so ../lib/libeu.a  -ldl 
rm -f libld_elf_i386_pic.a
ar cru libld_elf_i386_pic.a i386_ld.os 
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o readelf readelf.o ../libdw/libdw.so ../libebl/libebl.a ../libelf/libelf.so ../lib/libeu.a  -ldl 
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -rdynamic -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o ld ld.o ldgeneric.o ldlex.o ldscript.o symbolhash.o sectionhash.o versionhash.o ../libebl/libebl.a ../libelf/libelf.so ../lib/libeu.a  -ldl  
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o elflint elflint.o ../libebl/libebl.a ../libelf/libelf.so ../lib/libeu.a  -ldl 
x86_64-pc-linux-gnu-ranlib libld_elf_i386_pic.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: readelf.o: undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'pthread_rwlock_wrlock@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: elflint.o: undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'pthread_rwlock_wrlock@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
x86_64-pc-linux-gnu-gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline -Wformat=2    -march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -Wl,-rpath-link,../libelf:../libdw -Wl,-O1 -Wl,--as-needed -Wl,-O0 -o libld_elf_i386.so -shared -o libld_elf_i386.so -Wl,--whole-archive,libld_elf_i386_pic.a,--no-whole-archive \
        ../libelf/libelf.so ../lib/libeu.a \
        -Wl,--version-script,/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156/src/libld_elf_i386.map
Makefile:658: recipe for target 'readelf' failed
make[2]: *** [readelf] Error 1
make[2]: *** Waiting for unfinished jobs....
if readelf -d libld_elf_i386.so | fgrep -q TEXTREL; then exit 1; fi
collect2: error: ld returned 1 exit status
Makefile:630: recipe for target 'elflint' failed
make[2]: *** [elflint] Error 1
rm i386_ld.o
make[2]: Leaving directory '/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156-amd64/src'
Makefile:454: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/legarrec/overlay/portage/dev-libs/elfutils-0.156/work/elfutils-0.156-amd64'
Makefile:369: recipe for target 'all' failed
make: *** [all] Error 2



To solve this problem, just replace 
ECONF_SOURCE="${S}" econf \
by
ECONF_SOURCE="${S}" LIBS="-lpthread" econf \
in the ebuild.

Reproducible: Always




emerge --info '=dev-libs/elfutils-0.156::gentoo'

Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.17, 3.11.10-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.11.10-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8131792 total,   3194680 free
KiB Swap:    9767516 total,   9027808 free
Timestamp of tree: Fri, 20 Dec 2013 19:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.1-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo maggu2810-overlay gamerlay maekke science gnome x-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j9 --load-average=9"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news noclean parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O0"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/home/legarrec/overlay"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/maggu2810-overlay /var/lib/layman/gamerlay /var/lib/layman/maekke /var/lib/layman/science /var/lib/layman/gnome /home/legarrec/overlay"
USE="X alsa amd64 berkdb bzip2 cjk cli colord cracklib crypt cuda cxx dbus dri fortran gdbm gnome gtk gtk3 gudev iconv ipv6 jabber mmx mmxext modules mpi mudflap multilib ncurses nls nptl openmp pam pcre pulseaudio qt3support readline session sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 systemd tcpd threads unicode x264 zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-console presenter-minimizer" LINGUAS="fr en ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-libs/elfutils-0.156 was built with the following:
USE="bzip2 (multilib) nls static-libs threads utils zlib -lzma -test" ABI_X86="64 -32 -x32"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-21 16:38:54 UTC
Please attach the entire build log to this bug report.
Comment 2 LE GARREC Vincent 2013-12-21 18:46:29 UTC
Created attachment 365838 [details]
elfutils-0.156 build.log.tar.xz
Comment 3 SpanKY gentoo-dev 2013-12-23 10:30:12 UTC
my guess is there is some code that normally gets DCE in a header file, but because you're forcing -O0, gcc never gets a chance to do that.  so files that don't use pthreads themselves end up getting references in them anyways.

i'm not sure upstream would really be interested in fixing this ...
Comment 4 LE GARREC Vincent 2013-12-25 10:54:45 UTC
You're right, thanks. That was the -O0. Maybe add "replace-flags -O0 -O2" in the ebuild ?
Comment 5 Oleh 2014-01-03 18:31:45 UTC
this happens with "sane" cflags too with binutils-2.23.2, it doesn't happen with binutils-2.23.1
Comment 6 Oleh 2014-01-03 18:37:38 UTC
this happens with "sane" cflags too with binutils-2.23.2, it doesn't happen with binutils-2.23.1
Comment 7 Oleh 2014-01-03 18:38:20 UTC
same with elfutils-0.157, emerged fine only with binutils-2.23.1
Comment 8 Sebastien Druon 2014-01-03 23:04:12 UTC
I have the same problem with elfutils-0.157.
I couldn't get it to emerge with any version of binutils newer than 2.23.1 with the "threads" USE.
Comment 9 Sylvain BERTRAND 2014-01-08 13:56:14 UTC
Still around for elfutils 0.158
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2014-01-09 01:08:30 UTC
What exactly do you mean by "sane" flags.  If you're using -O0 then this simply isn't going to work.
Comment 11 Oleh 2014-01-09 08:54:22 UTC
-march=core2 -O2 -pipe is "sane"? Obviously -O0 not used
Comment 12 SpanKY gentoo-dev 2014-01-09 12:54:19 UTC
(In reply to Oleg from comment #11)

attach your actual system details as well as full build logs
Comment 13 Panagiotis Christopoulos (RETIRED) gentoo-dev 2014-01-13 22:31:28 UTC
Just to add my bit in the story, I hit this too on a ~amd64 no-multilib box when tried to update elfutils from 0.157 to 0.158, I saw Mike's reply and checked my cflags which were "-march=native -pipe -g -ggdb" (had forgotten them to that state), I reapplied -O2 and I emerged it flawlessly. The machine is updated and has binutils-2.24-r1.
Comment 14 Alex Xu (Hello71) 2014-02-03 02:18:20 UTC
some env variables omitted due to excessive size (e.g. LS_COLORS)

% emerge --info \=dev-libs/elfutils-0.158
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.18-r1, 3.13.0+ x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.13.0+-x86_64-Intel-R-_Core-TM-_i5_CPU_750_@_2.67GHz-with-gentoo-2.2
KiB Mem:     8160300 total,   1077064 free
KiB Swap:    8387580 total,   8387580 free
Timestamp of tree: Thu, 30 Jan 2014 16:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://happinessforme.com/gentoo-portage
    priority: -1000

systemd
    location: /var/lib/layman/systemd
    masters: gentoo
    priority: 0

steam-overlay
    location: /var/lib/layman/steam
    masters: gentoo
    priority: 1

local-overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 2

crossdev
    location: /var/lib/crossdev
    masters: gentoo
    priority: 3

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @FREE"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ANDROID_HOME="/opt/android-sdk-update-manager"
ANDROID_SWT="/usr/share/swt-3.7/lib"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="actions alias authz_host autoindex cache cgi cgid 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"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode python_targets_python3_3 python_targets_python2_7 multilib"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_DIR="/var/tmp/portage/.ccache"
CFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=gold"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="0"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CROSSDEV_OVERLAY="/var/lib/crossdev"
CXXFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=gold"
DCCC_PATH="/usr/lib64/distcc/bin"
DEFAULT_ABI="amd64"
DISPLAY=":0"
DISTCC_LOG=""
DISTCC_VERBOSE=""
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vi"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --ask-enter-invalid --autounmask-write --jobs=4 --keep-going --oneshot --usepkg --verbose"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy ccache compressdebug config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
FLTK_DOCDIR="/usr/share/doc/fltk-1.3.2/html"
GCC_SPECS=""
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles"
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=""
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.24/info"
INPUT_DEVICES="evdev wacom"
IUSE_IMPLICIT="prefix"
KERNEL="linux"
LANG="en_CA.UTF-8"
LANGUAGE=""
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_MESSAGES="C"
LD="ld.gold"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=gold"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_arm="lib"
LIBDIR_arm64="lib64"
LIBDIR_n32="lib32"
LIBDIR_n64="lib64"
LIBDIR_o32="lib"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LIBGL_DRIVERS_PATH="/usr/lib64/dri:/usr/lib32/dri"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="en en_US en_GB en_CA"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="-j10 -l5.0"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.24/man:/etc/java-config-2/current-system-vm/man/"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NGINX_MODULES_HTTP="access auth_basic autoindex fastcgi gzip gzip_static conn req proxy referer rewrite spdy hash"
OFFICE_IMPLEMENTATION="libreoffice"
OPENCL_PROFILE="amd"
OPENGL_PROFILE="xorg-x11"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin"
PHP_TARGETS="php5-5"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha hppa x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux arm x86-netbsd ppc64-linux x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris m68k sh arm64 x86-solaris sparc-fbsd"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_NICENESS="10"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_PYTHONPATH="/usr/lib64/portage/pym"
PORTAGE_REPOSITORIES="[DEFAULT]
main-repo = gentoo

[crossdev]
location = /var/lib/crossdev
masters = gentoo
priority = 3

[gentoo]
location = /usr/portage
masters = 
priority = -1000
sync-type = rsync
sync-uri = rsync://happinessforme.com/gentoo-portage

[local-overlay]
location = /usr/local/portage
masters = gentoo
priority = 2

[steam-overlay]
location = /var/lib/layman/steam
masters = gentoo
priority = 1

[systemd]
location = /var/lib/layman/systemd
masters = gentoo
priority = 0
"
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_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="security.* system.nfs4_acl"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/steam /usr/local/portage /var/lib/crossdev"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PRELINK_PATH="/usr/local/bin:/usr/local/sbin"
PRELINK_PATH_MASK="/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python2_7 python3_3 pypy2_0"
PYTHON_TARGETS="python2_7 python3_3 pypy2_0"
QEMU_SOFTMMU_TARGETS="arm i386 x86_64"
QT_GRAPHICSSYSTEM="native"
QT_PLUGIN_PATH="/usr/lib64/kde4/plugins"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby19"
SHELL="/bin/zsh"
SYMLINK_LIB="yes"
SYNC="rsync://happinessforme.com/gentoo-portage"
TERM="xterm"
UNINSTALL_IGNORE="/lib/modules/*"
USE="X aac acl acpi alsa amd64 berkdb branding bzip2 cairo caps cdr cli cracklib crypt cups cxx dbus declarative dri dvdr emboss encode exif firefox flac gif gpm gtk iconv inotify ipv6 jpeg kde kipi libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nptl ogg opengl openmp pango pch pcre pdf pgo phonon plasma png policykit ppds qt3support qt4 readline sdl session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd threads tiff truetype udev unicode usb vim-syntax vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias authz_host autoindex cache cgi cgid 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" 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 ublox ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_GB en_CA" NGINX_MODULES_HTTP="access auth_basic autoindex fastcgi gzip gzip_static conn req proxy referer rewrite spdy hash" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7 python3_3 pypy2_0" PYTHON_TARGETS="python2_7 python3_3 pypy2_0" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="fglrx radeon" 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"
USER="root"
USERLAND="GNU"
USERNAME="root"
USE_EXPAND="ABI_MIPS ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS CURL_SSL DRACUT_MODULES DVB_CARDS ELIBC ENLIGHTENMENT_MODULES FCDSL_CARDS FFTOOLS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL LCD_DEVICES LIBREOFFICE_EXTENSIONS LINGUAS LIRC_DEVICES MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 hppa hppa-hpux ia64 ia64-hpux ia64-linux m68k m68k-mint mips ppc ppc64 ppc64-linux ppc-aix ppc-macos ppc-openbsd s390 sh sparc sparc64-freebsd sparc64-solaris sparc-fbsd sparc-solaris x64-freebsd x64-macos x64-openbsd x64-solaris x86 x86-cygwin x86-fbsd x86-freebsd x86-interix x86-linux x86-macos x86-netbsd x86-openbsd x86-solaris x86-winnt"
USE_EXPAND_VALUES_ELIBC="AIX Cygwin Darwin FreeBSD glibc HPUX Interix mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
USE_EXPAND_VALUES_KERNEL="AIX Cygwin Darwin FreeBSD freemint HPUX Interix linux NetBSD OpenBSD SunOS Winnt"
USE_EXPAND_VALUES_USERLAND="BSD GNU"
USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
USE_PYTHON="2.7 2.7-pypy-2.0 3.3"
VBOX_APP_HOME="/usr/lib64/virtualbox"
VIDEO_CARDS="fglrx radeon"
VISUAL="/usr/bin/vi"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
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"
Comment 15 Alex Xu (Hello71) 2014-02-03 02:38:28 UTC
Created attachment 369404 [details]
elfutils-0.158 -O2 build.log
Comment 16 Alex Xu (Hello71) 2014-02-03 14:33:58 UTC
Created attachment 369438 [details]
bfd build.log (also -O2)

also fails with ld.bfd -O2
Comment 17 Alex Xu (Hello71) 2014-02-03 14:34:43 UTC
sorry for spam
Comment 18 SpanKY gentoo-dev 2014-02-04 01:13:39 UTC
the threads flag is package.use.mask-ed now