Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791430 - www-client/firefox-88.0.1 - 114:23.75 ld.lld: error: undefined symbol: _Unwind_Resume
Summary: www-client/firefox-88.0.1 - 114:23.75 ld.lld: error: undefined symbol: _Unwin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 792483 (view as bug list)
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2021-05-22 07:36 UTC by Toralf Förster
Modified: 2023-07-19 06:11 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.96 KB, text/plain)
2021-05-22 07:36 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,26.27 KB, text/plain)
2021-05-22 07:36 UTC, Toralf Förster
Details
environment (environment,202.46 KB, text/plain)
2021-05-22 07:36 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,15.84 KB, application/x-bzip)
2021-05-22 07:36 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,18.67 KB, application/x-bzip)
2021-05-22 07:36 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,416.35 KB, application/x-bzip)
2021-05-22 07:36 UTC, Toralf Förster
Details
www-client:firefox-88.0.1:20210522-022424.log.bz2 (www-client:firefox-88.0.1:20210522-022424.log.bz2,366.74 KB, application/x-bzip)
2021-05-22 07:36 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
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 (RETIRED) gentoo-dev 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 ?
Comment 10 orbea 2022-09-24 14:09:52 UTC
*** Bug 792483 has been marked as a duplicate of this bug. ***
Comment 11 orbea 2022-09-24 14:12:45 UTC
The 'Preparing the environment' section does avoid this issue, but I never spent the time to debug it farther yet.

https://wiki.gentoo.org/wiki/Clang/Bootstrapping
Comment 12 Joonas Niilola gentoo-dev 2023-07-19 06:11:10 UTC
Hopefully it works now.