amosbird / ldb_toolchain_gen

MIT License
64 stars 21 forks source link

lldb ModuleNotFoundError: No module named 'lldb' #25

Open XLPE opened 1 year ago

XLPE commented 1 year ago

rt

amosbird commented 1 year ago

Debugs like lldb rely on a working Python env, which is currently out of the scope of ldb toolchain.

 ❯ ~/toolchain/bin/lldb
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f99ac4277c0 (most recent call first):
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /tmp/gentoo/home/amos/toolchain/bin/lldb
 #0 0x00007f99a0e17b96 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libLLVM-16.so.1+0xfbeb96)
 #1 0x00007f99a0e15d20 llvm::sys::RunSignalHandlers() (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libLLVM-16.so.1+0xfbcd20)
 #2 0x00007f99a0e18370 (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libLLVM-16.so.1+0xfbf370)
 #3 0x00007f99ac000980 __restore_rt (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libpthread.so.0+0x12980)
 #4 0x00007f999f029e87 raise (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libc.so.6+0x3ee87)
 #5 0x00007f999f02b7f1 abort (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libc.so.6+0x407f1)
 #6 0x00007f999e8672ea Py_FatalError (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libpython3.6m.so.1.0+0x1532ea)
 #7 0x00007f999e8678ab (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libpython3.6m.so.1.0+0x1538ab)
 #8 0x00007f999e873319 _Py_InitializeEx_Private (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libpython3.6m.so.1.0+0x15f319)
 #9 0x00007f99ab9536f2 (/home/amos/gentoo/home/amos/toolchain/bin/../lib/liblldb-16.so.1+0x8d66f2)
#10 0x00007f99abffd907 __pthread_once_slow (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libpthread.so.0+0xf907)
#11 0x00007f99ab942062 (/home/amos/gentoo/home/amos/toolchain/bin/../lib/liblldb-16.so.1+0x8c5062)
#12 0x00007f99ab362b71 (/home/amos/gentoo/home/amos/toolchain/bin/../lib/liblldb-16.so.1+0x2e5b71)
#13 0x00007f99ab537c4b (/home/amos/gentoo/home/amos/toolchain/bin/../lib/liblldb-16.so.1+0x4bac4b)
#14 0x00007f99ab276601 lldb::SBDebugger::InitializeWithErrorHandling() (/home/amos/gentoo/home/amos/toolchain/bin/../lib/liblldb-16.so.1+0x1f9601)
#15 0x000055cc502d421b _init (/tmp/gentoo/home/amos/toolchain/bin/lldb+0x921b)
#16 0x00007f999f00cc87 __libc_start_main (/home/amos/gentoo/home/amos/toolchain/bin/../lib/libc.so.6+0x21c87)
#17 0x000055cc502d085a _init (/tmp/gentoo/home/amos/toolchain/bin/lldb+0x585a)
fish: Job 1, '~/toolchain/bin/lldb' terminated by signal SIGABRT (Abort)
XLPE commented 1 year ago

I have installed python but don't know how to install the lldb module