Bug#1000173: lldb-11: lldb --python-path prints the wrong path

Lawrence D'Anna larry at elder-gods.org
Thu Nov 18 23:14:15 GMT 2021


Package: lldb-11
Version: 1:11.0.1-2
Severity: normal
X-Debbugs-Cc: larry at elder-gods.org

Dear Maintainer,

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-11/lib/python3/dist-packages/

This is because debian packaging scripts built it with

-DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-11

So lldb expects that liblldb will be installed at /usr/lib/llvm-11/lib/liblldb.so.1
but this has been moved to /lib/x86_64-linux-gnu/liblldb-11.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



-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 5.10.47-linuxkit (SMP w/5 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_RANDSTRUCT
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages lldb-11 depends on:
ii  libc6            2.31-13+deb11u2
ii  libclang-cpp11   1:11.0.1-2
ii  libedit2         3.1-20191231-2+b1
ii  libgcc-s1        10.2.1-6
ii  liblldb-11       1:11.0.1-2
ii  libllvm11        1:11.0.1-2
ii  libncurses6      6.2+20201114-2
ii  libstdc++6       10.2.1-6
ii  libtinfo6        6.2+20201114-2
ii  llvm-11-dev      1:11.0.1-2
ii  python3-lldb-11  1:11.0.1-2

lldb-11 recommends no packages.

lldb-11 suggests no packages.

-- no debconf information



More information about the Pkg-llvm-team mailing list