<div><span style="line-height:1.5">Here's the 3 errors.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">..\..\tools\lldb\source\Expression\IRForTarget.cpp(413) : error C2678: binary '!=' : no operator found which takes a left-hand operand of type 'const llvm::MDOperand' (or there is no acceptable conversion)</span><br></div><div>        d:\src\llvm\include\llvm/ADT/APSInt.h(291): could be 'bool llvm::operator !=(int64_t,const llvm::APSInt &)'</div><div>        d:\src\llvm\include\llvm/ADT/APInt.h(1724): or       'bool llvm::operator !=(uint64_t,const llvm::APInt &)'</div><div>        d:\src\llvm\include\llvm/ADT/StringRef.h(527): or       'bool llvm::operator !=(llvm::StringRef,llvm::StringRef)'</div><div>        while trying to match the argument list '(const llvm::MDOperand, const llvm::GlobalValue *)'</div><div><br></div><div><br></div><div><br></div><div>..\..\tools\lldb\source\Expression\IRForTarget.cpp(647) : error C2664: 'llvm::MDNode *llvm::MDNode::get(llvm::LLVMContext &,llvm::ArrayRef<llvm::Metadata *>)' : cannot convert argument 2 from 'llvm::ArrayRef<llvm::Value *>' to 'llvm::ArrayRef<llvm::Metadata *>'</div><div>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div><div><br></div><div><br></div><div>..\..\tools\lldb\source\Expression\IRForTarget.cpp(1254) : error C2664: 'llvm::MDNode *llvm::MDNode::get(llvm::LLVMContext &,llvm::ArrayRef<llvm::Metadata *>)' : cannot convert argument 2 from 'llvm::ArrayRef<llvm::Value *>' to 'llvm::ArrayRef<llvm::Metadata *>'</div><div>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div><div><br></div><br><div class="gmail_quote">On Tue Dec 09 2014 at 1:56:03 PM Zachary Turner <<a href="mailto:zturner@google.com">zturner@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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:<br><br><div>lldb</div><div>--llvm</div><div>----tools</div><div>------clang</div><div><br></div><div>Then open the xcode workspace and build the lldb-tool target.</div><div><br></div><div>I'll sync to ToT again though so that I can get you a dump of the compiler errors I'm seeing.</div><br><div class="gmail_quote">On Tue Dec 09 2014 at 1:52:40 PM Duncan P. N. Exon Smith <<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to build lldb now, but it's hung trying to build LLVM and<br>
clang... but I already built these?  I don't really understand.<br>
<br>
Is there any way to make lldb point to my LLVM checkout?  I just want to<br>
see the compiler errors so I can fix them :(.<br>
<br>
Alternatively, if some can email me a compile log with all the errors<br>
(can you do a `make -k` or something?) I can send you a patch... this is<br>
mechanical to update, but I need the compiler to tell me what's wrong.<br>
<br>
I expect the fixes to all be along these lines:<br>
<br>
 - Value *Ops[] => Metadata *Ops[]<br>
<br>
 - cast<ConstantInt>(N-><u></u>getOperan<u></u>d(0)) =><br>
   mdconst::extract<ConstantInt><u></u>(<u></u>N->getOperand(0))<br>
<br>
 - Value *Op = ConstantInt::get(...) =><br>
   Metadata *Op = ConstantAsMetadata::get(<u></u>Consta<u></u>ntInt::get(...))<br>
<br>
Sorry for the breakage :(.<br>
<br>
> On 2014 Dec 9, at 13:41, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:<br>
><br>
> If you sync llvm past git revision db7b69e3a634c5fdff0eceeee2a41e<u></u><u></u>e49c3270a2 (svn r223802), your LLDB build will be broken.<br>
><br>
> 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.<br>
><br>
> 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.<br>
<br>
</blockquote></div></blockquote></div>