[lldb] Missing install dependency from lldb-python-scripts to lldbPluginScriptInterpreterPython
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
We are building lldb using LLDB_ENABLE_DYNAMIC_SCRIPTINTERPRETERS, and the following LLVM_DISTRIBUTION_COMPONENTS (non-lldb stuff stripped out):
```
[...]
liblldb
lld
lldb
lldb-argdumper
lldb-dap
lldb-instr
lldb-mcp
lldb-python-scripts
lldb-server
[...]
```
This installs a broken symlink `_lldb.abi3.so`: the target of the symlink, liblldbPluginScriptInterpreterPython.so, is missing from the install directory.
I'm not completely sure I understand how LLVM_DISTRIBUTION_COMPONENTS works. But I think there's a missing dependency from the lldb-python-scripts install target to liblldbPluginScriptInterpreterPython.so . (There's `add_dependencies(${swig_target} lldbPluginScriptInterpreterPython)` in lldb/bindings/python/CMakeLists.txt, but I think that just makes sure it's built, not installed.)
Contributor guide
Research direction
Start in lldb/bindings/python/CMakeLists.txt and trace the lldb-python-scripts install target alongside its existing dependency on lldbPluginScriptInterpreterPython. Check how LLVM_DISTRIBUTION_COMPONENTS handles the target and whether the plugin is included in the install graph. Done means the distribution installs liblldbPluginScriptInterpreterPython.so and _lldb.abi3.so no longer points to a missing target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, python
- Domain
- build-system, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100