Created attachment 453386 [details] full build log /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libstdc++.a(eh_globals.o): relocation R_X86_64_TP OFF32 against `_ZZN12_GLOBAL__N_110get_globalEvE6global' can not be used when making a shared object; recompile with -fPIC /usr/lib/libstdc++.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status emerge --info Portage 2.3.2 (python 2.7.12-final-0, hardened/linux/amd64/no-multilib, gcc-5.3.0, glibc-2.23-r3, 3.3.2-hardened x86_64) ================================================================= System uname: Linux-3.3.2-hardened-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.3 KiB Mem: 8167824 total, 3731020 free KiB Swap: 16016792 total, 15839100 free Timestamp of repository gentoo: Tue, 15 Nov 2016 08:45:01 +0000 sh bash 4.4_p5 ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1 app-shells/bash: 4.4_p5::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.0-r2::gentoo dev-lang/python: 2.7.12::gentoo, 3.5.2::gentoo dev-util/cmake: 3.7.0::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.22.3-r1::gentoo sys-apps/sandbox: 2.11-r2::gentoo sys-devel/autoconf: 2.69-r2::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.26.1::gentoo, 2.27::gentoo sys-devel/gcc: 5.3.0::gentoo, 5.4.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 gentoo-xvilka location: /var/lib/layman/gentoo-xvilka masters: gentoo priority: 1 godin location: /var/lib/layman/godin masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -mtune=generic -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/qmail/alias /var/qmail/control /var/spool/munin-async/.ssh /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/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="-march=core2 -mtune=generic -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli cracklib crypt cvs cxx dri gdbm git gnutls hardened iconv ipv6 justify lighttpd mercurial mmx mmxext modules ncurses nls nptl openmp pam pax_kernel pcre perl php pie postgresql python readline sbcl seccomp session sse sse2 sse4 ssl ssp ssse3 subversion tcpd unicode urandom xattr xml xmlrpc xsl xtpax zlib" ABI_X86="64" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Looks related: https://bugs.gentoo.org/show_bug.cgi?id=597694
Same in sci-libs/scipy: /scipy-0.18.1/work/scipy-0.18.1-python2_7/build/temp.linux-x86_64-2.7 -lpython2.7 -o /var/tmp/portage/sci-libs/scipy-0.18.1/work/scipy-0. 18.1-python2_7/build/lib/scipy/interpolate/_interpolate.so /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libstdc++.a(eh_globals.o): relocation R_X86_64_ TPOFF32 against `_ZZN12_GLOBAL__N_110get_globalEvE6global' can not be used when making a shared object; recompile with -fPIC /usr/lib64/libstdc++.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libstdc++.a(eh_globals.o): relocation R_X86_64_ TPOFF32 against `_ZZN12_GLOBAL__N_110get_globalEvE6global' can not be used when making a shared object; recompile with -fPIC /usr/lib64/libstdc++.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status
Same in sys-cluster/openmpi: /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libstdc++.a(eh_globals.o): relocation R_X86_64_TPOFF32 against `_ZZN12_GLOBAL__N_110get_globalEvE6global' can not be used when making a shared object; recompile with -fPIC /usr/lib64/libstdc++.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status
Same in net-libs/gnutls: libtool: link: x86_64-pc-linux-gnu-g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64/crti.o /us r/lib/gcc/x86_64-pc-linux-gnu/5.3.0/crtbeginS.o .libs/libgnutlsxx_la-gnutlsxx.o -Wl,-rpath -Wl,/var/tmp/portage/net-libs/gnutls-3.4.16 /work/gnutls-3.4.16-abi_x86_64.amd64/lib/.libs -Wl,--as-needed ./.libs/libgnutls.so -L/usr/lib64 -lz /usr/lib64/libtasn1.so -lnettle -lho gweed -lgmp -L/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../lib64 -L/lib/../lib64 -L/usr/li b/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../.. /usr/lib/../lib64/libstdc++.a -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/.. /../../../lib64/crtn.o -march=core2 -mtune=generic -O2 -Wl,-O1 -Wl,-soname -Wl,libgnutlsxx.so.28 -o .libs/libgnutlsxx.so.28.1.0 /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/../lib64/libstdc++.a(eh_globals.o): relocation R_ X86_64_TPOFF32 against `_ZZN12_GLOBAL__N_110get_globalEvE6global' can not be used when making a shared object; recompile with -fPIC /usr/lib/../lib64/libstdc++.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[4]: *** [Makefile:1663: libgnutlsxx.la] Error 1
Found the reason - installed dev-lang/gnat-gcc-4.9.3, which provided this /usr/lib/libstdc++.a. All those bugs were solved after removing gnat-gcc. Still cannot be closed for now, since installing gnat-gcc brings problem back.
Added Ada team, since this bug is only presented when dev-lang/gnat-gcc-4.9.3 is installed.
*** Bug 599784 has been marked as a duplicate of this bug. ***
*** Bug 597694 has been marked as a duplicate of this bug. ***
Sorry, ada is a massive PITA and pretty much unsupported on Gentoo right now.