[lldb-dev] Build failure on OS X

Jean-Daniel Dupas devlists at shadowlab.org
Wed Nov 20 00:42:13 PST 2013


Le 19 nov. 2013 à 18:14, Clayden, Jonathan <j.clayden at ucl.ac.uk> a écrit :

> Dear all,
> 
> I'm trying to build LLDB, and specifically the command line program, from the SVN trunk on OS X (10.9 + Xcode 5.0.2). The build instructions seem to suggest that this should be straightforward, but after selecting the "lldb-tool" scheme and starting the build as described, after a while I get a build failure with "'Python/Python.h' file not found', referring to the source file lldb-python.h.
> 
> I have installed Swig (via Homebrew), so as far as I know all dependencies should be met.
> 
> Apologies in advance if I've missed something obvious, but it's not clear to me how to proceed. Any help would be appreciated.
> 
> Regards,
> Jon


I didn't try yet to build it on Maverick, but do you have installed "command line tools" with Xcode ?
This kind of error appears when some tools try to use the default search path for header instead of using the SDK distributed with Xcode. 
The usual workaround is to install "command line tools" which provide these headers.

You can force installation of the "command line tools" by running the following in the terminal, and then choosing install in the dialog that appears.

xcode-select --install

Of course, a better solution would be to investigate and figure out what part of the build system relies on this header and fix it to properly use the Xcode SDK.

-- Jean-Daniel








More information about the lldb-dev mailing list