When trying to compile systemd-214 with gcc-4.8.3 (was a emerge -avtuD world), systemd fails to build, with this linker error: link:virt.c:function detect_container: error: TLS relocation against invalid instruction When switching gcc to 4.7.3, this problem is gone. From my research, it's likely a gcc problem, bot an issue with systemd. I use: luzifer tom # libtool --version libtool (GNU libtool) 2.4.2 Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. luzifer tom # binutils-config -l [1] avr-2.24 * [2] x86_64-pc-linux-gnu-2.24 * luzifer tom # gcc-config -l [1] avr-4.8.3 * [2] x86_64-pc-linux-gnu-4.7.3 [3] x86_64-pc-linux-gnu-4.8.3 * luzifer tom #
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.
Portage 2.2.10 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.3, glibc-2.19-r1, 3.15.0-gentoo-r1 x86_64) ================================================================= System uname: Linux-3.15.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.2 KiB Mem: 16057732 total, 14871924 free KiB Swap: 33554428 total, 33554428 free Timestamp of tree: Tue, 17 Jun 2014 21:15:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.2_p47 dev-lang/python: 2.7.6-r1, 3.3.5, 3.4.0 dev-util/cmake: 2.8.12.2-r1 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.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4, 1.14.1 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.7.3-r1, 4.8.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.15 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -mfpmath=sse -mtls-dialect=gnu2 -finline-functions-called-once " 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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -mfpmath=sse -mtls-dialect=gnu2 -finline-functions-called-once " 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" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://de-mirror.org/gentoo/" LANG="de_DE.utf8" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 archive bash-completion berkdb binfilter bluetooth bluray branding bzip2 cairo cdda cddb cdr cli colord cracklib crypt cups cxx dbus dri dts dvb dvd dvdr dvi eds emboss encode evo exif fam ffmpeg fftw firefox flac fortran fuse g3dvl gdbm gif gimp glitz gnome gnome-keyring gnome-online-accounts gnomecd gnutls gpm graphite gsm gstreamer gtk gtk2 gtk3 gtkstyle iconv idea introspection ipv6 irda jingle jpeg jpeg2k jrtplib laptop lcms ldap libnotify libsecret lirc lzma mad man mmx mng modules mp3 mp4 mpeg multilib musepack nautilus ncurses nls nptl nptl-only nsplugin ntptl ogg opengl openmp pam pango pcmcia pcre pda pdf png policykit ppds pulseaudio qt3support readline sdl sensord session smp socialweb sound speex spell sqlite sse sse2 sse3 sse4_1 ssl startup-notification svg systemd tcpd templates theora tiff truetype udev udisks unicode upower usb v4l v4l2 vcd vim-syntax vorbis wmf wxwidgets x264 xcb xcomposite xinerama xml xpm xprint xulrunner xv xvid xvmc yahoo 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" DVB_CARDS="usb-vp7045" 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 synaptics keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="userspace devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 379280 [details] build.log.xz
Please retry with 216
I tried 216-r1 and gcc-4.8.3 p1 Same sh*t: libtool: link: ln .libs/libsystemd-networkd-core.lax/libsystemd-network.a/libsystemd_internal_la-sd-utf8.o .libs/libsystemd-networkd-core.lax/lt34-libsystemd_internal_la-sd-utf8.o || cp .libs/libsystemd-networkd-core.lax/libsystemd-network.a/libsystemd_internal_la-sd-utf8.o .libs/libsystemd-networkd-core.lax/lt34-libsystemd_internal_la-sd-utf8.o ./.libs/libsystemd-journal-core.a(libsystemd_shared_la-virt.o):virt.c:function detect_container: error: TLS relocation against invalid instruction collect2: error: ld returned 1 exit status Makefile:10711: recipe for target 'systemd-cat' failed I can emerge 216-r1 with gcc-4.7.3 like I could for 214. Maybe this bug should be changed to a GCC bug... Portage 2.2.13 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.3, glibc-2.19-r1, 3.16.3-gentoo x86_64) ================================================================= System uname: Linux-3.16.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.2 KiB Mem: 16057624 total, 14366328 free KiB Swap: 33554428 total, 33554428 free Timestamp of tree: Sun, 12 Oct 2014 21:15:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.2_p47 dev-lang/perl: 5.18.2-r1 dev-lang/python: 2.7.8, 3.3.5-r1, 3.4.1 dev-util/cmake: 3.0.2 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.1 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4, 1.14.1 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.7.3-r1, 4.8.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.16 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -mfpmath=sse -mtls-dialect=gnu2 -finline-functions-called-once " 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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer -mfpmath=sse -mtls-dialect=gnu2 -finline-functions-called-once " 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" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://de-mirror.org/gentoo/" LANG="de_DE.UTF-8" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 archive bash-completion berkdb binfilter bluetooth bluray branding bzip2 cairo cdda cddb cdr cli colord cracklib crypt cups cxx dbus dri dts dvb dvd dvdr dvi eds emboss encode evo exif fam ffmpeg fftw firefox flac fortran fuse g3dvl gdbm gif gimp glamor glitz gnome gnome-keyring gnome-online-accounts gnomecd gnutls gpm graphite gsm gstreamer gtk gtk2 gtk3 gtkstyle iconv idea introspection ipv6 irda jingle jpeg jpeg2k jrtplib laptop lcms ldap libnotify libsecret lirc lzma mad man mmx mng modules mp3 mp4 mpeg multilib musepack nautilus ncurses nls nptl nptl-only nsplugin ntptl ogg opengl openmp pam pango pcmcia pcre pda pdf png policykit ppds pulseaudio qt3support readline sdl sensord session smp socialweb sound speex spell sqlite sse sse2 sse3 sse4_1 ssl startup-notification svg systemd tcpd templates theora tiff truetype udev udisks unicode upower usb v4l v4l2 vcd vim-syntax vorbis wmf wxwidgets x264 xcb xcomposite xinerama xml xpm xprint xulrunner xv xvid xvmc yahoo 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" DVB_CARDS="usb-vp7045" 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 synaptics keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="userspace devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 386626 [details] systemd-216-r1 build.log.xz
I suspect you're not the only person building systemd with gcc-4.8.3, so it sounds like it is something more specific to your system. CC-ing toolchain@ in case they could help us understand the error.
Is this still the case with 225?
i doubt any specific systemd version matters try dropping the use of -mtls-dialect=gnu2, or upgrading to gcc-4.8.5, or upgrading binutils to 2.25.1