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

Bug 637658

Summary: www-client/firefox-57.0 does not compile: undefined symbol: rx_additional_link_map_text
Product: Gentoo Linux Reporter: Marien Zwart <marien.zwart>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: failing build.log (gzipped to be <1000KB)
emerge --info firefox

Description Marien Zwart 2017-11-16 09:35:23 UTC
Created attachment 504486 [details]
failing build.log (gzipped to be <1000KB)

www-client/firefox-57.0 fails to compile, with the following error message:

error^O: linking with `/var/tmp/portage/www-client/firefox-57.0/work/firefox-57.0/build/cargo-linker` failed: exit code: 1^O
  ^O|^O
  ^O= ^Onote^O: "/var/tmp/portage/www-client/firefox-57.0/work/firefox-57.0/build/cargo-linker" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "/var/tmp/portage/www-client/firefox-57.0/w
ork/firefox-57.0/ff/toolkit/library/release/build/libloading-ab0c61b9ba5f4224/build_script_build-ab0c61b9ba5f4224.0.o" "-o" "/var/tmp/portage/www-client/firefox-57.0/work/firefox-57.0/ff/toolkit/library/release/build/libloading-ab0c61b9ba5f
4224/build_script_build-ab0c61b9ba5f4224" "-Wl,--gc-sections" "-pie" "-Wl,-O1" "-nodefaultlibs" "-L" "/var/tmp/portage/www-client/firefox-57.0/work/firefox-57.0/ff/toolkit/library/release/deps" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-
gnu/lib" "-Wl,-Bstatic" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4afea1b35e3086ee.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librand-702696134eb19eb7.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcolle
ctions-43fd961efbc1b168.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd_unicode-e8e70dff3f5bb4b3.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-cb7775bc3aba988d.rlib" "/usr/lib64/rustlib/x86_64-unknown-
linux-gnu/lib/libunwind-66cc4af1cea8fb0f.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-8d30e02f218f5a7e.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-ef11d16aad61dd80.rlib" "/usr/lib64/rustlib/x8
6_64-unknown-linux-gnu/lib/liblibc-9cd71f19dcf4c605.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5c94038e48113487.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-701380125126dfef.rlib" "-Wl,-Bdy
namic" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util"^O
  ^O= ^Onote^O: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: symbol lookup error: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: undefined symbol: rx_additional_link_map_text^O
          collect2: error: ld returned 127 exit status^O
          ^O

error^O: aborting due to previous error(s)^O

error: Could not compile `libloading`.

This is suspiciously similar to bug 600390 (in rust): if something in the build system runs ld with LD_LIBRARY_PATH=/usr/lib64 (or /usr/lib), it will fail because it picks up the wrong libbdf. I haven't tracked down what might be doing that yet.

If I temporarily unmerge binutils-libs-2.29.1-r1 (and move /usr/lib/libbfd-2.29.1.so, ignoring portage's preserved-libs protection, so it's not a particularly sane/safe workaround) the problem goes away.

This is with dev-lang/rust-1.19.0 installed. It's possible the problem does not occur if dev-lang/rust-bin is used instead.
Comment 1 Marien Zwart 2017-11-16 09:36:00 UTC
Created attachment 504488 [details]
emerge --info firefox
Comment 2 Jory A. Pratt gentoo-dev 2017-11-16 13:59:08 UTC

*** This bug has been marked as a duplicate of bug 637604 ***