[lldb-dev] Building lldb on OS X

Keno Fischer kfischer at college.harvard.edu
Wed Jul 23 09:11:37 PDT 2014


No, I'm doing a Makefile build. LLVM/Clang/LLDB are all at latest trunk.


On Wed, Jul 23, 2014 at 9:06 AM, Todd Fiala <tfiala at google.com> wrote:

> Hey Keno!
>
> Are you doing an Xcode build?
>
> If so, you may be suffering from what I did when I first started using
> Xcode builds.  Xcode puts the llvm and llvm/tools/clang directory
> underneath the lldb directory.  It does a sync the first time for you, but
> not after that.  So, you may be dealing with an llvm and clang tree that
> are out of date with respect to your version of llvm.  If that's the case,
> just do this:
>
> cd /your/lldb/path
>
> cd llvm
> svn update
>
> cd tools/clang
> svn update
>
> # Put you back in the lldb dir
> cd ../../..
>
> Then redo your build of lldb.  It will run the auto llvm/clang build step
> (somewhat long), then get back to building lldb.
>
> Let me know if that solves your issue!
>
> -Todd
>
>
> On Wed, Jul 23, 2014 at 8:43 AM, Keno Fischer <
> kfischer at college.harvard.edu> wrote:
>
>> While building on OS X I have been sent reports of the following (I
>> did see it myself at one point as well, but worked around it). I tried
>> including SafeMachO.h but that caused other problems in the llvm
>> headers. What's the proper way to get around this other than `#define
>> CPU_SUBTYPE_X86_64_H 8`?
>>
>> lldb/source/Host/common/Host.cpp:371:68: error: use of undeclared
>> identifier 'CPU_SUBTYPE_X86_64_H'
>>                 if (cpusubtype == CPU_SUBTYPE_486 || cpusubtype ==
>> CPU_SUBTYPE_X86_64_H)
>>
>> Keno
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>>
>
>
>
> --
>  Todd Fiala | Software Engineer |  tfiala at google.com |  650-943-3180
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140723/be0f5785/attachment.html>


More information about the lldb-dev mailing list