Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 533050

Summary: sys-fs/lvm2-2.02.109 USE=static - ld: /usr/lib64/libudev.a(virt.o):function detect_container: error: TLS relocation against invalid instruction
Product: Gentoo Linux Reporter: Petros <petros_20>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: agk, cardoe, robbat2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: build.log

Description Petros 2014-12-19 20:13:29 UTC
[ebuild   R    ] sys-fs/lvm2-2.02.109  USE="readline static* static-libs thin udev (-clvm) (-cman) -device-mapper-only -lvm1 -lvm2create_initrd (-selinux) -systemd" 0 KiB

As written above lvm2 is in trouble compiling static binaries (USE="static"). There is no problem at all with static-libs as shown above. The 

Reproducible: Always

Steps to Reproduce:
1.emerge -av1 sys-fs/lvm2

Portage 2.2.14 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.2, glibc-2.20, 3.18.0-gentoo x86_64)
System uname: Linux-3.18.0-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.2
KiB Mem:     3788096 total,    354388 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 19 Dec 2014 18:00:01 +0000
ld GNU gold (Gentoo git 1.11
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6-r1, 1.13.3, 1.14.1
sys-devel/binutils:, 9999
sys-devel/gcc:            4.9.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo vaca ext-devlibs gentoo-el last-hope science steam-overlay stuff gentoo-zh qt hacking-gentoo elementary wavilen palmer bleeding-edge dilfridge dotnet gentoo-bsd gitlab heather kork moonrise mistafunk nextoo pure-funtoo raw rust v-fox regina-gentoo kde-sunset sunrise OSSDL mipl_emc ROKO__ toolchain kde zugaina rebel x-local x-layman
Installed sets: @kde-applications-live, @kde-frameworks-live, @kde-next-live, @kde-plasma-live, @qt4, @qt5-essentials, @qt5-tools
ACCEPT_LICENSE="* -@EULA PUEL googleearth Q3AEULA-20000111 AdobeFlash-11.x Intel-SDP Q3AEULA skype- Oracle-BCLA-JavaSE cadsoft GIMPS"
CFLAGS="-march=native -O2 -m3dnow -mtls-dialect=gnu2 -mglibc -m64 -pipe -fomit-frame-pointer -frename-registers -ftracer -fno-stack-protector "
CONFIG_PROTECT="/etc /etc/entropy /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -m3dnow -mtls-dialect=gnu2 -mglibc -m64 -pipe -fomit-frame-pointer -frename-registers -ftracer -fno-stack-protector "
FCFLAGS="-march=native -O2 -m3dnow -mtls-dialect=gnu2 -mglibc -m64 -pipe -fomit-frame-pointer -frename-registers -ftracer -fno-stack-protector "
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned python-trace sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,--as-needed -Wl,-O2 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,-zcombreloc -Wl,--trace  -Wl,--print-output-format -Wl,-znow -Wl,--stats -Wl,--build-id"
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"
PORTDIR_OVERLAY="/var/lib/layman/vaca /var/lib/layman/ext-devlibs /var/lib/layman/gentoo-el /var/lib/layman/last-hope /var/lib/layman/science /var/lib/layman/steam /var/lib/layman/stuff /var/lib/layman/gentoo-zh /var/lib/layman/qt /var/lib/layman/hacking-gentoo /var/lib/layman/elementary /var/lib/layman/wavilen /var/lib/layman/palmer /var/lib/layman/bleeding-edge /var/lib/layman/dilfridge /var/lib/layman/dotnet /var/lib/layman/gentoo-bsd /var/lib/layman/gitlab /var/lib/layman/heather /var/lib/layman/kork /var/lib/layman/moonrise /var/lib/layman/mistafunk /var/lib/layman/nextoo /var/lib/layman/pure-funtoo /var/lib/layman/raw /var/lib/layman/rust /var/lib/layman/v-fox /var/lib/layman/regina-gentoo /var/lib/layman/kde-sunset /var/lib/layman/sunrise /var/lib/layman/OSSDL /var/lib/layman/emc /var/lib/layman/ROKO__ /var/lib/layman/toolchain /var/lib/layman/kde /var/lib/layman/zugaina /var/lib/layman/rebel /var/lib/layman/local /var/lib/layman"
USE="256-color 3d 3dnow 3dnowext 3ds 64bit 7zip R X Xaw3d a52 aac aalib accessibility acl acpi aes aes-ccm aes-gcm aes-ni aiglx aio airdrop-ng airgraph-ng alert alsa amd64 analitza ap apache apache2 applet asm athena atm atmo attica audio audio-sdl audioeffects audiofile awt bash-completion bazaar bench berkdb bindist bittorrent boundschecks branding bugzilla bullet bundled-libs bzip2 bzr c++0x cairo caps cdda cddb cdr chm city clamav clamd clamdtop clang cli cmake colordiff colorio colors conky consolekit corefonts cpudetection cpufreq cpufreq_bench cpuload cpusets cracklib cramfs crash-reporter crc crypt cscope csharp cups curl cvs cxx cycles d dbus declarative demangle dep development device-mapper dga dhcp digital direct2d directfb directx distribution djvu dmenu dmx dos dot dpi dri drm dts dv dvd dvdr ebook editor eigen emacs emboss encode evdev eve examples exif extensions extra extras facebook fam fbcon fbcon_frontend_linux fbdev fcitx ffmpeg fftw firefox firmware flac fltk font-styles fontconfig fortran fpm fpx freetype freetype2 ftp fuse g3dvl gbm gcj gcode gd gdbm gdm ggi gif gimp git glamor glibc glut gnome gnuplot go gold gpm gps graphviz gstreamer gtk gtkstyle gudev gui guile hal handbook hddtemp help hscolour hwdb ibus icons iconv idn ieee1394 imagemagic imap imlib inotify iostats ipv6 irc jack jadetex java jpeg jpeg2 jpeg2k json kate kdm kdrive kerberos keyring kipi lame lcms ldap libass libcaca libkms libnotify libsamplerate libv4l live llvm llvm-gcc lm_sensors lto lua lua-cairo lua-imlib lyrics lzma lzo mad maps matroska mms mmx mmxext mng modules mono motif mp3 mp4 mpeg mpfi mplayer msn mtp mudflap multilib multimedia multislot musepack music mysql nas ncurses netlink network networkmanager nfs nis nls nptl nsplugin nss ntfs ntp ntpl oauth octave offensive ogg okteta okular openal opencascade opencl openexr opengl opengtl openinventor openmp openrc oss overlays p2p pam pango pdf perl phonon physfs physics plasma plotutils png policykit ppds python q64 qalculate qml qt qt3support qt4 qt5 qthelp quota qwt rar rdesktop readline resolvconf rss rtf ruby rups samba samples schematics sdk sdl sdl-image server session shine skins skype smp sms sndfile sockets solver sound speex spell sqlite sse sse2 sse3 ssl ssse3 startup-notification static static-libs stereo stroke subversion svg tcpd telepathy theora threads thumbnail tiff timidity tk tools truetype tty-helpers twolame udev udisks unicode unit-mm upower urwid usb userlocales utils v4l v4l2 vaapi valgrind vcd vcdx vdpau vhosts videos vim-syntax vlc vnc volpack vorbis vtk waveform wayland weather-metar widgets wimax winbind word-perfect wps wxwidgets x264 xa xattr xcb xcomposite xine xinerama xkb xml xmlreader xmlwriter xmms2 xmp xnest xorg xplanet xprint xrandr xrender xscreensaver xv xvfb xvid xvmc xz zeroconf zip 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 proxy_scgi auth_digest proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http version authn_default" CALLIGRA_FEATURES="author flow karbon kexi krita sheets stage words" 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" GRUB_PLATFORMS="emu efi-32 efi-64 pc multiboot" INPUT_DEVICES="keyboard evdev mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en el" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5_5" PYTHON_SINGLE_TARGET="python2_7 python3_3 python3_4" PYTHON_TARGETS="python2_7 python3_3 python3_4" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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 3.4"
Comment 1 Petros 2014-12-19 20:13:59 UTC
Created attachment 392042 [details]
Comment 2 Petros 2014-12-22 18:36:52 UTC
The problem is eliminated when linked with ld.bfd. bug?

Gold linker seems to have serious problems when trying to statically link stuff. Of course you may already be aware of the situation. :)