[lldb-dev] LLDB problem about building with Python

Rui Hong via lldb-dev lldb-dev at lists.llvm.org
Thu Mar 12 02:50:00 PDT 2020

Hi LLDB devs,

I'm working on porting LLDB to my own architecture.
I choose to use the target-definition-file(python) to let LLDB support my architecture based on my situation(already have a workable GDB-stub and the target is an embedded DSP). The usage:
 (lldb) settings set plugin.process.gdb-remote.target-definition-file /path/to/xxxx_target_definition.py
 (lldb) gdb-remote xxxx

So I think I definitely need to rebuild LLDB with python support(cmake with -DLLDB_ENABLE_PYTHON=1 according to https://lldb.llvm.org/resources/build.html). But problem comes:
getting this error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
   used as include directory in directory /export/pfs/home/lte_dsp/hongrui/DEBUG/jihai_lldb/jihai_lldb/lldb/scripts/Python/modules/readline
    linked by target "readline" in directory /export/pfs/home/lte_dsp/hongrui/DEBUG/jihai_lldb/jihai_lldb/lldb/scripts/Python/modules/readline

This problem persists even after I add -DLLDB_ENABLE_LIBEDIT=0
My cmake version is 3.5.2, the LLDB/LLVM version I choose to work with is 7.0.1

My complete command is:
make -j 8

Why the error persists even with -DLLDB_ENABLE_LIBEDIT=0? Does this mean that LLDB python support also need libedit? And what should I do to make LLDB_build_with_python correct(I just want to use the target-definition-file)?

Kind regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20200312/a31b0622/attachment-0001.html>

More information about the lldb-dev mailing list