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

Bug 793200

Summary: sys-devel/binutils-2.36.1-r1 ld.lld: error: undefined symbol: _Unwind_Resume in clang
Product: Gentoo Linux Reporter: vicalcas
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: ionen, vicalcas
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
config log
emerge info
emerge pqv

Description vicalcas 2021-05-31 12:21:20 UTC
Created attachment 712755 [details]
build log

The compilation fails with the clang toolchain, but i have the suspicion is the fault of lld,to be precise of the -fuse-ld=lld LDFLAG. Does binutils require another linker?
Comment 1 vicalcas 2021-05-31 12:21:37 UTC
Created attachment 712758 [details]
config log
Comment 2 vicalcas 2021-05-31 12:21:47 UTC
Created attachment 712761 [details]
emerge info
Comment 3 vicalcas 2021-05-31 12:21:57 UTC
Created attachment 712764 [details]
emerge pqv
Comment 4 Mike Gilbert gentoo-dev 2021-06-02 16:54:26 UTC
You have some interesting CFLAGS. Please try with a simple set of flags. If that resolves the issue, please try to figure out which flag(s) are triggering the failure.
Comment 5 Ionen Wolkens gentoo-dev 2021-06-06 12:16:17 UTC
From the sound of it in other bugs, you're also using default-* on clang which tend to be further unexpected by packages.

Support for using clang globally (i.e. every packages) is already fairly limited, and along with these *FLAGS is likely to cause generalized failures. So I wouldn't call this an issue with these packages at the moment.

Please use more common toolchain settings.
Comment 6 Ionen Wolkens gentoo-dev 2021-06-06 12:17:17 UTC
*** Bug 793206 has been marked as a duplicate of this bug. ***
Comment 7 Ionen Wolkens gentoo-dev 2021-06-06 12:17:34 UTC
*** Bug 793215 has been marked as a duplicate of this bug. ***