Summary: | dev-lang/rust does not build with sys-devel/binutils[multitarget]: undefined symbol: rx_additional_link_map_text | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marien Zwart <marien.zwart> |
Component: | Current packages | Assignee: | Gentoo Rust Project <rust> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chutzpah, joakim.nohlgard, nholland, slyfox, tsmksubc, vapier |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
dev-lang/rust-1.13.0 build log
rust-LD_LIBRARY_PATH-no-usr-lib.patch |
Description
Marien Zwart
2016-11-21 10:37:24 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.
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. Patch works for me as well (rust-1.15.1, binutils-2.25.1-r1, ~amd64) Please try rust-1.15.1 it's working with binutils-2.27 for me @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" (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. Is this bug still relevant? (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. 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). |