[lldb-dev] LLDB problem about building with Python

Pavel Labath via lldb-dev lldb-dev at lists.llvm.org
Thu Mar 12 05:04:57 PDT 2020


On 12/03/2020 10:50, Rui Hong via lldb-dev wrote:
> 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:
> /export/pfs/home/lte_dsp/hongrui/DEBUG/jihai_lldb/jihai_lldb/lldb/scripts/Python/modules/readline/libedit_INCLUDE_DIRS
>    used as include directory in directory
> /export/pfs/home/lte_dsp/hongrui/DEBUG/jihai_lldb/jihai_lldb/lldb/scripts/Python/modules/readline
> libedit_LIBRARIES (ADVANCED)
>     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

Hi Rui,

LLDB_ENABLE_LIBEDIT was introduced only recently (you're using the
current documentation but applying it to an old lldb) . Back in 7.0,
this was called LLDB_DISABLE_LIBEDIT (with the inverted meaning of values).

pl


More information about the lldb-dev mailing list