[lldb-dev] lldb-server link failure with shared library configuration
Peeter Joot via lldb-dev
lldb-dev at lists.llvm.org
Mon Aug 28 09:42:34 PDT 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170828/80d56923/attachment.html>
More information about the lldb-dev
mailing list