Public bug reported:
lldb --python-path prints the wrong path. It prints /usr/lib/lib/python3/dist-packages, but it should be /usr/lib/python3/dist-package or perhaps /usr/lib/llvm-13/lib/python3/dist-packages/ This is because debian packaging scripts built it with -DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-13 So lldb expects that liblldb will be installed at /usr/lib/llvm-13/lib/liblldb.so.1 but this has been moved to /lib/x86_64-linux-gnu/liblldb-13.so.1 and replaced with a symlink. The way lldb finds its python path is essentially $(dirname $(dirname $path_to_liblldb))/lib/python3/dist-packages see: ScriptInterpreterPython::ComputePythonDir, ScriptInterpreterPython::GetPythonDir https://github.com/llvm/llvm-project/blob/7c5ecc8b7e1bcd1b02eafeba9bbf3d5bc50d72c5/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp#L394 ProblemType: Bug DistroRelease: Ubuntu 21.10 Package: lldb-13 1:13.0.0-2 ProcVersionSignature: Ubuntu 5.13.0-21.21-generic 5.13.18 Uname: Linux 5.13.0-21-generic x86_64 ApportVersion: 2.20.11-0ubuntu71 Architecture: amd64 CasperMD5CheckResult: unknown Date: Thu Nov 18 14:43:08 2021 InstallationDate: Installed on 2017-04-13 (1680 days ago) InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2) SourcePackage: llvm-toolchain-13 UpgradeStatus: Upgraded to impish on 2021-11-09 (9 days ago) ** Affects: llvm-toolchain-13 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug impish -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1951478 Title: lldb --python-path prints the worng path To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-13/+bug/1951478/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs