nikic wrote:

I'm seeing linker errors like this in a dylib build:
```

ld.lld: error: undefined symbol: llvm::detail::TakeError(llvm::Error)
>>> referenced by Error.h:23 
>>> (/builddir/build/BUILD/llvm-23.0.0_pre20260303.g52f32d780fa2da-build/llvm-project-52f32d780fa2da1f5e54e80c91a0e79379e141d0/llvm/include/llvm/Testing/Support/Error.h:23)
>>>               
>>> tools/lldb/unittests/Target/CMakeFiles/TargetTests.dir/ScratchTypeSystemTest.cpp.o:(TestTypeSystemMap_GetScratchTypeSystemForLanguage_Test::TestBody())
>>> referenced by Error.h:23 
>>> (/builddir/build/BUILD/llvm-23.0.0_pre20260303.g52f32d780fa2da-build/llvm-project-52f32d780fa2da1f5e54e80c91a0e79379e141d0/llvm/include/llvm/Testing/Support/Error.h:23)
>>>               
>>> tools/lldb/unittests/Target/CMakeFiles/TargetTests.dir/ScratchTypeSystemTest.cpp.o:(TestTypeSystemMap_GetScratchTypeSystemForLanguage_Test::TestBody())
>>> referenced by Error.h:23 
>>> (/builddir/build/BUILD/llvm-23.0.0_pre20260303.g52f32d780fa2da-build/llvm-project-52f32d780fa2da1f5e54e80c91a0e79379e141d0/llvm/include/llvm/Testing/Support/Error.h:23)
>>>               
>>> tools/lldb/unittests/Target/CMakeFiles/TargetTests.dir/ScratchTypeSystemTest.cpp.o:(TestTypeSystemMap_GetScratchTypeSystemForLanguage_Test::TestBody())
```

Not entirely sure, but I think this is because LLVMTestingSupport needs to be 
linked as a normal library rather than LLVM component, because it's not part of 
the dylib.

https://github.com/llvm/llvm-project/pull/183771
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to