<div dir="ltr"><div><div>Thanks, Rafael.<br><br></div>For the record, the error is independent of Release/Debug/Asserts. It does not repro on Darwin (where I was initially building) or when I build the x86 target on Linux x86-64. <br><br>I don't know why this only becomes visible on Linux and with a non-x86 target...but I think the fix for:<br>/home/buildbots/llvmslave1/llvm-ppc64/llvm.obj/Debug+Asserts/lib/libLLVMExecutionEngine.a(ExecutionEngine.o): In function `llvm::TargetOptions::TargetOptions()':<br>/home/buildbots/llvmslave1/llvm-ppc64/llvm.src/include/llvm/Target/TargetOptions.h:77: undefined reference to `llvm::TargetRecip::TargetRecip()'<br><br></div>...is to add the 'Target' library to the list of required libraries of ExecutionEngine:<br><br>Index: lib/ExecutionEngine/LLVMBuild.txt<br>===================================================================<br>--- lib/ExecutionEngine/LLVMBuild.txt    (revision 238051)<br>+++ lib/ExecutionEngine/LLVMBuild.txt    (working copy)<br>@@ -22,4 +22,4 @@<br> type = Library<br> name = ExecutionEngine<br> parent = Libraries<br>-required_libraries = Core MC Object Support RuntimeDyld<br>+required_libraries = Core MC Object Support RuntimeDyld Target<br><br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 22, 2015 at 8:49 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 22 May 2015 at 21:17, Sanjay Patel <<a href="mailto:spatel@rotateright.com">spatel@rotateright.com</a>> wrote:<br>
> Thanks, Rafael. Sorry for the breakage.<br>
><br>
> I saw the fail mails and was trying to reproduce the error:<br>
> /home/buildbots/llvmslave1/llvm-ppc64/llvm.src/include/llvm/Target/TargetOptions.h:77:<br>
> undefined reference to `llvm::TargetRecip::TargetRecip()'<br>
><br>
> ...but I'm not hitting that with -DLLVM_TARGETS_TO_BUILD=PowerPC or my usual<br>
> all targets build.<br>
><br>
> Any ideas what is happening that causes that constructor to be missed?<br>
><br>
<br>
</span>Not sure. I also use Release+Asserts and used clang as the host compiler.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>