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

Bug 914452

Summary: sys-devel/clang-17.0.1:17/17 failed to emerge: x86_64-pc-linux-gnu-ld: error: undefined symbol
Product: Gentoo Linux Reporter: dysthesis <bgo.pwk8n>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: UNCONFIRMED ---    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info '=sys-devel/clang-17.0.1::gentoo'
emerge -pqv '=sys-devel/clang-17.0.1::gentoo'

Description dysthesis 2023-09-20 05:42:27 UTC
Created attachment 870987 [details]
build.log

While updating the world set using emerge -uDNU @world, the compilation of sys-devel/clang-17.0.1 failed. The error log indicates multiple undefined symbols during the linking stage, such as llvm::Twine::str[abi:cxx11]() const, llvm::StringRef::upper[abi:cxx11]() const, and others.

Additional Context:
I am using an Clang profile.
Comment 1 dysthesis 2023-09-20 05:43:07 UTC
Created attachment 870988 [details]
emerge --info '=sys-devel/clang-17.0.1::gentoo'
Comment 2 dysthesis 2023-09-20 05:43:26 UTC
Created attachment 870989 [details]
emerge -pqv '=sys-devel/clang-17.0.1::gentoo'
Comment 3 Frank Sager 2023-10-14 17:01:03 UTC
I was encountering these same errors while building clang-17.0.2.

I've tried all machinations of changing CFLAGS and rebuilding dependencies, but I finally got it to build by running "emerge -ave --keep-going system". 

I'm not sure what dependency is the culprit, but it is not:
 sys-devel/llvm-common-17.0.2 
 sys-devel/llvm-17.0.2-r1 
 sys-devel/llvm-toolchain-symlinks-17 
 sys-devel/lld-17.0.2 
 sys-devel/lld-toolchain-symlinks-17 
 sys-devel/clang-common-17.0.2 
 sys-devel/clang-17.0.2 
 sys-libs/llvm-libunwind-17.0.2 
 sys-devel/clang-toolchain-symlinks-17 
 sys-libs/libcxxabi-17.0.2 
 sys-libs/compiler-rt-17.0.2 
 sys-libs/compiler-rt-sanitizers-17.0.2 
 sys-libs/libcxx-17.0.2 
 sys-devel/clang-runtime-17.0.2