Building LLDB on Linux and FreeBSD
+Building LLDB on Linux, FreeBSD and NetBSD
This document describes the steps needed to compile LLDB on most Linux systems, and FreeBSD.
+This document describes the steps needed to compile LLDB on most Linux systems, FreeBSD and NetBSD.
Preliminaries
@@ -192,6 +194,10 @@ or the GCC port or package.+ On NetBSD the base system GCC and libstdc++ are used to build LLDB, + Clang/LLVM and libc++ should also work. +
+
In addition to any dependencies required by LLVM and Clang, LLDB needs a few
development packages that may also need to be installed depending on your
system. The current list of dependencies are:
@@ -209,6 +215,8 @@
> sudo apt-get build-dep lldb-3.3 # or lldb-3.4
On FreeBSD one might run:
> pkg install swig python
+ On NetBSD one might run:
+> pkgin install swig python27 cmake ninja-build
If you wish to build the optional reference documentation, additional dependencies are required:
- Graphviz (for the 'dot' tool).
@@ -342,11 +350,9 @@
Additional Notes
- LLDB has a Python scripting capability and supplies its own Python module named lldb. - If a script is run inside the command line lldb application, the Python module - is made available automatically. However, if a script is to be run by a Python interpreter - outside the command line application, the PYTHONPATH environment variable can be used - to let the Python interpreter find the lldb module. + Current stable NetBSD release doesn't ship with libpanel(3), therefore it's required to disable curses(3) support with + the -DLLDB_DISABLE_CURSES:BOOL=TRUE option. To make sure check if /usr/include/panel.h exists in your + system.
The correct path can be obtained by invoking the command line lldb tool with the -P flag:
> export PYTHONPATH=`$llvm/build/Debug+Asserts/bin/lldb -P`
Index: www/download.html =================================================================== --- www/download.html +++ www/download.html @@ -25,6 +25,11 @@ - Debian and Ubuntu: llvm.org/apt
The pkgsrc framework offers a package with recent LLDB in the wip repository:
+
+ cd pkgsrc/wip/lldb-git
+ make install clean
+