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 packages | Assignee: | 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' |
Created attachment 870988 [details]
emerge --info '=sys-devel/clang-17.0.1::gentoo'
Created attachment 870989 [details]
emerge -pqv '=sys-devel/clang-17.0.1::gentoo'
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 |
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.