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::MemoryManager::anchor()
I've worked around this by changing the link rules for lldb-server like so:
diff --git a/tools/lldb-server/CMakeLists.txt b/tools/lldb-server/CMakeLists.txt
index f8c57cb..35311a8 100644
--- a/tools/lldb-server/CMakeLists.txt
+++ b/tools/lldb-server/CMakeLists.txt
@@ -82,6 +85,7 @@ add_lldb_tool(lldb-server INCLUDE_IN_FRAMEWORK
lldbHost
lldbInitialization
lldbInterpreter
+ LLVMRuntimeDyld
${LLDB_PLUGINS}
${LLDB_SYSTEM_LIBS}
Is this a known issue, and what would the proper fix for this look like?
--
Peeter
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev