<div dir="ltr">It works now, after Todd's suggestion. rm -rf llvm-build wasn't sufficient, I also had to clean the Xcode project. Thanks!</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 22, 2014 at 11:17 AM, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The Xcode project will check out the sources for you into:<br>
<br>
lldb/llvm<br>
<br>
If they aren't already there. Then it will create lldb/lldb-build and configure/build into that directory in a way that works for multiple architectures.<br>
<br>
So making a build folder inside llvm might work for you, but it won't be used by Xcode. If you want to do manual builds you can cd into:<br>
<br>
lldb/llvm-build/Release+Asserts/x86_64<br>
<br>
Then run make from there.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
> On Aug 22, 2014, at 11:11 AM, Zachary Turner <<a href="mailto:zturner@google.com">zturner@google.com</a>> wrote:<br>
><br>
> I will try that. One thing I did yesterday was try to make a change to llvm. To do this I went into my lldb/llvm directory, created a build directory, and from inside there generated an Xcode project for just the llvm / clang stuff, and built llvm using this. Is it possible that it installed itself somewhere in a way that conflicts what what I'm trying to do using the LLDB xcode build?<br>
><br>
><br>
> On Fri, Aug 22, 2014 at 11:10 AM, Todd Fiala <<a href="mailto:tfiala@google.com">tfiala@google.com</a>> wrote:<br>
> Did you also do a Build|Clean?<br>
><br>
> So full steps:<br>
> (command line)<br>
> cd lldb<br>
> rm -rf llvm-build<br>
><br>
> (back in Xcode)<br>
> Product|Clean<br>
> Cmd-B<br>
><br>
> ?<br>
><br>
><br>
> On Fri, Aug 22, 2014 at 11:09 AM, Zachary Turner <<a href="mailto:zturner@google.com">zturner@google.com</a>> wrote:<br>
> Didn't seem to fix it. Still getting the same errors.<br>
><br>
><br>
> On Fri, Aug 22, 2014 at 11:01 AM, Todd Fiala <<a href="mailto:tfiala@google.com">tfiala@google.com</a>> wrote:<br>
> I think Jason also mentioned in another thread that this was necessary and don't waste time tracking it down.<br>
><br>
><br>
> On Fri, Aug 22, 2014 at 10:41 AM, Greg Clayton <<a href="mailto:gclayton@apple.com">gclayton@apple.com</a>> wrote:<br>
> You might want to nuke your lldb/llvm-build folder and try again. Sometimes when updating the dependencies aren't tracked 100% and can result in bad .a files from the llvm build.<br>
><br>
> > On Aug 22, 2014, at 10:32 AM, Zachary Turner <<a href="mailto:zturner@google.com">zturner@google.com</a>> wrote:<br>
> ><br>
> > I just updated all my repos and I'm seeing this when I build lldb-tool using the Xcode solution:<br>
> ><br>
> > Undefined symbols for architecture x86_64:<br>
> ><br>
> > "llvm::ConstantExpr::getGetElementPtr(llvm::Constant*, llvm::ArrayRef<llvm::Value*>, bool)", referenced from:<br>
> ><br>
> > llvm::ConstantExpr::getGetElementPtr(llvm::Constant*, llvm::ArrayRef<llvm::Constant*>, bool) in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > (maybe you meant: __ZN4llvm12ConstantExpr16getGetElementPtrEPNS_8ConstantENS_8ArrayRefIPNS_5ValueEEEbPNS_4TypeE)<br>
> ><br>
> > "llvm::ConstantExpr::getBitCast(llvm::Constant*, llvm::Type*)", referenced from:<br>
> ><br>
> > IRForTarget::RewriteObjCConstString(llvm::GlobalVariable*, llvm::GlobalVariable*) in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > IRForTarget::RewriteObjCSelector(llvm::Instruction*) in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > IRForTarget::BuildRelocation(llvm::Type*, unsigned long long) in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > IRForTarget::ReplaceStrings() in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > (maybe you meant: __ZN4llvm12ConstantExpr10getBitCastEPNS_8ConstantEPNS_4TypeEb)<br>
> ><br>
> > "llvm::ConstantExpr::getIntToPtr(llvm::Constant*, llvm::Type*)", referenced from:<br>
> ><br>
> > IRForTarget::BuildFunctionPointer(llvm::Type*, unsigned long long) in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > IRForTarget::RewriteObjCConstString(llvm::GlobalVariable*, llvm::GlobalVariable*) in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > IRForTarget::RewriteObjCSelector(llvm::Instruction*) in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > IRForTarget::HandleSymbol(llvm::Value*) in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > IRForTarget::HandleObjCClass(llvm::Value*) in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > IRForTarget::CompleteDataAllocation() in liblldb-core.a(IRForTarget.o)<br>
> ><br>
> > (maybe you meant: __ZN4llvm12ConstantExpr11getIntToPtrEPNS_8ConstantEPNS_4TypeEb)<br>
> ><br>
> > ld: symbol(s) not found for architecture x86_64<br>
> ><br>
> > clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
> ><br>
> ><br>
> ><br>
> > Is anyone else seeing this?<br>
> ><br>
> > _______________________________________________<br>
> > lldb-dev mailing list<br>
> > <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
> > <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
><br>
> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
><br>
><br>
><br>
> --<br>
> Todd Fiala | Software Engineer | <a href="mailto:tfiala@google.com">tfiala@google.com</a> | <a href="tel:650-943-3180" value="+16509433180">650-943-3180</a><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Todd Fiala | Software Engineer | <a href="mailto:tfiala@google.com">tfiala@google.com</a> | <a href="tel:650-943-3180" value="+16509433180">650-943-3180</a><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>