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

Bug 791430

Summary: www-client/firefox-88.0.1 - 114:23.75 ld.lld: error: undefined symbol: _Unwind_Resume
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: UNCONFIRMED ---    
Severity: normal CC: herrtimson
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2
www-client:firefox-88.0.1:20210522-022424.log.bz2

Description Toralf Förster gentoo-dev 2021-05-22 07:36:09 UTC
114:23.75 ld.lld: error: undefined symbol: _Unwind_Resume
114:23.75 >>> referenced by Unified_cpp_src_lib_json0.cpp
114:23.75 >>>               /var/tmp/portage/www-client/firefox-88.0.1/work/firefox_build/toolkit/library/build/../../components/jsoncpp/src/lib_json/Unified_cpp_src_lib_json0.o:(Json::Value::setComment(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, Json::CommentPlacement))
114:23.75 >>> referenced by Unified_cpp_src_lib_json0.cpp
114:23.75 >>>               /var/tmp/portage/www-client/firefox-88.0.1/work/firefox_build/toolkit/library/build/../../components/jsoncpp/src/lib_json/Unified_cpp_src_lib_json0.o:(Json::Value::setComment(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, Json::CommentPlacement))

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j2-20210521-102013

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.10
Available Rust versions:
  [1]   rust-bin-1.52.1 *

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri May 21 21:22:22 UTC 2021

emerge -qpvO www-client/firefox
[ebuild  N    ] www-client/firefox-88.0.1  USE="clang dbus gmp-autoupdate openh264 pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp wayland wifi -debug -eme-free -geckodriver -hardened -hwaccel -jack -lto -pgo -screencast (-selinux) -sndio" L10N="af gl it nn sk -ach -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"
Comment 1 Toralf Förster gentoo-dev 2021-05-22 07:36:11 UTC
Created attachment 710199 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-22 07:36:12 UTC
Created attachment 710202 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-22 07:36:14 UTC
Created attachment 710205 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-22 07:36:15 UTC
Created attachment 710208 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-22 07:36:16 UTC
Created attachment 710211 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-22 07:36:18 UTC
Created attachment 710214 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-05-22 07:36:20 UTC
Created attachment 710217 [details]
www-client:firefox-88.0.1:20210522-022424.log.bz2
Comment 8 Thomas Deutschmann gentoo-dev Security 2021-05-22 13:46:46 UTC
I believe your LLVM/LLD setup is busted (probably related to USE=libunwind)...
Comment 9 Adel KARA SLIMANE 2021-05-27 18:07:47 UTC
Hello, 

I opened a bug report(#792483) as I did not find this one. If my bug report is a duplicate of this one, it seems that a manual override of LDFLAGS fixes the compilation:

/etc/portage/env/compiler-clang
```
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind"
```

Probably the `-unwindlib=libunwind` part is important and all the rest is already set by the EBUILD itself.

Can you try with this change of LDFLAGS ?