I've built lldb in tree on Linux (RHEL 7.3) with a shared library configuration:
CC=/usr/bin/clang CXX=/usr/bin/clang++ \
cmake -G Ninja ../llvm \
-DBUILD_SHARED_LIBS=true \
...
The lldb-server binary does not link for me, as I get unresolved symbols
including:
llvm::RuntimeDyld::MemoryManag
Hi Greg,
IRExecutionUnit.cpp looks like the origin of at least some of the undefined
symbols:
.../llvm/include/llvm/ExecutionEngine/RTDyldMemoryManager.h:61: undefined
reference to `vtable for llvm::RTDyldMemoryManager'
.../llvm/include/llvm/ExecutionEngine/JITSymbol.h:223: undefined reference
Hi Tamas,
I was able to use your suggestion as follows:
diff --git a/source/Expression/CMakeLists.txt b/source/Expression/CMakeLists.txt
index 7d9643a..b53b095 100644
--- a/source/Expression/CMakeLists.txt
+++ b/source/Expression/CMakeLists.txt
@@ -2,6 +2,12 @@ if(NOT LLDB_BUILT_STANDALONE)
Hi Tamas,
It looks like lldb-server only fails if I build with a Debug configuration,
which I didn't realize until now. In Release configuration, I don't need any
changes to CMakefiles and lldb-server links without error. My full build
configuration in debug mode was:
mkdir lldb50.1708110153