[lldb-dev] Heads up: LLDB is broken with LLVM at ToT

Zachary Turner zturner at google.com
Tue Dec 9 13:56:05 PST 2014


I'm not sure what the status of building LLDB with CMake is, but the normal
way apple people build LLDB is to structure the directory like this:

lldb
--llvm
----tools
------clang

Then open the xcode workspace and build the lldb-tool target.

I'll sync to ToT again though so that I can get you a dump of the compiler
errors I'm seeing.

On Tue Dec 09 2014 at 1:52:40 PM Duncan P. N. Exon Smith <
dexonsmith at apple.com> wrote:

> I'm trying to build lldb now, but it's hung trying to build LLVM and
> clang... but I already built these?  I don't really understand.
>
> Is there any way to make lldb point to my LLVM checkout?  I just want to
> see the compiler errors so I can fix them :(.
>
> Alternatively, if some can email me a compile log with all the errors
> (can you do a `make -k` or something?) I can send you a patch... this is
> mechanical to update, but I need the compiler to tell me what's wrong.
>
> I expect the fixes to all be along these lines:
>
>  - Value *Ops[] => Metadata *Ops[]
>
>  - cast<ConstantInt>(N->getOperand(0)) =>
>    mdconst::extract<ConstantInt>(N->getOperand(0))
>
>  - Value *Op = ConstantInt::get(...) =>
>    Metadata *Op = ConstantAsMetadata::get(ConstantInt::get(...))
>
> Sorry for the breakage :(.
>
> > On 2014 Dec 9, at 13:41, Zachary Turner <zturner at google.com> wrote:
> >
> > If you sync llvm past git revision db7b69e3a634c5fdff0eceeee2a41ee49c3270a2
> (svn r223802), your LLDB build will be broken.
> >
> > I was able to fix one of the errors, but this isn't really my area of
> expertise, so I stopped when I realized I didn't know what I was doing.
> >
> > Just a warning not to sync LLVM until this is fixed.  I've CC'ed Sean
> and Duncan as they are probably the best people to fix this, but if anyone
> else knows how to fix it, feel free.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20141209/7ddf5029/attachment.html>


More information about the lldb-dev mailing list