Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914452 - sys-devel/clang-17.0.1:17/17 failed to emerge: x86_64-pc-linux-gnu-ld: error: undefined symbol
Summary: sys-devel/clang-17.0.1:17/17 failed to emerge: x86_64-pc-linux-gnu-ld: error:...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-20 05:42 UTC by dysthesis
Modified: 2023-10-14 17:01 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,125.07 KB, text/plain)
2023-09-20 05:42 UTC, dysthesis
Details
emerge --info '=sys-devel/clang-17.0.1::gentoo' (clang-info,18.21 KB, text/plain)
2023-09-20 05:43 UTC, dysthesis
Details
emerge -pqv '=sys-devel/clang-17.0.1::gentoo' (clang-pqv,1.20 KB, text/plain)
2023-09-20 05:43 UTC, dysthesis
Details

Note You need to log in before you can comment on or make changes to this bug.
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