I'm trying to build lldb on FreeBSD (stable/9) using the system's clang 3.2 and libc++, and have run into a couple of small nits along the way. This is at llvm svn r183025.
1) Missing header for free() def'n (perhaps it leaks in from string.h on other platforms). On a quick glance I'm not sure string.h is even needed. Index: source/Core/Mangled.cpp =================================================================== --- source/Core/Mangled.cpp (revision 183025) +++ source/Core/Mangled.cpp (working copy) @@ -30,6 +30,7 @@ #include "lldb/Core/Timer.h" #include <ctype.h> #include <string.h> +#include <cstdlib> using namespace lldb_private; 2) Missing header directories. Index: source/Plugins/Process/FreeBSD/CMakeLists.txt =================================================================== --- source/Plugins/Process/FreeBSD/CMakeLists.txt (revision 183025) +++ source/Plugins/Process/FreeBSD/CMakeLists.txt (working copy) @@ -1,5 +1,8 @@ set(LLVM_NO_RTTI 1) +include_directories(.) +include_directories(../POSIX) + add_lldb_library(lldbPluginProcessFreeBSD ProcessFreeBSD.cpp ProcessMonitor.cpp Index: source/CMakeLists.txt =================================================================== --- source/CMakeLists.txt (revision 183025) +++ source/CMakeLists.txt (working copy) @@ -6,7 +6,14 @@ Plugins/Process/POSIX ) endif () +if ( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" ) +include_directories( + Plugins/Process/Linux + Plugins/Process/POSIX + ) +endif () + add_subdirectory(API) add_subdirectory(Breakpoint) add_subdirectory(Commands) _______________________________________________ lldb-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
