Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600390 - dev-lang/rust does not build with sys-devel/binutils[multitarget]: undefined symbol: rx_additional_link_map_text
Summary: dev-lang/rust does not build with sys-devel/binutils[multitarget]: undefined ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-21 10:37 UTC by Marien Zwart
Modified: 2017-10-12 08:47 UTC (History)
6 users (show)

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


Attachments
dev-lang/rust-1.13.0 build log (build.log,159.06 KB, text/plain)
2016-11-21 10:37 UTC, Marien Zwart
Details
rust-LD_LIBRARY_PATH-no-usr-lib.patch (rust-LD_LIBRARY_PATH-no-usr-lib.patch,390 bytes, patch)
2017-01-13 10:45 UTC, Joakim Gebart Nohlgård
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marien Zwart 2016-11-21 10:37:24 UTC
Created attachment 453972 [details]
dev-lang/rust-1.13.0 build log

dev-lang/rust-1.13.0 and dev-lang/rust-1.12.1 (didn't test other versions) fail to build with sys-devel/binutils-2.27. I'm not sure if this is a binutils problem, a rust build system problem, or a bit of both.

Full build log attached. Summarizing the interesting bit, it's failing when it invokes rustc (which seems to invoke the compiler/linker) with LD_LIBRARY_PATH set, and the linker fails to start with a missing symbol:

... LD_LIBRARY_PATH=/var/tmp/portage/dev-lang/rust-1.13.0/work/rustc-1.13.0/x86_64-unknown-linux-gnu/stage0/lib:/usr/lib:$LD_LIBRARY_PATH   x86_64-unknown-linux-gnu/stage0/bin/rustc ...

error: linking with `cc` failed: exit code: 1
...
  = note: /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: symbol lookup error: /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: undefined symbol: rx_additional_link_map_text
collect2: error: ld returned 127 exit status

I get the same error message running ld directly with LD_LIBRARY_PATH=/usr/lib:

% LD_LIBRARY_PATH=/usr/lib ld --help
ld: symbol lookup error: ld: undefined symbol: rx_additional_link_map_text

That's because we pick up a different libbfd:

% LD_LIBRARY_PATH=/usr/lib ldd $(which ld)
        linux-vdso.so.1 (0x00007ffc811d6000)
        libbfd-2.27.so => /usr/lib/libbfd-2.27.so (0x00007faaa8513000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003c61800000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003c61000000)
        libz.so.1 => /lib64/libz.so.1 (0x0000003c61c00000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003c60c00000)

% ldd $(which ld)
        linux-vdso.so.1 (0x00007ffdff1f5000)
        libbfd-2.27.so => /usr/lib64/binutils/x86_64-pc-linux-gnu/2.27/libbfd-2.27.so (0x00007fae14ea8000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003c61800000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003c61000000)
        libz.so.1 => /lib64/libz.so.1 (0x0000003c61c00000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003c60c00000)

One is from binutils itself, the other from sys-libs/binutils-libs (same version number):

% qfile -v /usr/lib/libbfd-2.27.so
sys-libs/binutils-libs-2.27 (/usr/lib64/libbfd-2.27.so)

% qfile -v /usr/lib64/binutils/x86_64-pc-linux-gnu/2.27/libbfd-2.27.so
sys-devel/binutils-2.27 (/usr/lib64/binutils/x86_64-pc-linux-gnu/2.27/libbfd-2.27.so)

and "nm -D" confirms the binutils one defines rx_additional_link_map_text while the binutils-libs one does not.

Putting /usr/lib in LD_LIBRARY_PATH seems odd. If rust's build system stopped doing that, that would probably fix the problem.

It is also possible that the other libbfd is supposed to define the problematic symbol. I don't currently understand what differences (if any) should exist between those two libbfds.

Mandatory information below or attached. Let me know if you need anything else.

[ebuild     U ] dev-lang/rust-1.13.0 [1.12.1] USE="clang doc system-llvm -debug -libcxx"

Portage 2.3.2 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.4.0, glibc-2.23-r3, 4.8.9-gentoo-m20 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.8.9-gentoo-m20-x86_64-Intel-R-_Core-TM-_i7-4771_CPU_@_3.50GHz-with-gentoo-2.3
KiB Mem:    16376724 total,   9749152 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Mon, 21 Nov 2016 08:45:01 +0000
sh bash 4.4_p5
ld GNU ld (Gentoo 2.27 p1.0) 2.27
ccache version 3.3.3 [disabled]
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.4.5::gentoo, 3.5.2::gentoo
dev-util/ccache:          3.3.3::gentoo
dev-util/cmake:           3.7.0::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            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.gentoo.org/gentoo-portage
    priority: -1000

marienz
    location: /usr/local/portage/private
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE fping freedist free-noncomm google-chrome AdobeFlash-11.x Google-TOS D1X CC-Sampling-Plus-1.0 unRAR MPEG-4 gSOAP repoze MSttfEULA AMD"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-ggdb -O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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="-ggdb -O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/var/tmp/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="X a52 aac acl acpi adns alsa amd64 avahi bluetooth branding btrfs bzip2 cairo canberra caps cdda cdio cdr clang cli clutter colord corefonts crypt cups cxx dbus device-mapper distinct-l doc dos dot dri dri3 drm dts dvd dvdr dvi eds efi egl emacs emboss encode equalizer evo exif expat ffmpeg firefox flac fontconfig fortran fuse g3dvl gbm gegl gflags ghcbootstrap gif git glamor gles gles2 gmp gnome gnome-keyring gnome-online-accounts gnuefi go google gpg gstreamer gtk gtk3 gtkstyle http iconv icu idn imap inotify introspection ipv6 irc jpeg lame latex lcms libass libcaca libffi libinput libkms libnotify libsecret libvisual llvm llvm-shared-libs lua lzma mad maildir minizip mmx mmxext mng modules mp3 mp4 mpeg mtp multilib multimedia nautilus ncurses nfsidmap nls nptl numpy objc ogg opengl openmp opus pam pango pch pdf playlist png policykit postscript ppds prelink preview-latex pulseaudio python python3 qml qt5 readline realtime s3tc sandbox schroedinger seccomp semantic-desktop session sip smtp speex spell spice sqlite sse sse2 ssl startup-notification svc svg symlink system-harfbuzz system-icu system-jflex system-jpeg system-jsoncpp systemd sysv-utils theora tiff tokyocabinet toolkit-scroll-bars tools tracker truetype udev udisks udisks2 unicode unwind upower urwid usb usbredir vaapi vala valgrind vorbis vpx wayland webkit webp widevine widgets wxwidgets x264 xattr xcb xcomposite xetex xft xinerama xml xmp xorg xv xvfb xvmc zeroconf zlib zsh-completion" 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 avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" 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="libinput" KERNEL="linux" L10N="en en-GB en-US nl fy" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US nl fy fy_NL" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5 pypy" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby21" SANE_BACKENDS="u12" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Joakim Gebart Nohlgård 2017-01-13 10:45:33 UTC
Created attachment 459860 [details, diff]
rust-LD_LIBRARY_PATH-no-usr-lib.patch

This patch removes the /usr/lib component from the LD_LIBRARY_PATH command line. The build succeeds with binutils-2.27 on ~amd64 for me now.
Comment 2 Nils Holland 2017-02-12 15:19:38 UTC
Just for reference, I can confirm that this build failure still applies with dev-lang/rust-1.15.1 and sys-devel/binutils-2.27, and that the patch provided by Joakim successfully fixes it. Tested, in my case, on ~x86.
Comment 3 Yury Gavrilovich 2017-02-28 21:08:01 UTC
Patch works for me as well (rust-1.15.1, binutils-2.25.1-r1, ~amd64)
Comment 4 Patrick McLean gentoo-dev 2017-03-01 06:45:46 UTC
Please try rust-1.15.1 it's working with binutils-2.27 for me
Comment 5 Yury Gavrilovich 2017-03-01 20:43:28 UTC
@Patrick McLean, you're right. Works for me with binutils-2.27, but fails to compile with binutils-2.25.1-r1 with error:
  = note: /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: symbol lookup error: /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: undefined symbol: elf32xtensa_size_opt
collect2: error: ld returned 127 exit status


After successful emerging rust-1.15.1:
[I] dev-lang/rust
     Installed versions:  1.15.1(stable)(11:19:34 PM 03/01/2017)(system-llvm -clang -debug -doc -libcxx)

[I] sys-devel/binutils
     Installed versions:  2.25.1-r1(2.25.1)(12:14:05 PM 06/25/2016)(cxx multitarget nls zlib -static-libs -test -vanilla) 2.27(2.27)(10:22:58 PM 03/01/2017)(cxx multitarget nls -static-libs -test -vanilla)

[I] sys-devel/llvm
     Installed versions:  3.8.1-r2(08:36:45 PM 12/10/2016)(libffi multitarget ncurses python sanitize static-analyzer xml -clang -debug -default-compiler-rt -default-libcxx -doc -gold -libedit -lldb -ocaml -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" ELIBC="-musl" KERNEL="-Darwin -FreeBSD" PYTHON_TARGETS="python2_7" VIDEO_CARDS="radeon")


yury@yuryPC ~ $ eselect binutils list
 [1] x86_64-pc-linux-gnu-2.25.1
 [2] x86_64-pc-linux-gnu-2.27 *

yury@yuryPC ~ $ emerge --info rust
Portage 2.3.3 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r3, 4.5.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.5.2-gentoo-x86_64-AMD_Phenom-tm-_II_X4_925_Processor-with-gentoo-2.3
KiB Mem:     8176160 total,     65000 free
KiB Swap:    2251740 total,   2251408 free
Timestamp of repository gentoo: Sun, 26 Feb 2017 09:15:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.27::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync2.ru.gentoo.org/gentoo-portage
    priority: -1000

MyDevOverlay
    location: /usr/local/portage_dev_ebuilds
    masters: gentoo

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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"
CXXFLAGS="-O2 -march=amdfam10 -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="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl http://gentoo.mirror.pw.edu.pl/ http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apache apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr chm cli color consolekit cracklib crypt cups cxx dbus djvu dri dts dvd dvdr emacs emboss encode exif faac fam ffmpeg firefox flac fortran gdbm gif glamor gpm gtk iconv icq ipv6 irc jabber jpeg jpeg2k lcms ldap libnotify lzma mad mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib mysql ncurses nls nptl ntfs ogg opengl openmp pam pango pcre pdf pdo php png policykit popcnt ppds pulseaudio python qt3support readline sdl seccomp session spell sse sse2 sse3 sse4a ssl startup-notification svg tcpd tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb 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_4" QEMU_SOFTMMU_TARGETS="x86_64 arm aarch64 alpha cris m68k mips sparc" QEMU_USER_TARGETS="x86_64 arm armeb aarch64 alpha cris m68k mips sparc" RUBY_TARGETS="ruby21" 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.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-lang/rust-1.15.1::gentoo was built with the following:
USE="system-llvm -clang -debug -doc -libcxx" ABI_X86="64"
Comment 6 SpanKY gentoo-dev 2017-03-12 21:56:05 UTC
(In reply to Joakim Gebart Nohlgård from comment #1)

i haven't looked at this patch specifically, but most likely this is the way to go.  build systems should not be setting LD_LIBRARY_PATH to host system paths.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2017-10-11 20:04:20 UTC
Is this bug still relevant?
Comment 8 Nils Holland 2017-10-12 07:47:33 UTC
(In reply to Andreas K. Hüttel from comment #7)
> Is this bug still relevant?

I don't think so. Speaking only for myself, I can say that I initially encountered the problem when I intentionally installed rust quite a few months back to try out something. When doing so, I had issues and wrote comment #2 here in this issue. Subsequently, I unmerged rust again, as I had no use for it beyond that single test.

However, just a short time ago, rust was installed on my system again, this time being pulled in automatically as a dependency of www-client/firefox. When that happened, it built and installed just fine, without any manual patching or something else on my side involved.

Therefore, I would believe that the problem seems to be solved with the current incarnation of rust and / or binutils available in the portage tree.
Comment 9 Marien Zwart 2017-10-12 08:47:00 UTC
Seems to be fixed.

I just ran "ebuild /usr/portage/dev-lang/rust/rust-1.19.0.ebuild install", and it built fine (doesn't install, unrelated problem).

And I've confirmed "LD_LIBRARY_PATH=/usr/lib ld --help" still fails, so if rust's build system still did that it would've failed (the bug isn't being masked by my current binutils-libs and binutils being compatible with each other).