building lldb via command line on osx: error: "LONG_BIT definition

i’m trying to build lldb w/o xcode on osx without using xcode, following linux’s instructions.

it fails at this step:

ninja lldb

In file included from /Library/Frameworks/Python.framework/Headers/Python.h:55:
/Library/Frameworks/Python.framework/Headers/pyport.h:616:2: error: “LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).”
#error “LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).”

It does work using xcode though (but needs a bit updating as docs only mention xcode 4.x not xcode 5.x)

Furthermore I can’t seem to be able to build lldb-gdbserver on xcode : gives error Python.h file not found.

Hi Timothee,

On OSX I’ve been able to build outside of Xcode with the configure/make style of build, fwiw.

Re: lldb-gdbserver: this isn’t functional yet, and currently the bring up is happening on Linux, so you are definitely not missing anything there yet. The plan IIRC for OS X is to wait for lldb-gdbserver parity with debugserver functionality before adding the OS X support. Right now you want to use debugserver on OS X.

Just use Xcode from the command line:

cd lldb
xcodebuild -configuration Debug

Then:

cd build/Debug

everything will be in that directory. If you build with make, you won't end up with a LLDB.framework, with Xcode build you will.

Greg