#clang-17: x86_64-pc-linux-gnu-ld: error: undefined symbol

1 messages · Page 1 of 1 (latest)

tardy sundial
#

I can't seem to build Clang-17 using Clang-16, and it kept throwing this error that I can't seem to find anything on. Does anyone know how to fix this? I tried using Clang and GCC with and without LTO, but no luck on any of them.

build.log: http://0x0.st/HVeT.log
emerge --info '=sys-devel/clang-17.0.1::gentoo': http://0x0.st/HVem.1::gento
emerge -pqv '=sys-devel/clang-17.0.1::gentoo': http://0x0.st/HVea.1::gento

brave python
#

try this

#

emerge --ask sys-devel/clang sys-devel/llvm sys-libs/libcxx sys-libs/libcxxabi sys-libs/compiler-rt sys-devel/lld

tardy sundial
#

no luck, same error

tardy sundial
brave python
#

sorry son't know then

tardy sundial
#

that's alright, i'll stick with 16 for now

#

wait actually the error's different this time

#

hold on, let me ssh and wgetpaste

#

tried doing grep error and grep fail, couldn't find anything useful

#

also for added context, i'm using polly with llvm, which i yoinked from xarblu-overlay, but i tried without it and without lto as well, makes no difference

#

also @brave python do you have any idea what could be providing libClangSupport.a and libLLVMSupport.a?

#

i see those two files referred to a lot in errors

strong pumice
#

libLLVMSupport is provided by LLVM, libClangSupport by Clang

#

also

#
std::__1::recursive_mutex::recursive_mutex()
#

most of the errors in your first build log were issues with the C++ STL

#

which is provided by the libcxx and libcxxabi packages

#

those need compiler-rt to be built first tho

#

did you build any part of the toolchain with g++ before?

tardy sundial
#

oh i'm unfortunately in a different city rn so won't be at my computer for a few days, i'll try it again when i get back and i'll let you know how it goes then