ziglang / zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
https://ziglang.org
MIT License
34.85k stars 2.55k forks source link

Errors trying to build with `-Dstatic-llvm` #13138

Closed Vexu closed 2 years ago

Vexu commented 2 years ago

Trying to follow https://github.com/ziglang/zig/wiki/Building-Zig-From-Source#instructions-1 to the best of my understanding with:

../zig-bootstrap/out/host/bin/zig build -Dstatic-llvm  --search-prefix ../zig-bootstrap/out/host --zig-lib-dir lib

Results in a bunch of errors in the form of:

error(compilation): clang failed with stderr: ./zig/src/zig_llvm.cpp:1426:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_hexagon == Triple::hexagon': 
./zig/src/zig_llvm.cpp:1427:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_m68k == Triple::m68k': 
./zig/src/zig_llvm.cpp:1428:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_mips == Triple::mips': 
./zig/src/zig_llvm.cpp:1429:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_mipsel == Triple::mipsel': 
./zig/src/zig_llvm.cpp:1430:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_mips64 == Triple::mips64': 
./zig/src/zig_llvm.cpp:1431:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_mips64el == Triple::mips64el': 
./zig/src/zig_llvm.cpp:1432:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_msp430 == Triple::msp430':
...

Applying #12898 changes those compilation errors into linking errors:

...
ld.lld: error: undefined symbol: llvm::sys::getDefaultTargetTriple()
>>> referenced by zig_clang_driver.cpp:475 (src/zig_clang_driver.cpp:475)
>>>               ./zig/zig-cache/o/bac3b51e9033a9abf8b2e98f63986fc9/zig_clang_driver.o:(ZigClang_main)
>>> referenced by zig_clang_cc1as_main.cpp:227 (src/zig_clang_cc1as_main.cpp:227)
>>>               ./zig/zig-cache/o/3cb3ed9e9bdb8df032c4aa5e0322e7c5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef<char const*>, clang::DiagnosticsEngine&))

ld.lld: error: undefined symbol: clang::driver::Driver::Driver(llvm::StringRef, llvm::StringRef, clang::DiagnosticsEngine&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>)
>>> referenced by zig_clang_driver.cpp:475 (src/zig_clang_driver.cpp:475)
>>>               ./zig/zig-cache/o/bac3b51e9033a9abf8b2e98f63986fc9/zig_clang_driver.o:(ZigClang_main)
...
andrewrk commented 2 years ago

was this perchance fixed by 0b47e69b7c0aedbc142400305cda86ef58b41656?

Vexu commented 2 years ago

Using 0.10.0-dev.4423+5127dae7a the first issue is solved but I still get the linking errors

output ```sh-session $ ./zig build -Dstatic-llvm --search-prefix /home/vexu/Documents/zig/zig-bootstrap/out/host --zig-lib-dir lib -Dskip-install-lib-files ld.lld: error: undefined symbol: llvm::SubtargetFeatures::getString() const >>> referenced by zig_llvm.cpp:101 (src/zig_llvm.cpp:101) >>> /home/vexu/Documents/zig/zig/zig-cache/o/cd23ff687b40eea44fb580837179fea4/zig_llvm.o:(ZigLLVMGetNativeFeatures) ld.lld: error: undefined symbol: llvm::raw_fd_ostream::raw_fd_ostream(llvm::StringRef, std::__1::error_code&, llvm::sys::fs::OpenFlags) >>> referenced by zig_llvm.cpp:240 (src/zig_llvm.cpp:240) >>> /home/vexu/Documents/zig/zig/zig-cache/o/cd23ff687b40eea44fb580837179fea4/zig_llvm.o:(ZigLLVMTargetMachineEmitToFile) >>> referenced by zig_llvm.cpp:248 (src/zig_llvm.cpp:248) >>> /home/vexu/Documents/zig/zig/zig-cache/o/cd23ff687b40eea44fb580837179fea4/zig_llvm.o:(ZigLLVMTargetMachineEmitToFile) >>> referenced by zig_llvm.cpp:256 (src/zig_llvm.cpp:256) >>> /home/vexu/Documents/zig/zig/zig-cache/o/cd23ff687b40eea44fb580837179fea4/zig_llvm.o:(ZigLLVMTargetMachineEmitToFile) >>> referenced 1 more times ld.lld: error: undefined symbol: llvm::WriteBitcodeToFile(llvm::Module const&, llvm::raw_ostream&, bool, llvm::ModuleSummaryIndex const*, bool, std::__1::array*) >>> referenced by zig_llvm.cpp:398 (src/zig_llvm.cpp:398) >>> /home/vexu/Documents/zig/zig/zig-cache/o/cd23ff687b40eea44fb580837179fea4/zig_llvm.o:(ZigLLVMTargetMachineEmitToFile) >>> referenced by zig_llvm.cpp:401 (src/zig_llvm.cpp:401) >>> /home/vexu/Documents/zig/zig/zig-cache/o/cd23ff687b40eea44fb580837179fea4/zig_llvm.o:(ZigLLVMTargetMachineEmitToFile) ld.lld: error: undefined symbol: llvm::Triple::normalize(llvm::StringRef) >>> referenced by zig_llvm.cpp:1121 (src/zig_llvm.cpp:1121) >>> /home/vexu/Documents/zig/zig/zig-cache/o/cd23ff687b40eea44fb580837179fea4/zig_llvm.o:(ZigLLVMGetNativeTarget) >>> referenced by zig_clang_cc1as_main.cpp:218 (src/zig_clang_cc1as_main.cpp:218) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef, clang::DiagnosticsEngine&)) ld.lld: error: undefined symbol: llvm::writeArchive(llvm::StringRef, llvm::ArrayRef, bool, llvm::object::Archive::Kind, bool, bool, std::__1::unique_ptr>) >>> referenced by zig_llvm.cpp:1344 (src/zig_llvm.cpp:1344) >>> /home/vexu/Documents/zig/zig/zig-cache/o/cd23ff687b40eea44fb580837179fea4/zig_llvm.o:(ZigLLVMWriteArchive) >>> referenced by zig_llvm-ar.cpp:1083 (src/zig_llvm-ar.cpp:1083) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(performWriteOperation(ArchiveOperation, llvm::object::Archive*, std::__1::unique_ptr>, std::__1::vector>*)) ld.lld: error: undefined symbol: std::__once_callable >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(std::once_flag::_Prepare_execution::_Prepare_execution>(std::once_flag&, void* (&)(llvm::PassRegistry&), std::reference_wrapper&&)::'lambda'()>(void* (&)(llvm::PassRegistry&))::'lambda'()::_FUN()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::Pass* llvm::callDefaultCtor<(anonymous namespace)::LoopStrengthReduce>()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::initializeLoopStrengthReducePass(llvm::PassRegistry&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced 1128 more times ld.lld: error: undefined symbol: std::__throw_bad_function_call() >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::cl::opt>::handleOccurrence(unsigned int, llvm::StringRef, llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by ScalarEvolution.cpp >>> ScalarEvolution.cpp.o:(llvm::cl::opt>::handleOccurrence(unsigned int, llvm::StringRef, llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by ScalarEvolution.cpp >>> ScalarEvolution.cpp.o:(llvm::ScalarEvolution::isBasicBlockEntryGuardedByCond(llvm::BasicBlock const*, llvm::CmpInst::Predicate, llvm::SCEV const*, llvm::SCEV const*)::'lambda1'(llvm::Value const*, bool)::operator()(llvm::Value const*, bool) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced 635 more times ld.lld: error: undefined symbol: std::__once_call >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::Pass* llvm::callDefaultCtor<(anonymous namespace)::LoopStrengthReduce>()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::initializeLoopStrengthReducePass(llvm::PassRegistry&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::createLoopStrengthReducePass()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced 1118 more times ld.lld: error: undefined symbol: __once_proxy >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::Pass* llvm::callDefaultCtor<(anonymous namespace)::LoopStrengthReduce>()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::initializeLoopStrengthReducePass(llvm::PassRegistry&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::createLoopStrengthReducePass()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced 1119 more times ld.lld: error: undefined symbol: std::__throw_system_error(int) >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::Pass* llvm::callDefaultCtor<(anonymous namespace)::LoopStrengthReduce>()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::initializeLoopStrengthReducePass(llvm::PassRegistry&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(llvm::createLoopStrengthReducePass()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced 1188 more times ld.lld: error: undefined symbol: std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(std::pair>, bool> std::_Rb_tree, std::_Select1st>, std::less, std::allocator>>::_M_emplace_unique>(std::pair&&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(std::pair>, bool> std::_Rb_tree, std::pair, std::_Identity>, std::less>, std::allocator>>::_M_insert_unique const&>(std::pair const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(std::pair>, bool> std::_Rb_tree, llvm::AssertingVH, std::_Identity>, std::less>, std::allocator>>::_M_insert_unique const&>(llvm::AssertingVH const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced 662 more times ld.lld: error: undefined symbol: std::_Rb_tree_decrement(std::_Rb_tree_node_base*) >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(std::pair>, bool> std::_Rb_tree, std::_Select1st>, std::less, std::allocator>>::_M_emplace_unique>(std::pair&&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(std::pair>, bool> std::_Rb_tree, std::pair, std::_Identity>, std::less>, std::allocator>>::_M_insert_unique const&>(std::pair const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:(std::pair>, bool> std::_Rb_tree, llvm::AssertingVH, std::_Identity>, std::less>, std::allocator>>::_M_insert_unique const&>(llvm::AssertingVH const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced 947 more times ld.lld: error: undefined symbol: std::_Rb_tree_increment(std::_Rb_tree_node_base const*) >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:((anonymous namespace)::LSRInstance::GenerateCrossUseConstantOffsets()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by Attributes.cpp >>> Attributes.cpp.o:(llvm::AttributeMask::contains(llvm::Attribute) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by Attributes.cpp >>> Attributes.cpp.o:(llvm::AttributeMask::contains(llvm::Attribute) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced 680 more times ld.lld: error: undefined symbol: std::_Rb_tree_decrement(std::_Rb_tree_node_base const*) >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:((anonymous namespace)::LSRInstance::GenerateCrossUseConstantOffsets()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LoopStrengthReduce.cpp >>> LoopStrengthReduce.cpp.o:((anonymous namespace)::LSRInstance::GenerateCrossUseConstantOffsets()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced by LiveInterval.cpp >>> LiveInterval.cpp.o:(llvm::LiveRange::extendInBlock(llvm::ArrayRef, llvm::SlotIndex, llvm::SlotIndex)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCodeGen.a >>> referenced 17 more times ld.lld: error: undefined symbol: std::__throw_length_error(char const*) >>> referenced by ScalarEvolution.cpp >>> ScalarEvolution.cpp.o:(void std::vector>>>>, std::allocator>>>>>>::_M_realloc_insert>>>>>(__gnu_cxx::__normal_iterator>>>>*, std::vector>>>>, std::allocator>>>>>>>, std::pair>>>>&&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by raw_ostream.cpp >>> raw_ostream.cpp.o:(llvm::raw_string_ostream::write_impl(char const*, unsigned long) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by raw_ostream.cpp >>> raw_ostream.cpp.o:(void std::vector>, std::allocator>>>::_M_realloc_insert>>(__gnu_cxx::__normal_iterator>*, std::vector>, std::allocator>>>>, std::unique_ptr>&&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 3031 more times ld.lld: error: undefined symbol: std::_Rb_tree_increment(std::_Rb_tree_node_base*) >>> referenced by ScalarEvolution.cpp >>> ScalarEvolution.cpp.o:(llvm::ScalarEvolution::getAddExpr(llvm::SmallVectorImpl&, llvm::SCEV::NoWrapFlags, unsigned int) (.part.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by ScalarEvolution.cpp >>> ScalarEvolution.cpp.o:(llvm::ScalarEvolution::getAddExpr(llvm::SmallVectorImpl&, llvm::SCEV::NoWrapFlags, unsigned int) (.part.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by YAMLParser.cpp >>> YAMLParser.cpp.o:(std::_Rb_tree, std::_Select1st>, std::less, std::allocator>>::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator>, llvm::StringRef const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 639 more times ld.lld: error: undefined symbol: std::__throw_bad_array_new_length() >>> referenced by ScalarEvolution.cpp >>> ScalarEvolution.cpp.o:(llvm::ScalarEvolution::print(llvm::raw_ostream&) const (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by Instructions.cpp >>> Instructions.cpp.o:(llvm::CallBase::addOperandBundle(llvm::CallBase*, unsigned int, llvm::OperandBundleDefT, llvm::Instruction*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by Instructions.cpp >>> Instructions.cpp.o:(llvm::CallBase::Create(llvm::CallBase*, llvm::OperandBundleDefT, llvm::Instruction*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced 758 more times ld.lld: error: undefined symbol: std::_V2::generic_category() >>> referenced by raw_ostream.cpp >>> raw_ostream.cpp.o:(llvm::raw_fd_ostream::write_impl(char const*, unsigned long) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by raw_ostream.cpp >>> raw_ostream.cpp.o:(llvm::raw_fd_stream::~raw_fd_stream()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by raw_ostream.cpp >>> raw_ostream.cpp.o:(llvm::raw_fd_ostream::~raw_fd_ostream() (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 593 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::_M_append(char const*, unsigned long) >>> referenced by raw_ostream.cpp >>> raw_ostream.cpp.o:(llvm::raw_string_ostream::write_impl(char const*, unsigned long) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(report_size_overflow(unsigned long, unsigned long) (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Threading.cpp >>> Threading.cpp.o:(ReportErrnumFatal(char const*, int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 3932 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::reserve(unsigned long) >>> referenced by raw_ostream.cpp >>> raw_ostream.cpp.o:(llvm::raw_string_ostream::reserveExtraSpace(unsigned long)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Triple.cpp >>> Triple.cpp.o:(llvm::Triple::normalize[abi:cxx11](llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Error.cpp >>> Error.cpp.o:(llvm::StringError::log(llvm::raw_ostream&) const (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 325 more times ld.lld: error: undefined symbol: std::_V2::system_category() >>> referenced by raw_ostream.cpp >>> raw_ostream.cpp.o:(llvm::raw_fd_ostream::raw_fd_ostream(llvm::StringRef, std::error_code&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by raw_ostream.cpp >>> raw_ostream.cpp.o:(llvm::raw_fd_ostream::raw_fd_ostream(llvm::StringRef, std::error_code&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by raw_ostream.cpp >>> raw_ostream.cpp.o:(llvm::raw_fd_ostream::raw_fd_ostream(llvm::StringRef, std::error_code&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 231 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::_M_construct(unsigned long, char) >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(std::__cxx11::to_string(unsigned long)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(std::__cxx11::to_string(unsigned long)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(std::__cxx11::to_string(unsigned long)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 475 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::insert(unsigned long, char const*) >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(report_at_maximum_capacity(unsigned long)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(report_size_overflow(unsigned long, unsigned long) (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ELFObjectFile.cpp >>> ELFObjectFile.cpp.o:(llvm::Expected>>> llvm::object::ELFFile>::getSectionContentsAsArray>>(llvm::object::Elf_Shdr_Impl> const&) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMObject.a >>> referenced 155 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::basic_string(std::__cxx11::basic_string, std::allocator>&&) >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(report_at_maximum_capacity(unsigned long)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(report_size_overflow(unsigned long, unsigned long) (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(report_size_overflow(unsigned long, unsigned long) (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 1259 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::append(char const*) >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(report_size_overflow(unsigned long, unsigned long) (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(report_size_overflow(unsigned long, unsigned long) (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ModuleSummaryIndex.cpp >>> ModuleSummaryIndex.cpp.o:(llvm::ModuleSummaryIndex::exportToDot(llvm::raw_ostream&, llvm::DenseSet> const&) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced 1858 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::_M_replace(unsigned long, unsigned long, char const*, unsigned long) >>> referenced by SmallVector.cpp >>> SmallVector.cpp.o:(report_size_overflow(unsigned long, unsigned long) (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by CommandLine.cpp >>> CommandLine.cpp.o:((anonymous namespace)::VersionPrinter::print() (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Threading.cpp >>> Threading.cpp.o:(ReportErrnumFatal(char const*, int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 1175 more times ld.lld: error: undefined symbol: std::chrono::_V2::system_clock::now() >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::GetTimeUsage(std::chrono::time_point>>&, std::chrono::duration>&, std::chrono::duration>&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by VirtualFileSystem.cpp >>> VirtualFileSystem.cpp.o:(llvm::vfs::RedirectingFileSystemParser::lookupOrCreateEntry(llvm::vfs::RedirectingFileSystem*, llvm::StringRef, llvm::vfs::RedirectingFileSystem::Entry*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by VirtualFileSystem.cpp >>> VirtualFileSystem.cpp.o:(llvm::vfs::RedirectingFileSystemParser::parseEntry(llvm::yaml::Node*, llvm::vfs::RedirectingFileSystem*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 10 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::_M_create(unsigned long&, unsigned long) >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::GetEnv[abi:cxx11](llvm::StringRef) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::GetEnv[abi:cxx11](llvm::StringRef) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Signals.cpp >>> Signals.cpp.o:(llvm::cl::opt, std::allocator>, true, llvm::cl::parser, std::allocator>>>::handleOccurrence(unsigned int, llvm::StringRef, llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 5985 more times ld.lld: error: undefined symbol: set_curterm >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::FileDescriptorHasColors(int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::FileDescriptorHasColors(int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::StandardErrHasColors()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 1 more times ld.lld: error: undefined symbol: setupterm >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::FileDescriptorHasColors(int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::StandardErrHasColors()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: tigetnum >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::FileDescriptorHasColors(int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::StandardErrHasColors()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: del_curterm >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::FileDescriptorHasColors(int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Process.cpp >>> Process.cpp.o:(llvm::sys::Process::StandardErrHasColors()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::_M_assign(std::__cxx11::basic_string, std::allocator> const&) >>> referenced by Signals.cpp >>> Signals.cpp.o:(llvm::cl::opt, std::allocator>, true, llvm::cl::parser, std::allocator>>>::setDefault()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Signals.cpp >>> Signals.cpp.o:(llvm::cl::opt, std::allocator>, true, llvm::cl::parser, std::allocator>>>::setDefault()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Signals.cpp >>> Signals.cpp.o:((anonymous namespace)::CreateCrashDiagnosticsDir::call()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 964 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::compare(char const*) const >>> referenced by Signals.cpp >>> Signals.cpp.o:(llvm::sys::DontRemoveFileOnSignal(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by CommandLine.cpp >>> CommandLine.cpp.o:((anonymous namespace)::VersionPrinter::print() (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Timer.cpp >>> Timer.cpp.o:(llvm::CreateInfoOutputFile() (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 1172 more times ld.lld: error: undefined symbol: std::__throw_logic_error(char const*) >>> referenced by CommandLine.cpp >>> CommandLine.cpp.o:(llvm::cl::ExpandResponseFiles(llvm::StringSaver&, void (*)(llvm::StringRef, llvm::StringSaver&, llvm::SmallVectorImpl&, bool), llvm::SmallVectorImpl&, bool, bool, bool, llvm::Optional, llvm::vfs::FileSystem&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by VirtualFileSystem.cpp >>> VirtualFileSystem.cpp.o:(std::__cxx11::basic_string, std::allocator>::basic_string(char const*, unsigned long, std::allocator const&) (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by VirtualFileSystem.cpp >>> VirtualFileSystem.cpp.o:((anonymous namespace)::RedirectingFSDirRemapIterImpl::setCurrentEntry()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 210 more times ld.lld: error: undefined symbol: std::thread::hardware_concurrency() >>> referenced by Threading.cpp >>> Threading.cpp.o:(computeHostNumHardwareThreads() (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::find(char const*, unsigned long, unsigned long) const >>> referenced by Host.cpp >>> Host.cpp.o:(updateTripleOSVersion(std::__cxx11::basic_string, std::allocator>)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Host.cpp >>> Host.cpp.o:(updateTripleOSVersion(std::__cxx11::basic_string, std::allocator>)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by InstrProf.cpp >>> InstrProf.cpp.o:(llvm::InstrProfSymtab::create(llvm::Module&, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced 45 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::resize(unsigned long, char) >>> referenced by Host.cpp >>> Host.cpp.o:(updateTripleOSVersion(std::__cxx11::basic_string, std::allocator>)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Host.cpp >>> Host.cpp.o:(updateTripleOSVersion(std::__cxx11::basic_string, std::allocator>)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SourceMgr.cpp >>> SourceMgr.cpp.o:(llvm::SMDiagnostic::print(char const*, llvm::raw_ostream&, bool, bool) const (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 59 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::_M_mutate(unsigned long, unsigned long, char const*, unsigned long) >>> referenced by Host.cpp >>> Host.cpp.o:(updateTripleOSVersion(std::__cxx11::basic_string, std::allocator>)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by YAMLParser.cpp >>> YAMLParser.cpp.o:(llvm::yaml::escape[abi:cxx11](llvm::StringRef, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ConvertUTFWrapper.cpp >>> ConvertUTFWrapper.cpp.o:(llvm::convertUTF16ToUTF8String(llvm::ArrayRef, std::__cxx11::basic_string, std::allocator>&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 230 more times ld.lld: error: undefined symbol: std::_V2::error_category::~error_category() >>> referenced by Error.cpp >>> Error.cpp.o:((anonymous namespace)::ErrorErrorCategory::~ErrorErrorCategory()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Error.cpp >>> Error.cpp.o:((anonymous namespace)::ErrorErrorCategory::~ErrorErrorCategory()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SampleProf.cpp >>> SampleProf.cpp.o:((anonymous namespace)::SampleProfErrorCategoryType::~SampleProfErrorCategoryType()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced 26 more times ld.lld: error: undefined symbol: std::_V2::error_category::_M_message[abi:cxx11](int) const >>> referenced by Error.cpp >>> Error.cpp.o:(vtable for (anonymous namespace)::ErrorErrorCategory) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SampleProf.cpp >>> SampleProf.cpp.o:(vtable for (anonymous namespace)::SampleProfErrorCategoryType) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced by InstrProf.cpp >>> InstrProf.cpp.o:(vtable for (anonymous namespace)::InstrProfErrorCategoryType) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced 10 more times ld.lld: error: undefined symbol: std::_V2::error_category::default_error_condition(int) const >>> referenced by Error.cpp >>> Error.cpp.o:(vtable for (anonymous namespace)::ErrorErrorCategory) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SampleProf.cpp >>> SampleProf.cpp.o:(vtable for (anonymous namespace)::SampleProfErrorCategoryType) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced by InstrProf.cpp >>> InstrProf.cpp.o:(vtable for (anonymous namespace)::InstrProfErrorCategoryType) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced 10 more times ld.lld: error: undefined symbol: std::_V2::error_category::equivalent(int, std::error_condition const&) const >>> referenced by Error.cpp >>> Error.cpp.o:(vtable for (anonymous namespace)::ErrorErrorCategory) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SampleProf.cpp >>> SampleProf.cpp.o:(vtable for (anonymous namespace)::SampleProfErrorCategoryType) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced by InstrProf.cpp >>> InstrProf.cpp.o:(vtable for (anonymous namespace)::InstrProfErrorCategoryType) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced 10 more times ld.lld: error: undefined symbol: std::_V2::error_category::equivalent(std::error_code const&, int) const >>> referenced by Error.cpp >>> Error.cpp.o:(vtable for (anonymous namespace)::ErrorErrorCategory) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by SampleProf.cpp >>> SampleProf.cpp.o:(vtable for (anonymous namespace)::SampleProfErrorCategoryType) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced by InstrProf.cpp >>> InstrProf.cpp.o:(vtable for (anonymous namespace)::InstrProfErrorCategoryType) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced 10 more times ld.lld: error: undefined symbol: std::_Sp_make_shared_tag::_S_eq(std::type_info const&) >>> referenced by Path.cpp >>> Path.cpp.o:(std::_Sp_counted_ptr_inplace, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by VirtualFileSystem.cpp >>> VirtualFileSystem.cpp.o:(std::_Sp_counted_ptr_inplace<(anonymous namespace)::RealFSDirIter, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by VirtualFileSystem.cpp >>> VirtualFileSystem.cpp.o:(std::_Sp_counted_ptr_inplace<(anonymous namespace)::CombiningDirIterImpl, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 44 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::_M_replace_aux(unsigned long, unsigned long, unsigned long, char) >>> referenced by GraphWriter.cpp >>> GraphWriter.cpp.o:(llvm::DOT::EscapeString(std::__cxx11::basic_string, std::allocator> const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by GraphWriter.cpp >>> GraphWriter.cpp.o:(llvm::DOT::EscapeString(std::__cxx11::basic_string, std::allocator> const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by GraphWriter.cpp >>> GraphWriter.cpp.o:(llvm::DOT::EscapeString(std::__cxx11::basic_string, std::allocator> const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 71 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::_M_erase(unsigned long, unsigned long) >>> referenced by GraphWriter.cpp >>> GraphWriter.cpp.o:(llvm::DOT::EscapeString(std::__cxx11::basic_string, std::allocator> const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ConvertUTFWrapper.cpp >>> ConvertUTFWrapper.cpp.o:(llvm::convertUTF16ToUTF8String(llvm::ArrayRef, std::__cxx11::basic_string, std::allocator>&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ConvertUTFWrapper.cpp >>> ConvertUTFWrapper.cpp.o:(llvm::convertUTF32ToUTF8String(llvm::ArrayRef, std::__cxx11::basic_string, std::allocator>&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 31 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::find_last_not_of(char, unsigned long) const >>> referenced by SourceMgr.cpp >>> SourceMgr.cpp.o:(llvm::SMDiagnostic::print(char const*, llvm::raw_ostream&, bool, bool) const (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ScaledNumber.cpp >>> ScaledNumber.cpp.o:(stripTrailingZeros(std::__cxx11::basic_string, std::allocator> const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: std::__throw_out_of_range_fmt(char const*, ...) >>> referenced by SourceMgr.cpp >>> SourceMgr.cpp.o:(llvm::SMDiagnostic::print(char const*, llvm::raw_ostream&, bool, bool) const (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by MemorySSA.cpp >>> MemorySSA.cpp.o:(void llvm::function_ref, std::allocator>&, unsigned int&, unsigned int)>::callback_fn::getNodeLabel(llvm::BasicBlock const*, DOTFuncMSSAInfo*)::'lambda0'(std::__cxx11::basic_string, std::allocator>&, unsigned int&, unsigned int)>(long, std::__cxx11::basic_string, std::allocator>&, unsigned int&, unsigned int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by MemorySSA.cpp >>> MemorySSA.cpp.o:(llvm::DOTGraphTraits::getCompleteNodeLabel(llvm::BasicBlock const*, llvm::DOTFuncInfo*, llvm::function_ref, llvm::function_ref, std::allocator>&, unsigned int&, unsigned int)>) (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced 59 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::push_back(char) >>> referenced by Attributes.cpp >>> Attributes.cpp.o:(llvm::Attribute::getAsString[abi:cxx11](bool) const (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by JSON.cpp >>> JSON.cpp.o:(llvm::json::(anonymous namespace)::Parser::parseString(std::__cxx11::basic_string, std::allocator>&) (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by JSON.cpp >>> JSON.cpp.o:(llvm::json::(anonymous namespace)::Parser::parseString(std::__cxx11::basic_string, std::allocator>&) (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 69 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::find(char, unsigned long) const >>> referenced by AsmWriter.cpp >>> AsmWriter.cpp.o:(llvm::Module::print(llvm::raw_ostream&, llvm::AssemblyAnnotationWriter*, bool, bool) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by MemorySSA.cpp >>> MemorySSA.cpp.o:(llvm::DOTGraphTraits::getCompleteNodeLabel(llvm::BasicBlock const*, llvm::DOTFuncInfo*, llvm::function_ref, llvm::function_ref, std::allocator>&, unsigned int&, unsigned int)>) (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by MemorySSA.cpp >>> MemorySSA.cpp.o:(llvm::GraphWriter::writeNode(llvm::BasicBlock const*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced 24 more times ld.lld: error: undefined symbol: std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned long) const >>> referenced by PrintPasses.cpp >>> PrintPasses.cpp.o:(std::_Hashtable, std::allocator>, std::__cxx11::basic_string, std::allocator>, std::allocator, std::allocator>>, std::__detail::_Identity, std::equal_to, std::allocator>>, std::hash, std::allocator>>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::_Hashtable<__gnu_cxx::__normal_iterator, std::allocator>*, std::vector, std::allocator>, std::allocator, std::allocator>>>>>(__gnu_cxx::__normal_iterator, std::allocator>*, std::vector, std::allocator>, std::allocator, std::allocator>>>>, __gnu_cxx::__normal_iterator, std::allocator>*, std::vector, std::allocator>, std::allocator, std::allocator>>>>, unsigned long, std::hash, std::allocator>> const&, std::equal_to, std::allocator>> const&, std::allocator, std::allocator>> const&, std::integral_constant)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by SampleProfReader.cpp >>> SampleProfReader.cpp.o:(llvm::sampleprof::SampleProfileReader::create(std::unique_ptr>&, llvm::LLVMContext&, llvm::sampleprof::FSDiscriminatorPass, std::__cxx11::basic_string, std::allocator>) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced by SampleProfReader.cpp >>> SampleProfReader.cpp.o:(llvm::sampleprof::SampleProfileReader::create(std::unique_ptr>&, llvm::LLVMContext&, llvm::sampleprof::FSDiscriminatorPass, std::__cxx11::basic_string, std::allocator>) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced 5 more times ld.lld: error: undefined symbol: std::_Hash_bytes(void const*, unsigned long, unsigned long) >>> referenced by PrintPasses.cpp >>> PrintPasses.cpp.o:(std::_Hashtable, std::allocator>, std::__cxx11::basic_string, std::allocator>, std::allocator, std::allocator>>, std::__detail::_Identity, std::equal_to, std::allocator>>, std::hash, std::allocator>>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::_Hashtable<__gnu_cxx::__normal_iterator, std::allocator>*, std::vector, std::allocator>, std::allocator, std::allocator>>>>>(__gnu_cxx::__normal_iterator, std::allocator>*, std::vector, std::allocator>, std::allocator, std::allocator>>>>, __gnu_cxx::__normal_iterator, std::allocator>*, std::vector, std::allocator>, std::allocator, std::allocator>>>>, unsigned long, std::hash, std::allocator>> const&, std::equal_to, std::allocator>> const&, std::allocator, std::allocator>> const&, std::integral_constant)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by PrintPasses.cpp >>> PrintPasses.cpp.o:(llvm::isFunctionInPrintList(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by SampleProf.cpp >>> SampleProf.cpp.o:(llvm::sampleprof::FunctionSamples::getCallSiteHash(llvm::StringRef, llvm::sampleprof::LineLocation const&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced 9 more times ld.lld: error: undefined symbol: std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned long, unsigned long, unsigned long) const >>> referenced by PrintPasses.cpp >>> PrintPasses.cpp.o:(std::_Hashtable, std::allocator>, std::__cxx11::basic_string, std::allocator>, std::allocator, std::allocator>>, std::__detail::_Identity, std::equal_to, std::allocator>>, std::hash, std::allocator>>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::_Hashtable<__gnu_cxx::__normal_iterator, std::allocator>*, std::vector, std::allocator>, std::allocator, std::allocator>>>>>(__gnu_cxx::__normal_iterator, std::allocator>*, std::vector, std::allocator>, std::allocator, std::allocator>>>>, __gnu_cxx::__normal_iterator, std::allocator>*, std::vector, std::allocator>, std::allocator, std::allocator>>>>, unsigned long, std::hash, std::allocator>> const&, std::equal_to, std::allocator>> const&, std::allocator, std::allocator>> const&, std::integral_constant)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by ProfileSummaryBuilder.cpp >>> ProfileSummaryBuilder.cpp.o:(llvm::SampleProfileSummaryBuilder::computeSummaryForProfiles(std::unordered_map, std::allocator>> const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced by SampleProf.cpp >>> SampleProf.cpp.o:(std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, llvm::sampleprof::SampleContext::Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::_M_insert_unique_node(unsigned long, unsigned long, std::__detail::_Hash_node, true>*, unsigned long)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced 37 more times ld.lld: error: undefined symbol: std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*) >>> referenced by PassManager.cpp >>> PassManager.cpp.o:(llvm::AnalysisManager::getResultImpl(llvm::AnalysisKey*, llvm::Module&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by PassManager.cpp >>> PassManager.cpp.o:(llvm::AnalysisManager::getResultImpl(llvm::AnalysisKey*, llvm::Function&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by BlockFrequencyInfo.cpp >>> BlockFrequencyInfo.cpp.o:(llvm::BlockFrequencyInfoImpl::initializeLoops()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced 258 more times ld.lld: error: undefined symbol: std::__detail::_List_node_base::_M_unhook() >>> referenced by PassManager.cpp >>> PassManager.cpp.o:(llvm::AnalysisManager::invalidate(llvm::Module&, llvm::PreservedAnalyses const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by PassManager.cpp >>> PassManager.cpp.o:(llvm::AnalysisManager::invalidate(llvm::Function&, llvm::PreservedAnalyses const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCore.a >>> referenced by GlobalsModRef.cpp >>> GlobalsModRef.cpp.o:(llvm::GlobalsAAResult::DeletionCallbackHandle::deleted() (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced 88 more times ld.lld: error: undefined symbol: std::chrono::_V2::steady_clock::now() >>> referenced by TimeProfiler.cpp >>> TimeProfiler.cpp.o:(llvm::TimeTraceProfiler::end()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by TimeProfiler.cpp >>> TimeProfiler.cpp.o:(llvm::timeTraceProfilerInitialize(unsigned int, llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by TimeProfiler.cpp >>> TimeProfiler.cpp.o:(llvm::timeTraceProfilerBegin(llvm::StringRef, llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 3 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::swap(std::__cxx11::basic_string, std::allocator>&) >>> referenced by TimeProfiler.cpp >>> TimeProfiler.cpp.o:(void std::__introsort_loop<__gnu_cxx::__normal_iterator, std::allocator>, std::pair>>>*, std::vector, std::allocator>, std::pair>>>, std::allocator, std::allocator>, std::pair>>>>>>, long, __gnu_cxx::__ops::_Iter_comp_iter, std::allocator>, std::pair>>> const&, std::pair, std::allocator>, std::pair>>> const&)>>(__gnu_cxx::__normal_iterator, std::allocator>, std::pair>>>*, std::vector, std::allocator>, std::pair>>>, std::allocator, std::allocator>, std::pair>>>>>>, __gnu_cxx::__normal_iterator, std::allocator>, std::pair>>>*, std::vector, std::allocator>, std::pair>>>, std::allocator, std::allocator>, std::pair>>>>>>, long, __gnu_cxx::__ops::_Iter_comp_iter, std::allocator>, std::pair>>> const&, std::pair, std::allocator>, std::pair>>> const&)>)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by TimeProfiler.cpp >>> TimeProfiler.cpp.o:(void std::__introsort_loop<__gnu_cxx::__normal_iterator, std::allocator>, std::pair>>>*, std::vector, std::allocator>, std::pair>>>, std::allocator, std::allocator>, std::pair>>>>>>, long, __gnu_cxx::__ops::_Iter_comp_iter, std::allocator>, std::pair>>> const&, std::pair, std::allocator>, std::pair>>> const&)>>(__gnu_cxx::__normal_iterator, std::allocator>, std::pair>>>*, std::vector, std::allocator>, std::pair>>>, std::allocator, std::allocator>, std::pair>>>>>>, __gnu_cxx::__normal_iterator, std::allocator>, std::pair>>>*, std::vector, std::allocator>, std::pair>>>, std::allocator, std::allocator>, std::pair>>>>>>, long, __gnu_cxx::__ops::_Iter_comp_iter, std::allocator>, std::pair>>> const&, std::pair, std::allocator>, std::pair>>> const&)>)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by TimeProfiler.cpp >>> TimeProfiler.cpp.o:(void std::__introsort_loop<__gnu_cxx::__normal_iterator, std::allocator>, std::pair>>>*, std::vector, std::allocator>, std::pair>>>, std::allocator, std::allocator>, std::pair>>>>>>, long, __gnu_cxx::__ops::_Iter_comp_iter, std::allocator>, std::pair>>> const&, std::pair, std::allocator>, std::pair>>> const&)>>(__gnu_cxx::__normal_iterator, std::allocator>, std::pair>>>*, std::vector, std::allocator>, std::pair>>>, std::allocator, std::allocator>, std::pair>>>>>>, __gnu_cxx::__normal_iterator, std::allocator>, std::pair>>>*, std::vector, std::allocator>, std::pair>>>, std::allocator, std::allocator>, std::pair>>>>>>, long, __gnu_cxx::__ops::_Iter_comp_iter, std::allocator>, std::pair>>> const&, std::pair, std::allocator>, std::pair>>> const&)>)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 62 more times ld.lld: error: undefined symbol: std::__throw_out_of_range(char const*) >>> referenced by SampleProfReader.cpp >>> SampleProfReader.cpp.o:(llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles() (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced by OpenMPOpt.cpp >>> OpenMPOpt.cpp.o:((anonymous namespace)::AAFoldRuntimeCallCallSiteReturned::foldKernelFnAttribute(llvm::Attributor&, llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMipo.a >>> referenced by SampleProfile.cpp >>> SampleProfile.cpp.o:(llvm::sampleprof::FunctionSamples::getFuncName(llvm::StringRef) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMipo.a >>> referenced 20 more times ld.lld: error: undefined symbol: std::__throw_invalid_argument(char const*) >>> referenced by SampleProfReader.cpp >>> SampleProfReader.cpp.o:(llvm::sampleprof::SampleProfileReaderExtBinaryBase::readFuncProfiles() (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a >>> referenced by OpenMPOpt.cpp >>> OpenMPOpt.cpp.o:((anonymous namespace)::AAFoldRuntimeCallCallSiteReturned::foldKernelFnAttribute(llvm::Attributor&, llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMipo.a >>> referenced by SampleProfile.cpp >>> SampleProfile.cpp.o:(llvm::sampleprof::FunctionSamples::getFuncName(llvm::StringRef) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMipo.a >>> referenced 8 more times ld.lld: error: undefined symbol: std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) >>> referenced by CallGraph.cpp >>> CallGraph.cpp.o:(llvm::CallGraph::removeFunctionFromModule(llvm::CallGraphNode*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by MemorySSAUpdater.cpp >>> MemorySSAUpdater.cpp.o:(llvm::MemorySSAUpdater::fixupDefs(llvm::SmallVectorImpl const&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by SimplifyCFG.cpp >>> SimplifyCFG.cpp.o:((anonymous namespace)::SimplifyCFGOpt::FoldValueComparisonIntoPredecessors(llvm::Instruction*, llvm::IRBuilder&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMTransformUtils.a >>> referenced 102 more times ld.lld: error: undefined symbol: std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*, std::__detail::_List_node_base*) >>> referenced by InterleavedLoadCombinePass.cpp >>> InterleavedLoadCombinePass.cpp.o:((anonymous namespace)::InterleavedLoadCombineImpl::run()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCodeGen.a >>> referenced by InterleavedLoadCombinePass.cpp >>> InterleavedLoadCombinePass.cpp.o:((anonymous namespace)::InterleavedLoadCombineImpl::run()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMCodeGen.a >>> referenced by LoopDistribute.cpp >>> LoopDistribute.cpp.o:((anonymous namespace)::InstPartitionContainer::mergeToAvoidDuplicatedLoads()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMScalarOpts.a >>> referenced 16 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::find_first_of(char const*, unsigned long, unsigned long) const >>> referenced by InstrProf.cpp >>> InstrProf.cpp.o:(llvm::getPGOFuncNameVarName[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMProfileData.a ld.lld: error: undefined symbol: vtable for std::__cxx11::basic_ostringstream, std::allocator> >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced 13 more times >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) ld.lld: error: undefined symbol: std::ios_base::ios_base() >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by InstrOrderFile.cpp >>> InstrOrderFile.cpp.o:((anonymous namespace)::InstrOrderFile::generateCodeSequence(llvm::Module&, llvm::Function&, int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMInstrumentation.a >>> referenced 11 more times ld.lld: error: undefined symbol: vtable for std::basic_ios> >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced 26 more times >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) ld.lld: error: undefined symbol: VTT for std::__cxx11::basic_ostringstream, std::allocator> >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by AddressSanitizer.cpp >>> AddressSanitizer.cpp.o:((anonymous namespace)::FunctionStackPoisoner::initializeCallbacks(llvm::Module&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMInstrumentation.a >>> referenced by AArch64LowerHomogeneousPrologEpilog.cpp >>> AArch64LowerHomogeneousPrologEpilog.cpp.o:(getOrCreateFrameHelper(llvm::Module*, llvm::MachineModuleInfo*, llvm::SmallVectorImpl&, FrameHelperType, unsigned int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAArch64CodeGen.a >>> referenced 2 more times ld.lld: error: undefined symbol: std::basic_ios>::init(std::basic_streambuf>*) >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced 30 more times ld.lld: error: undefined symbol: vtable for std::basic_streambuf> >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced 23 more times >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) ld.lld: error: undefined symbol: std::locale::locale() >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by InstrOrderFile.cpp >>> InstrOrderFile.cpp.o:((anonymous namespace)::InstrOrderFile::generateCodeSequence(llvm::Module&, llvm::Function&, int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMInstrumentation.a >>> referenced 11 more times ld.lld: error: undefined symbol: vtable for std::__cxx11::basic_stringbuf, std::allocator> >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced 17 more times >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) ld.lld: error: undefined symbol: std::basic_ostream>& std::__ostream_insert>(std::basic_ostream>&, char const*, long) >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced 86 more times ld.lld: error: undefined symbol: std::ostream& std::ostream::_M_insert(unsigned long) >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by InstrOrderFile.cpp >>> InstrOrderFile.cpp.o:((anonymous namespace)::InstrOrderFile::generateCodeSequence(llvm::Module&, llvm::Function&, int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMInstrumentation.a >>> referenced by AddressSanitizer.cpp >>> AddressSanitizer.cpp.o:((anonymous namespace)::FunctionStackPoisoner::initializeCallbacks(llvm::Module&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMInstrumentation.a >>> referenced 23 more times ld.lld: error: undefined symbol: std::locale::~locale() >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by InstrOrderFile.cpp >>> InstrOrderFile.cpp.o:((anonymous namespace)::InstrOrderFile::generateCodeSequence(llvm::Module&, llvm::Function&, int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMInstrumentation.a >>> referenced 27 more times ld.lld: error: undefined symbol: std::ios_base::~ios_base() >>> referenced by AsmParser.cpp >>> AsmParser.cpp.o:((anonymous namespace)::AsmParser::parseStatement((anonymous namespace)::ParseStatementInfo&, llvm::MCAsmParserSemaCallback*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMMCParser.a >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by InstrOrderFile.cpp >>> InstrOrderFile.cpp.o:((anonymous namespace)::InstrOrderFile::generateCodeSequence(llvm::Module&, llvm::Function&, int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMInstrumentation.a >>> referenced 12 more times ld.lld: error: undefined symbol: vtable for std::__cxx11::basic_stringstream, std::allocator> >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced 14 more times >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) ld.lld: error: undefined symbol: VTT for std::__cxx11::basic_stringstream, std::allocator> >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by InstrOrderFile.cpp >>> InstrOrderFile.cpp.o:((anonymous namespace)::InstrOrderFile::generateCodeSequence(llvm::Module&, llvm::Function&, int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMInstrumentation.a >>> referenced by NVPTXISelLowering.cpp >>> NVPTXISelLowering.cpp.o:(llvm::NVPTXTargetLowering::getPrototype[abi:cxx11](llvm::DataLayout const&, llvm::Type*, std::vector> const&, llvm::SmallVectorImpl const&, llvm::MaybeAlign, llvm::CallBase const&, unsigned int) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMNVPTXCodeGen.a >>> referenced 2 more times ld.lld: error: undefined symbol: std::ostream::operator<<(int) >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(clang::threadSafety::til::PrettyPrinter::printBasicBlock(clang::threadSafety::til::BasicBlock const*, std::ostream&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(clang::threadSafety::til::PrettyPrinter::printBasicBlock(clang::threadSafety::til::BasicBlock const*, std::ostream&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a >>> referenced 5 more times ld.lld: error: undefined symbol: std::ostream& std::ostream::_M_insert(double) >>> referenced by ImportedFunctionsInliningStatistics.cpp >>> ImportedFunctionsInliningStatistics.cpp.o:(getStatString(char const*, int, int, char const*, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAnalysis.a >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(clang::threadSafety::til::PrettyPrinter::printSExpr(clang::threadSafety::til::SExpr const*, std::ostream&, unsigned int, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(clang::threadSafety::til::PrettyPrinter::printSExpr(clang::threadSafety::til::SExpr const*, std::ostream&, unsigned int, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a ld.lld: error: undefined symbol: std::ctype::_M_widen_init() const >>> referenced by AddressSanitizer.cpp >>> AddressSanitizer.cpp.o:((anonymous namespace)::FunctionStackPoisoner::initializeCallbacks(llvm::Module&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMInstrumentation.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__cxx11::regex_traits::isctype(char, std::__cxx11::regex_traits::_RegexMask) const (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_BracketMatcher, false, false>::_M_ready()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced 11 more times ld.lld: error: undefined symbol: std::__throw_bad_cast() >>> referenced by AddressSanitizer.cpp >>> AddressSanitizer.cpp.o:((anonymous namespace)::FunctionStackPoisoner::initializeCallbacks(llvm::Module&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMInstrumentation.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_Scanner::_Scanner(char const*, char const*, std::regex_constants::syntax_option_type, std::locale)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced 2 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::append(char const*, unsigned long) >>> referenced by IRMover.cpp >>> IRMover.cpp.o:(llvm::IRMover::move(std::unique_ptr>, llvm::ArrayRef, llvm::unique_function)>, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLinker.a >>> referenced by IRMover.cpp >>> IRMover.cpp.o:(llvm::IRMover::move(std::unique_ptr>, llvm::ArrayRef, llvm::unique_function)>, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLinker.a >>> referenced by IRMover.cpp >>> IRMover.cpp.o:(llvm::IRMover::move(std::unique_ptr>, llvm::ArrayRef, llvm::unique_function)>, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLinker.a >>> referenced 302 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::~basic_string() >>> referenced by COFFImportFile.cpp >>> COFFImportFile.cpp.o:(_GLOBAL__sub_I_COFFImportFile.cpp) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMObject.a >>> referenced by InstructionSelect.cpp >>> InstructionSelect.cpp.o:(_GLOBAL__sub_I_InstructionSelect.cpp) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMGlobalISel.a >>> referenced by Driver.cpp >>> Driver.cpp.o:(clang::driver::Driver::setDriverMode(llvm::StringRef) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangDriver.a >>> referenced 1 more times ld.lld: error: undefined symbol: std::__future_base::_Result_base::~_Result_base() >>> referenced by Driver.cpp >>> Driver.cpp.o:(std::__future_base::_Result>, std::error_code>>::~_Result()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced by Driver.cpp >>> Driver.cpp.o:(std::__future_base::_Result>, std::error_code>>::~_Result()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced by Driver.cpp >>> Driver.cpp.o:(std::__future_base::_Result>, std::error_code>>::_M_destroy()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced 5 more times ld.lld: error: undefined symbol: std::__atomic_futex_unsigned_base::_M_futex_notify_all(unsigned int*) >>> referenced by Driver.cpp >>> Driver.cpp.o:(std::__future_base::_Deferred_state, std::allocator>)::'lambda'()>>, std::pair>, std::error_code>>::_M_complete_async()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced by LTO.cpp >>> LTO.cpp.o:(std::_Function_handler)::'lambda'()>::_M_invoke(std::_Any_data const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLTO.a >>> referenced by LTO.cpp >>> LTO.cpp.o:(std::_Sp_counted_ptr_inplace, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_dispose()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLTO.a >>> referenced 2 more times ld.lld: error: undefined symbol: std::__future_base::_Result_base::_Result_base() >>> referenced by Driver.cpp >>> Driver.cpp.o:(lld::coff::createFutureForFile(std::__cxx11::basic_string, std::allocator>) (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced by LTO.cpp >>> LTO.cpp.o:(std::shared_future llvm::ThreadPool::asyncImpl(std::function, llvm::ThreadPoolTaskGroup*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLTO.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::Creator::call()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: std::__throw_future_error(int) >>> referenced by Driver.cpp >>> Driver.cpp.o:(lld::coff::createFutureForFile(std::__cxx11::basic_string, std::allocator>) (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced by Driver.cpp >>> Driver.cpp.o:(lld::coff::createFutureForFile(std::__cxx11::basic_string, std::allocator>) (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced by Driver.cpp >>> Driver.cpp.o:(lld::coff::LinkerDriver::enqueuePath(llvm::StringRef, bool, bool)::'lambda'()::operator()() const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced 11 more times ld.lld: error: undefined symbol: std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration>, std::chrono::duration>) >>> referenced by Driver.cpp >>> Driver.cpp.o:(lld::coff::LinkerDriver::enqueuePath(llvm::StringRef, bool, bool)::'lambda'()::operator()() const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced by Driver.cpp >>> Driver.cpp.o:(std::_Function_handler::_M_invoke(std::_Any_data const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::~ThreadPoolExecutor()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 1 more times ld.lld: error: undefined symbol: std::__exception_ptr::exception_ptr::_M_addref() >>> referenced by Driver.cpp >>> Driver.cpp.o:(lld::coff::LinkerDriver::enqueuePath(llvm::StringRef, bool, bool)::'lambda'()::operator()() const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced by Driver.cpp >>> Driver.cpp.o:(std::_Function_handler::_M_invoke(std::_Any_data const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a ld.lld: error: undefined symbol: std::rethrow_exception(std::__exception_ptr::exception_ptr) >>> referenced by Driver.cpp >>> Driver.cpp.o:(lld::coff::LinkerDriver::enqueuePath(llvm::StringRef, bool, bool)::'lambda'()::operator()() const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a >>> referenced by Driver.cpp >>> Driver.cpp.o:(std::_Function_handler::_M_invoke(std::_Any_data const&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCOFF.a ld.lld: error: undefined symbol: std::future_category() >>> referenced by LTO.cpp >>> LTO.cpp.o:(std::_Sp_counted_ptr_inplace, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_dispose()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLTO.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::~ThreadPoolExecutor()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: std::logic_error::logic_error(std::__cxx11::basic_string, std::allocator> const&) >>> referenced by LTO.cpp >>> LTO.cpp.o:(std::_Sp_counted_ptr_inplace, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_dispose()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLTO.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::~ThreadPoolExecutor()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: vtable for std::future_error >>> referenced by LTO.cpp >>> LTO.cpp.o:(std::_Sp_counted_ptr_inplace, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_dispose()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLTO.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::~ThreadPoolExecutor()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) ld.lld: error: undefined symbol: std::__exception_ptr::exception_ptr::_M_release() >>> referenced by LTO.cpp >>> LTO.cpp.o:(std::_Sp_counted_ptr_inplace, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_dispose()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLTO.a >>> referenced by LTO.cpp >>> LTO.cpp.o:(std::_Sp_counted_ptr_inplace, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_dispose()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLTO.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::~ThreadPoolExecutor()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 1 more times ld.lld: error: undefined symbol: std::future_error::~future_error() >>> referenced by LTO.cpp >>> LTO.cpp.o:(std::_Sp_counted_ptr_inplace, std::allocator, (__gnu_cxx::_Lock_policy)2>::_M_dispose()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLTO.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::~ThreadPoolExecutor()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: std::condition_variable::notify_one() >>> referenced by LTO.cpp >>> LTO.cpp.o:(std::shared_future llvm::ThreadPool::asyncImpl(std::function, llvm::ThreadPoolTaskGroup*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMLTO.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::add(std::function)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::TaskGroup::spawn(std::function) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: std::condition_variable::condition_variable() >>> referenced by ThreadPool.cpp >>> ThreadPool.cpp.o:(llvm::ThreadPool::ThreadPool(llvm::ThreadPoolStrategy)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ThreadPool.cpp >>> ThreadPool.cpp.o:(llvm::ThreadPool::ThreadPool(llvm::ThreadPoolStrategy)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::TaskGroup::TaskGroup()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 3 more times ld.lld: error: undefined symbol: std::condition_variable::notify_all() >>> referenced by ThreadPool.cpp >>> ThreadPool.cpp.o:(llvm::ThreadPool::processTasks(llvm::ThreadPoolTaskGroup*) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ThreadPool.cpp >>> ThreadPool.cpp.o:(llvm::ThreadPool::processTasks(llvm::ThreadPoolTaskGroup*) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ThreadPool.cpp >>> ThreadPool.cpp.o:(llvm::ThreadPool::processTasks(llvm::ThreadPoolTaskGroup*) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 5 more times ld.lld: error: undefined symbol: std::condition_variable::wait(std::unique_lock&) >>> referenced by ThreadPool.cpp >>> ThreadPool.cpp.o:(llvm::ThreadPool::processTasks(llvm::ThreadPoolTaskGroup*) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ThreadPool.cpp >>> ThreadPool.cpp.o:(llvm::ThreadPool::processTasks(llvm::ThreadPoolTaskGroup*) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ThreadPool.cpp >>> ThreadPool.cpp.o:(llvm::ThreadPool::wait()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 4 more times ld.lld: error: undefined symbol: std::condition_variable::~condition_variable() >>> referenced by ThreadPool.cpp >>> ThreadPool.cpp.o:(llvm::ThreadPool::~ThreadPool()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by ThreadPool.cpp >>> ThreadPool.cpp.o:(llvm::ThreadPool::~ThreadPool()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::TaskGroup::~TaskGroup() (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 2 more times ld.lld: error: undefined symbol: std::ctype const& std::use_facet>(std::locale const&) >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__cxx11::regex_traits::isctype(char, std::__cxx11::regex_traits::_RegexMask) const (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::_Function_handler, true, false>>::_M_invoke(std::_Any_data const&, char&&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::_Function_handler, true, true>>::_M_invoke(std::_Any_data const&, char&&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced 55 more times ld.lld: error: undefined symbol: VTT for std::__cxx11::basic_istringstream, std::allocator> >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__cxx11::regex_traits::value(char, int) const (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a ld.lld: error: undefined symbol: vtable for std::__cxx11::basic_istringstream, std::allocator> >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__cxx11::regex_traits::value(char, int) const (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__cxx11::regex_traits::value(char, int) const (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__cxx11::regex_traits::value(char, int) const (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced 1 more times >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) ld.lld: error: undefined symbol: std::__cxx11::basic_stringbuf, std::allocator>::_M_sync(char*, unsigned long, unsigned long) >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__cxx11::regex_traits::value(char, int) const (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a ld.lld: error: undefined symbol: std::istream& std::istream::_M_extract(long&) >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__cxx11::regex_traits::value(char, int) const (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a ld.lld: error: undefined symbol: std::__throw_regex_error(std::regex_constants::error_type) >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_Scanner::_M_eat_escape_ecma()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_Scanner::_M_eat_escape_awk()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_Scanner::_M_eat_escape_posix()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced 12 more times ld.lld: error: undefined symbol: std::ctype::id >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_Scanner::_Scanner(char const*, char const*, std::regex_constants::syntax_option_type, std::locale)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a ld.lld: error: undefined symbol: std::locale::id::_M_id() const >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_Scanner::_Scanner(char const*, char const*, std::regex_constants::syntax_option_type, std::locale)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a ld.lld: error: undefined symbol: std::__cxx11::collate const& std::use_facet>(std::locale const&) >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_BracketMatcher, false, false>::_M_ready()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_BracketMatcher, false, true>::_M_ready()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_BracketMatcher, false, true>::_M_ready()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced 9 more times ld.lld: error: undefined symbol: std::locale::locale(std::locale const&) >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_BracketMatcher, true, false>::_M_ready()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_BracketMatcher, true, true>::_M_ready()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_Executor<__gnu_cxx::__normal_iterator, std::allocator>>, std::allocator, std::allocator>>>>, std::__cxx11::regex_traits, false>::_M_is_line_terminator(char) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced 8 more times ld.lld: error: undefined symbol: std::locale::operator=(std::locale const&) >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_Compiler>::_Compiler(char const*, char const*, std::locale const&, std::regex_constants::syntax_option_type)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a >>> referenced by ErrorHandler.cpp >>> ErrorHandler.cpp.o:(std::__detail::_Compiler>::_Compiler(char const*, char const*, std::locale const&, std::regex_constants::syntax_option_type)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a ld.lld: error: undefined symbol: std::thread::_State::~_State() >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(std::thread::_State_impl>>::~_State_impl()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(std::thread::_State_impl>>::~_State_impl()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(std::thread::_State_impl>>::~_State_impl()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 3 more times ld.lld: error: undefined symbol: std::thread::_M_start_thread(std::unique_ptr>, void (*)()) >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(std::thread::_State_impl>>::_M_run()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(std::thread::_State_impl>>::_M_run()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::Creator::call()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced 1 more times ld.lld: error: undefined symbol: std::thread::join() >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::~ThreadPoolExecutor()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: std::thread::detach() >>> referenced by Parallel.cpp >>> Parallel.cpp.o:(llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::~ThreadPoolExecutor()) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a >>> referenced by Filesystem.cpp >>> Filesystem.cpp.o:(lld::unlinkAsync(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldCommon.a ld.lld: error: undefined symbol: std::basic_ios>::clear(std::_Ios_Iostate) >>> referenced by AArch64LowerHomogeneousPrologEpilog.cpp >>> AArch64LowerHomogeneousPrologEpilog.cpp.o:(getOrCreateFrameHelper(llvm::Module*, llvm::MachineModuleInfo*, llvm::SmallVectorImpl&, FrameHelperType, unsigned int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAArch64CodeGen.a >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(std::basic_ostream>& std::operator<<>(std::basic_ostream>&, char const*) (.isra.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced 5 more times ld.lld: error: undefined symbol: std::__detail::_List_node_base::swap(std::__detail::_List_node_base&, std::__detail::_List_node_base&) >>> referenced by SILoadStoreOptimizer.cpp >>> SILoadStoreOptimizer.cpp.o:((anonymous namespace)::SILoadStoreOptimizer::collectMergeableInsts(llvm::MachineInstrBundleIterator, llvm::MachineInstrBundleIterator, llvm::DenseMap, llvm::detail::DenseMapPair>&, llvm::SmallPtrSet&, std::__cxx11::list>, std::allocator>>>&) const (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAMDGPUCodeGen.a >>> referenced by SILoadStoreOptimizer.cpp >>> SILoadStoreOptimizer.cpp.o:((anonymous namespace)::SILoadStoreOptimizer::collectMergeableInsts(llvm::MachineInstrBundleIterator, llvm::MachineInstrBundleIterator, llvm::DenseMap, llvm::detail::DenseMapPair>&, llvm::SmallPtrSet&, std::__cxx11::list>, std::allocator>>>&) const (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAMDGPUCodeGen.a >>> referenced by SILoadStoreOptimizer.cpp >>> SILoadStoreOptimizer.cpp.o:((anonymous namespace)::SILoadStoreOptimizer::collectMergeableInsts(llvm::MachineInstrBundleIterator, llvm::MachineInstrBundleIterator, llvm::DenseMap, llvm::detail::DenseMapPair>&, llvm::SmallPtrSet&, std::__cxx11::list>, std::allocator>>>&) const (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAMDGPUCodeGen.a >>> referenced 7 more times ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::compare(unsigned long, unsigned long, char const*) const >>> referenced by ARMISelLowering.cpp >>> ARMISelLowering.cpp.o:(llvm::ARMTargetLowering::ExpandInlineAsm(llvm::CallInst*) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMARMCodeGen.a >>> referenced by X86ISelLowering.cpp >>> X86ISelLowering.cpp.o:(llvm::X86TargetLowering::ExpandInlineAsm(llvm::CallInst*) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMX86CodeGen.a >>> referenced by X86ISelLowering.cpp >>> X86ISelLowering.cpp.o:(llvm::X86TargetLowering::ExpandInlineAsm(llvm::CallInst*) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMX86CodeGen.a ld.lld: error: undefined symbol: std::__cxx11::basic_stringstream, std::allocator>::basic_stringstream() >>> referenced by HexagonAsmBackend.cpp >>> HexagonAsmBackend.cpp.o:((anonymous namespace)::HexagonAsmBackend::HandleFixupError(int, int, long, char const*) const (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMHexagonDesc.a ld.lld: error: undefined symbol: std::ostream& std::ostream::_M_insert(long) >>> referenced by HexagonAsmBackend.cpp >>> HexagonAsmBackend.cpp.o:((anonymous namespace)::HexagonAsmBackend::HandleFixupError(int, int, long, char const*) const (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMHexagonDesc.a >>> referenced by HexagonAsmBackend.cpp >>> HexagonAsmBackend.cpp.o:((anonymous namespace)::HexagonAsmBackend::HandleFixupError(int, int, long, char const*) const (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMHexagonDesc.a >>> referenced by HexagonAsmBackend.cpp >>> HexagonAsmBackend.cpp.o:((anonymous namespace)::HexagonAsmBackend::HandleFixupError(int, int, long, char const*) const (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMHexagonDesc.a >>> referenced 2 more times ld.lld: error: undefined symbol: std::basic_ostream>& std::operator<<>(std::basic_ostream>&, char const*) >>> referenced by HexagonAsmBackend.cpp >>> HexagonAsmBackend.cpp.o:((anonymous namespace)::HexagonAsmBackend::HandleFixupError(int, int, long, char const*) const (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMHexagonDesc.a >>> referenced by HexagonAsmBackend.cpp >>> HexagonAsmBackend.cpp.o:((anonymous namespace)::HexagonAsmBackend::HandleFixupError(int, int, long, char const*) const (.constprop.0)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMHexagonDesc.a ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::rfind(char, unsigned long) const >>> referenced by CodeViewDebug.cpp >>> CodeViewDebug.cpp.o:(llvm::CodeViewDebug::getFullFilepath(llvm::DIFile const*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMAsmPrinter.a >>> referenced by ToolChain.cpp >>> ToolChain.cpp.o:(clang::driver::ToolChain::getTargetAndModeFromProgramName(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangDriver.a >>> referenced by RewriteModernObjC.cpp >>> RewriteModernObjC.cpp.o:(clang::CreateModernObjCRewriter(std::__cxx11::basic_string, std::allocator> const&, std::unique_ptr>, clang::DiagnosticsEngine&, clang::LangOptions const&, bool, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangRewriteFrontend.a >>> referenced 1 more times ld.lld: error: undefined symbol: std::random_device::_M_fini() >>> referenced by Writer.cpp >>> Writer.cpp.o:(maybeShuffle(llvm::DenseMap, llvm::detail::DenseMapPair>&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldELF.a >>> referenced by LockFileManager.cpp >>> LockFileManager.cpp.o:(llvm::LockFileManager::waitForUnlock(unsigned int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: std::random_device::_M_init(std::__cxx11::basic_string, std::allocator> const&) >>> referenced by Writer.cpp >>> Writer.cpp.o:(maybeShuffle(llvm::DenseMap, llvm::detail::DenseMapPair>&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldELF.a >>> referenced by LockFileManager.cpp >>> LockFileManager.cpp.o:(llvm::LockFileManager::waitForUnlock(unsigned int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: std::random_device::_M_getval() >>> referenced by Writer.cpp >>> Writer.cpp.o:(maybeShuffle(llvm::DenseMap, llvm::detail::DenseMapPair>&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/liblldELF.a >>> referenced by LockFileManager.cpp >>> LockFileManager.cpp.o:(llvm::LockFileManager::waitForUnlock(unsigned int)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libLLVMSupport.a ld.lld: error: undefined symbol: clang::ASTUnit::LoadFromCommandLine(char const**, char const**, std::__1::shared_ptr, llvm::IntrusiveRefCntPtr, llvm::StringRef, bool, clang::CaptureDiagsKind, llvm::ArrayRef, std::__1::allocator>, llvm::MemoryBuffer*>>, bool, unsigned int, clang::TranslationUnitKind, bool, bool, bool, clang::SkipFunctionBodiesScope, bool, bool, bool, bool, llvm::Optional, std::__1::unique_ptr>*, llvm::IntrusiveRefCntPtr) >>> referenced by zig_clang.cpp:2500 (src/zig_clang.cpp:2500) >>> /home/vexu/Documents/zig/zig/zig-cache/o/190ca9e3c78fcba8f9161028e15a9e70/zig_clang.o:(ZigClangLoadFromCommandLine) ld.lld: error: undefined symbol: std::ostream::write(char const*, long) >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(clang::threadSafety::til::PrettyPrinter::printBasicBlock(clang::threadSafety::til::BasicBlock const*, std::ostream&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(clang::threadSafety::til::PrettyPrinter::printBasicBlock(clang::threadSafety::til::BasicBlock const*, std::ostream&)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(clang::threadSafety::til::PrettyPrinter::printSExpr(clang::threadSafety::til::SExpr const*, std::ostream&, unsigned int, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a >>> referenced 8 more times ld.lld: error: undefined symbol: std::basic_ostream>& std::operator<<>(std::basic_ostream>&, char) >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(clang::threadSafety::til::PrettyPrinter::printSExpr(clang::threadSafety::til::SExpr const*, std::ostream&, unsigned int, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(clang::threadSafety::til::PrettyPrinter::printSExpr(clang::threadSafety::til::SExpr const*, std::ostream&, unsigned int, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a ld.lld: error: undefined symbol: std::ostream::operator<<(short) >>> referenced by ThreadSafety.cpp >>> ThreadSafety.cpp.o:(clang::threadSafety::til::PrettyPrinter::printSExpr(clang::threadSafety::til::SExpr const*, std::ostream&, unsigned int, bool)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangAnalysis.a ld.lld: error: undefined symbol: VTT for std::basic_ifstream> >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by LayoutOverrideSource.cpp >>> LayoutOverrideSource.cpp.o:(clang::LayoutOverrideSource::LayoutOverrideSource(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by CrossTranslationUnit.cpp >>> CrossTranslationUnit.cpp.o:(clang::cross_tu::parseCrossTUIndex[abi:cxx11](llvm::StringRef) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCrossTU.a ld.lld: error: undefined symbol: vtable for std::basic_ifstream> >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by LayoutOverrideSource.cpp >>> LayoutOverrideSource.cpp.o:(clang::LayoutOverrideSource::LayoutOverrideSource(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by LayoutOverrideSource.cpp >>> LayoutOverrideSource.cpp.o:(clang::LayoutOverrideSource::LayoutOverrideSource(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced 5 more times >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) ld.lld: error: undefined symbol: std::basic_filebuf>::basic_filebuf() >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by LayoutOverrideSource.cpp >>> LayoutOverrideSource.cpp.o:(clang::LayoutOverrideSource::LayoutOverrideSource(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by CrossTranslationUnit.cpp >>> CrossTranslationUnit.cpp.o:(clang::cross_tu::parseCrossTUIndex[abi:cxx11](llvm::StringRef) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCrossTU.a ld.lld: error: undefined symbol: std::basic_filebuf>::open(char const*, std::_Ios_Openmode) >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by LayoutOverrideSource.cpp >>> LayoutOverrideSource.cpp.o:(clang::LayoutOverrideSource::LayoutOverrideSource(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by CrossTranslationUnit.cpp >>> CrossTranslationUnit.cpp.o:(clang::cross_tu::parseCrossTUIndex[abi:cxx11](llvm::StringRef) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCrossTU.a ld.lld: error: undefined symbol: std::__basic_file::is_open() const >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by LayoutOverrideSource.cpp >>> LayoutOverrideSource.cpp.o:(clang::LayoutOverrideSource::LayoutOverrideSource(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a ld.lld: error: undefined symbol: std::basic_istream>& std::getline, std::allocator>(std::basic_istream>&, std::__cxx11::basic_string, std::allocator>&, char) >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by LayoutOverrideSource.cpp >>> LayoutOverrideSource.cpp.o:(clang::LayoutOverrideSource::LayoutOverrideSource(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by CrossTranslationUnit.cpp >>> CrossTranslationUnit.cpp.o:(clang::cross_tu::parseCrossTUIndex[abi:cxx11](llvm::StringRef) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCrossTU.a ld.lld: error: undefined symbol: vtable for std::basic_filebuf> >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by LayoutOverrideSource.cpp >>> LayoutOverrideSource.cpp.o:(clang::LayoutOverrideSource::LayoutOverrideSource(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by CrossTranslationUnit.cpp >>> CrossTranslationUnit.cpp.o:(clang::cross_tu::parseCrossTUIndex[abi:cxx11](llvm::StringRef) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCrossTU.a >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) ld.lld: error: undefined symbol: std::basic_filebuf>::close() >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by LayoutOverrideSource.cpp >>> LayoutOverrideSource.cpp.o:(clang::LayoutOverrideSource::LayoutOverrideSource(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by CrossTranslationUnit.cpp >>> CrossTranslationUnit.cpp.o:(clang::cross_tu::parseCrossTUIndex[abi:cxx11](llvm::StringRef) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCrossTU.a ld.lld: error: undefined symbol: std::__basic_file::~__basic_file() >>> referenced by CompilerInvocation.cpp >>> CompilerInvocation.cpp.o:(clang::CompilerInvocation::ParseLangArgs(clang::LangOptions&, llvm::opt::ArgList&, clang::InputKind, llvm::Triple const&, std::vector, std::allocator>, std::allocator, std::allocator>>>&, clang::DiagnosticsEngine&) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by LayoutOverrideSource.cpp >>> LayoutOverrideSource.cpp.o:(clang::LayoutOverrideSource::LayoutOverrideSource(llvm::StringRef)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangFrontend.a >>> referenced by CrossTranslationUnit.cpp >>> CrossTranslationUnit.cpp.o:(clang::cross_tu::parseCrossTUIndex[abi:cxx11](llvm::StringRef) (.localalias)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCrossTU.a ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::assign(char const*) >>> referenced by Darwin.cpp >>> Darwin.cpp.o:(clang::driver::toolchains::Darwin::AddDeploymentTarget(llvm::opt::DerivedArgList&) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangDriver.a ld.lld: error: undefined symbol: llvm::Twine::str() const >>> referenced by zig_llvm-ar.cpp:175 (src/zig_llvm-ar.cpp:175) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(failIfError(std::__1::error_code, llvm::Twine)) >>> referenced by zig_llvm-ar.cpp:186 (src/zig_llvm-ar.cpp:186) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(failIfError(llvm::Error, llvm::Twine)::$_4::operator()(llvm::ErrorInfoBase const&) const) ld.lld: error: undefined symbol: llvm::sys::path::convert_to_slash(llvm::StringRef, llvm::sys::path::Style) >>> referenced by zig_llvm-ar.cpp:547 (src/zig_llvm-ar.cpp:547) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(doDisplayTable(llvm::StringRef, llvm::object::Archive::Child const&)) >>> referenced by zig_llvm-ar.cpp:559 (src/zig_llvm-ar.cpp:559) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(normalizePath(llvm::StringRef)) >>> referenced by zig_llvm-ar.cpp:780 (src/zig_llvm-ar.cpp:780) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(addChildMember(std::__1::vector>&, llvm::object::Archive::Child const&, bool)) >>> referenced 3 more times ld.lld: error: undefined symbol: llvm::object::Archive::Child::getFullName() const >>> referenced by zig_llvm-ar.cpp:782 (src/zig_llvm-ar.cpp:782) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(addChildMember(std::__1::vector>&, llvm::object::Archive::Child const&, bool)) >>> referenced by zig_llvm-ar.cpp:792 (src/zig_llvm-ar.cpp:792) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(addChildMember(std::__1::vector>&, llvm::object::Archive::Child const&, bool)) ld.lld: error: undefined symbol: llvm::computeArchiveRelativePath(llvm::StringRef, llvm::StringRef) >>> referenced by zig_llvm-ar.cpp:785 (src/zig_llvm-ar.cpp:785) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(addChildMember(std::__1::vector>&, llvm::object::Archive::Child const&, bool)) >>> referenced by zig_llvm-ar.cpp:823 (src/zig_llvm-ar.cpp:823) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(getArchiveMember(llvm::StringRef)) ld.lld: error: undefined symbol: llvm::sys::getProcessTriple() >>> referenced by zig_llvm-ar.cpp:1302 (src/zig_llvm-ar.cpp:1302) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(getRspQuoting(llvm::ArrayRef)) ld.lld: error: undefined symbol: llvm::StringRef::lower() const >>> referenced by zig_llvm-ar.cpp:1190 (src/zig_llvm-ar.cpp:1190) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(runMRIScript()) ld.lld: error: undefined symbol: llvm::format_provider>>, void>::format(std::__1::chrono::time_point>> const&, llvm::raw_ostream&, llvm::StringRef) >>> referenced by FormatVariadicDetails.h:40 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/Support/FormatVariadicDetails.h:40) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(llvm::detail::provider_format_adapter>>&>::format(llvm::raw_ostream&, llvm::StringRef)) ld.lld: error: undefined symbol: llvm::sys::fs::setLastAccessAndModificationTime(int, std::__1::chrono::time_point>>, std::__1::chrono::time_point>>) >>> referenced by FileSystem.h:712 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/Support/FileSystem.h:712) >>> /home/vexu/Documents/zig/zig/zig-cache/o/c07719136deb4fb5f6a951fe524ddf72/zig_llvm-ar.o:(llvm::sys::fs::setLastAccessAndModificationTime(int, std::__1::chrono::time_point>>)) ld.lld: error: undefined symbol: llvm::sys::findProgramByName(llvm::StringRef, llvm::ArrayRef) >>> referenced by zig_clang_driver.cpp:63 (src/zig_clang_driver.cpp:63) >>> /home/vexu/Documents/zig/zig/zig-cache/o/daafbdf85a0b3897a8e07cd6c03e1bb0/zig_clang_driver.o:(GetExecutablePath(char const*, bool)) >>> referenced by zig_clang_driver.cpp:288 (src/zig_clang_driver.cpp:288) >>> /home/vexu/Documents/zig/zig/zig-cache/o/daafbdf85a0b3897a8e07cd6c03e1bb0/zig_clang_driver.o:(SetInstallDir(llvm::SmallVectorImpl&, clang::driver::Driver&, bool)) ld.lld: error: undefined symbol: llvm::sys::fs::getMainExecutable(char const*, void*) >>> referenced by zig_clang_driver.cpp:71 (src/zig_clang_driver.cpp:71) >>> /home/vexu/Documents/zig/zig/zig-cache/o/daafbdf85a0b3897a8e07cd6c03e1bb0/zig_clang_driver.o:(GetExecutablePath(char const*, bool)) ld.lld: error: undefined symbol: llvm::sys::Process::GetEnv(llvm::StringRef) >>> referenced by zig_clang_driver.cpp:412 (src/zig_clang_driver.cpp:412) >>> /home/vexu/Documents/zig/zig/zig-cache/o/daafbdf85a0b3897a8e07cd6c03e1bb0/zig_clang_driver.o:(ZigClang_main) >>> referenced by zig_clang_driver.cpp:421 (src/zig_clang_driver.cpp:421) >>> /home/vexu/Documents/zig/zig/zig-cache/o/daafbdf85a0b3897a8e07cd6c03e1bb0/zig_clang_driver.o:(ZigClang_main) ld.lld: error: undefined symbol: llvm::sys::getDefaultTargetTriple() >>> referenced by zig_clang_driver.cpp:475 (src/zig_clang_driver.cpp:475) >>> /home/vexu/Documents/zig/zig/zig-cache/o/daafbdf85a0b3897a8e07cd6c03e1bb0/zig_clang_driver.o:(ZigClang_main) >>> referenced by zig_clang_cc1as_main.cpp:227 (src/zig_clang_cc1as_main.cpp:227) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef, clang::DiagnosticsEngine&)) ld.lld: error: undefined symbol: clang::driver::Driver::Driver(llvm::StringRef, llvm::StringRef, clang::DiagnosticsEngine&, std::__1::basic_string, std::__1::allocator>, llvm::IntrusiveRefCntPtr) >>> referenced by zig_clang_driver.cpp:475 (src/zig_clang_driver.cpp:475) >>> /home/vexu/Documents/zig/zig/zig-cache/o/daafbdf85a0b3897a8e07cd6c03e1bb0/zig_clang_driver.o:(ZigClang_main) ld.lld: error: undefined symbol: clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl>&) >>> referenced by zig_clang_driver.cpp:519 (src/zig_clang_driver.cpp:519) >>> /home/vexu/Documents/zig/zig/zig-cache/o/daafbdf85a0b3897a8e07cd6c03e1bb0/zig_clang_driver.o:(ZigClang_main) ld.lld: error: undefined symbol: llvm::Regex::sub(llvm::StringRef, llvm::StringRef, std::__1::basic_string, std::__1::allocator>*) const >>> referenced by zig_clang_driver.cpp:132 (src/zig_clang_driver.cpp:132) >>> /home/vexu/Documents/zig/zig/zig-cache/o/daafbdf85a0b3897a8e07cd6c03e1bb0/zig_clang_driver.o:(ApplyOneQAOverride(llvm::raw_ostream&, llvm::SmallVectorImpl&, llvm::StringRef, std::__1::set, std::__1::allocator>, std::__1::less, std::__1::allocator>>, std::__1::allocator, std::__1::allocator>>>&)) ld.lld: error: undefined symbol: llvm::createCFGSimplificationPass(llvm::SimplifyCFGOptions, std::__1::function) >>> referenced by LinkAllPasses.h:87 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/LinkAllPasses.h:87) >>> /home/vexu/Documents/zig/zig/zig-cache/o/231f19f36cf8f60c7ccaae3be8514422/zig_clang_cc1_main.o:((anonymous namespace)::ForcePassLinking::ForcePassLinking()) ld.lld: error: undefined symbol: llvm::createPrintModulePass(llvm::raw_ostream&, std::__1::basic_string, std::__1::allocator> const&, bool) >>> referenced by LinkAllPasses.h:197 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/LinkAllPasses.h:197) >>> /home/vexu/Documents/zig/zig/zig-cache/o/231f19f36cf8f60c7ccaae3be8514422/zig_clang_cc1_main.o:((anonymous namespace)::ForcePassLinking::ForcePassLinking()) ld.lld: error: undefined symbol: llvm::createPrintFunctionPass(llvm::raw_ostream&, std::__1::basic_string, std::__1::allocator> const&) >>> referenced by LinkAllPasses.h:198 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/LinkAllPasses.h:198) >>> /home/vexu/Documents/zig/zig/zig-cache/o/231f19f36cf8f60c7ccaae3be8514422/zig_clang_cc1_main.o:((anonymous namespace)::ForcePassLinking::ForcePassLinking()) ld.lld: error: undefined symbol: clang::CompilerInstance::CompilerInstance(std::__1::shared_ptr, clang::InMemoryModuleCache*) >>> referenced by zig_clang_cc1_main.cpp:187 (src/zig_clang_cc1_main.cpp:187) >>> /home/vexu/Documents/zig/zig/zig-cache/o/231f19f36cf8f60c7ccaae3be8514422/zig_clang_cc1_main.o:(cc1_main(llvm::ArrayRef, char const*, void*)) ld.lld: error: undefined symbol: clang::CompilerInvocation::GetResourcesPath(char const*, void*) >>> referenced by zig_clang_cc1_main.cpp:229 (src/zig_clang_cc1_main.cpp:229) >>> /home/vexu/Documents/zig/zig/zig-cache/o/231f19f36cf8f60c7ccaae3be8514422/zig_clang_cc1_main.o:(cc1_main(llvm::ArrayRef, char const*, void*)) ld.lld: error: undefined symbol: llvm::TargetRegistry::lookupTarget(std::__1::basic_string, std::__1::allocator> const&, std::__1::basic_string, std::__1::allocator>&) >>> referenced by zig_clang_cc1_main.cpp:171 (src/zig_clang_cc1_main.cpp:171) >>> /home/vexu/Documents/zig/zig/zig-cache/o/231f19f36cf8f60c7ccaae3be8514422/zig_clang_cc1_main.o:(PrintSupportedCPUs(std::__1::basic_string, std::__1::allocator>)) >>> referenced by zig_clang_cc1as_main.cpp:357 (src/zig_clang_cc1as_main.cpp:357) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:(ExecuteAssemblerImpl((anonymous namespace)::AssemblerInvocation&, clang::DiagnosticsEngine&)) ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::rfind(char const*, unsigned long, unsigned long) const >>> referenced by CodeGenModule.cpp >>> CodeGenModule.cpp.o:(clang::CodeGen::CodeGenModule::CodeGenModule(clang::ASTContext&, llvm::IntrusiveRefCntPtr, clang::HeaderSearchOptions const&, clang::PreprocessorOptions const&, clang::CodeGenOptions const&, llvm::Module&, clang::DiagnosticsEngine&, clang::CoverageSourceInfo*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCodeGen.a ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::find_first_not_of(char const*, unsigned long, unsigned long) const >>> referenced by TargetInfo.cpp >>> TargetInfo.cpp.o:((anonymous namespace)::X86_32TargetCodeGenInfo::addReturnRegisterOutputs(clang::CodeGen::CodeGenFunction&, clang::CodeGen::LValue, std::__cxx11::basic_string, std::allocator>&, std::vector>&, std::vector>&, std::vector>&, std::__cxx11::basic_string, std::allocator>&, unsigned int) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCodeGen.a ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::find_first_not_of(char, unsigned long) const >>> referenced by TargetInfo.cpp >>> TargetInfo.cpp.o:((anonymous namespace)::X86_32TargetCodeGenInfo::addReturnRegisterOutputs(clang::CodeGen::CodeGenFunction&, clang::CodeGen::LValue, std::__cxx11::basic_string, std::allocator>&, std::vector>&, std::vector>&, std::vector>&, std::__cxx11::basic_string, std::allocator>&, unsigned int) const) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCodeGen.a ld.lld: error: undefined symbol: std::__cxx11::basic_string, std::allocator>::replace(unsigned long, unsigned long, char const*, unsigned long) >>> referenced by CGObjCGNU.cpp >>> CGObjCGNU.cpp.o:((anonymous namespace)::CGObjCGNU::GenerateMessageSendSuper(clang::CodeGen::CodeGenFunction&, clang::CodeGen::ReturnValueSlot, clang::QualType, clang::Selector, clang::ObjCInterfaceDecl const*, bool, llvm::Value*, bool, clang::CodeGen::CallArgList const&, clang::ObjCMethodDecl const*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCodeGen.a >>> referenced by CGObjCGNU.cpp >>> CGObjCGNU.cpp.o:((anonymous namespace)::CGObjCGNU::GenerateMessageSendSuper(clang::CodeGen::CodeGenFunction&, clang::CodeGen::ReturnValueSlot, clang::QualType, clang::Selector, clang::ObjCInterfaceDecl const*, bool, llvm::Value*, bool, clang::CodeGen::CallArgList const&, clang::ObjCMethodDecl const*)) in archive /home/vexu/Documents/zig/zig-bootstrap/out/host/lib/libclangCodeGen.a ld.lld: error: undefined symbol: llvm::opt::Arg::getAsString(llvm::opt::ArgList const&) const >>> referenced by zig_clang_cc1as_main.cpp:205 (src/zig_clang_cc1as_main.cpp:205) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef, clang::DiagnosticsEngine&)) >>> referenced by zig_clang_cc1as_main.cpp:271 (src/zig_clang_cc1as_main.cpp:271) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef, clang::DiagnosticsEngine&)) >>> referenced by zig_clang_cc1as_main.cpp:288 (src/zig_clang_cc1as_main.cpp:288) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef, clang::DiagnosticsEngine&)) ld.lld: error: undefined symbol: llvm::opt::OptTable::findNearest(llvm::StringRef, std::__1::basic_string, std::__1::allocator>&, unsigned int, unsigned int, unsigned int) const >>> referenced by zig_clang_cc1as_main.cpp:207 (src/zig_clang_cc1as_main.cpp:207) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef, clang::DiagnosticsEngine&)) ld.lld: error: undefined symbol: llvm::opt::ArgList::getAllArgValues(llvm::opt::OptSpecifier) const >>> referenced by zig_clang_cc1as_main.cpp:223 (src/zig_clang_cc1as_main.cpp:223) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef, clang::DiagnosticsEngine&)) >>> referenced by zig_clang_cc1as_main.cpp:230 (src/zig_clang_cc1as_main.cpp:230) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef, clang::DiagnosticsEngine&)) >>> referenced by zig_clang_cc1as_main.cpp:257 (src/zig_clang_cc1as_main.cpp:257) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef, clang::DiagnosticsEngine&)) >>> referenced 2 more times ld.lld: error: undefined symbol: llvm::MCContext::addDebugPrefixMapEntry(std::__1::basic_string, std::__1::allocator> const&, std::__1::basic_string, std::__1::allocator> const&) >>> referenced by zig_clang_cc1as_main.cpp:452 (src/zig_clang_cc1as_main.cpp:452) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:(ExecuteAssemblerImpl((anonymous namespace)::AssemblerInvocation&, clang::DiagnosticsEngine&)) ld.lld: error: undefined symbol: llvm::sys::RemoveFileOnSignal(llvm::StringRef, std::__1::basic_string, std::__1::allocator>*) >>> referenced by zig_clang_cc1as_main.cpp:340 (src/zig_clang_cc1as_main.cpp:340) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:(getOutputStream(llvm::StringRef, clang::DiagnosticsEngine&, bool)) ld.lld: error: undefined symbol: llvm::createAsmStreamer(llvm::MCContext&, std::__1::unique_ptr>, bool, bool, llvm::MCInstPrinter*, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, bool) >>> referenced by TargetRegistry.h:628 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/MC/TargetRegistry.h:628) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:(llvm::Target::createAsmStreamer(llvm::MCContext&, std::__1::unique_ptr>, bool, bool, llvm::MCInstPrinter*, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, bool) const) ld.lld: error: undefined symbol: llvm::createMachOStreamer(llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, bool, bool, bool) >>> referenced by TargetRegistry.h:568 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/MC/TargetRegistry.h:568) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:(llvm::Target::createMCObjectStreamer(llvm::Triple const&, llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, llvm::MCSubtargetInfo const&, bool, bool, bool) const) ld.lld: error: undefined symbol: llvm::createELFStreamer(llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, bool) >>> referenced by TargetRegistry.h:577 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/MC/TargetRegistry.h:577) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:(llvm::Target::createMCObjectStreamer(llvm::Triple const&, llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, llvm::MCSubtargetInfo const&, bool, bool, bool) const) ld.lld: error: undefined symbol: llvm::createWasmStreamer(llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, bool) >>> referenced by TargetRegistry.h:585 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/MC/TargetRegistry.h:585) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:(llvm::Target::createMCObjectStreamer(llvm::Triple const&, llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, llvm::MCSubtargetInfo const&, bool, bool, bool) const) ld.lld: error: undefined symbol: llvm::createXCOFFStreamer(llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, bool) >>> referenced by TargetRegistry.h:595 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/MC/TargetRegistry.h:595) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:(llvm::Target::createMCObjectStreamer(llvm::Triple const&, llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, llvm::MCSubtargetInfo const&, bool, bool, bool) const) ld.lld: error: undefined symbol: llvm::createSPIRVStreamer(llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, bool) >>> referenced by TargetRegistry.h:603 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/MC/TargetRegistry.h:603) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:(llvm::Target::createMCObjectStreamer(llvm::Triple const&, llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, llvm::MCSubtargetInfo const&, bool, bool, bool) const) ld.lld: error: undefined symbol: llvm::createDXContainerStreamer(llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, bool) >>> referenced by TargetRegistry.h:611 (/home/vexu/Documents/zig/zig-bootstrap/out/host/include/llvm/MC/TargetRegistry.h:611) >>> /home/vexu/Documents/zig/zig/zig-cache/o/6d4a949da8b3fca961afefd8f662b5d5/zig_clang_cc1as_main.o:(llvm::Target::createMCObjectStreamer(llvm::Triple const&, llvm::MCContext&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, std::__1::unique_ptr>&&, llvm::MCSubtargetInfo const&, bool, bool, bool) const) error: FileNotFound lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/os.zig:1689:23: 0x355ba8 in openatZ (build) .NOENT => return error.FileNotFound, ^ lib/std/fs.zig:1151:13: 0x32cd16 in openFileZ (build) try os.openatZ(self.fd, sub_path, os_flags, 0); ^ lib/std/fs.zig:1078:9: 0x2ed7b8 in openFile (build) return self.openFileZ(&path_c, flags); ^ lib/std/fs.zig:2508:24: 0x39c080 in updateFile (build) var src_file = try source_dir.openFile(source_path, .{}); ^ lib/std/build.zig:1089:29: 0x3a4767 in updateFile (build) const prev_status = try fs.Dir.updateFile(cwd, source_path, cwd, dest_path, .{}); ^ lib/std/build.zig:3407:9: 0x3a4ca4 in make (build) try builder.updateFile(self.artifact.getOutputSource().getPath(builder), full_dest_path); ^ lib/std/build.zig:3639:9: 0x2ff7a7 in make (build) try self.makeFn(self); ^ lib/std/build.zig:509:9: 0x2da674 in makeOneStep (build) try s.make(); ^ lib/std/build.zig:503:17: 0x2da5e2 in makeOneStep (build) return err; ^ lib/std/build.zig:464:13: 0x2da342 in make (build) try self.makeOneStep(s); ^ lib/build_runner.zig:223:21: 0x2dd404 in main (build) else => return err, ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ lib/std/build.zig:2110:13: 0x3999fe in runPkgConfig (build) return error.PackageNotFound; ^ error: the following build command failed with exit code 1: /home/vexu/Documents/zig/zig/zig-cache/o/80a421007b4c24d88d9440bbc8dc8472/build /home/vexu/Documents/zig/zig/zig /home/vexu/Documents/zig/zig /home/vexu/Documents/zig/zig/zig-cache /home/vexu/.cache/zig -Dstatic-llvm --search-prefix /home/vexu/Documents/zig/zig-bootstrap/out/host --zig-lib-dir lib -Dskip-install-lib-files ```
andrewrk commented 2 years ago

Looks like mismatch of C++ compilers- LLVM compiled with g++, Zig compiled with clang++. Welcome to the wonderful world of C++ having an unstable ABI.

Instead of --search-prefix /home/vexu/Documents/zig/zig-bootstrap/out/host you should use --search-prefix /home/vexu/Documents/zig/zig-bootstrap/out/x86_64-linux-musl-baseline (path may need to be slightly adjusted depending on your arguments to the zig-bootstrap build script). This will provide LLVM libraries that were built with zig c++ rather than with system c++.

Vexu commented 2 years ago

That's what I suspected but then I looked at the .comment sections of the wrong binaries. I'll try again once I manage to build LLVM and then close when it succeeds.