[llvm] r238051 - make reciprocal estimate code generation more flexible by adding command-line options

Sanjay Patel spatel at rotateright.com
Mon Jun 1 11:56:08 PDT 2015


Thanks, Rafael.

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.

I don't know why this only becomes visible on Linux and with a non-x86
target...but I think the fix for:
/home/buildbots/llvmslave1/llvm-ppc64/llvm.obj/Debug+Asserts/lib/libLLVMExecutionEngine.a(ExecutionEngine.o):
In function `llvm::TargetOptions::TargetOptions()':
/home/buildbots/llvmslave1/llvm-ppc64/llvm.src/include/llvm/Target/TargetOptions.h:77:
undefined reference to `llvm::TargetRecip::TargetRecip()'

...is to add the 'Target' library to the list of required libraries of
ExecutionEngine:

Index: lib/ExecutionEngine/LLVMBuild.txt
===================================================================
--- lib/ExecutionEngine/LLVMBuild.txt    (revision 238051)
+++ lib/ExecutionEngine/LLVMBuild.txt    (working copy)
@@ -22,4 +22,4 @@
 type = Library
 name = ExecutionEngine
 parent = Libraries
-required_libraries = Core MC Object Support RuntimeDyld
+required_libraries = Core MC Object Support RuntimeDyld Target



On Fri, May 22, 2015 at 8:49 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> On 22 May 2015 at 21:17, Sanjay Patel <spatel at rotateright.com> wrote:
> > Thanks, Rafael. Sorry for the breakage.
> >
> > I saw the fail mails and was trying to reproduce the error:
> >
> /home/buildbots/llvmslave1/llvm-ppc64/llvm.src/include/llvm/Target/TargetOptions.h:77:
> > undefined reference to `llvm::TargetRecip::TargetRecip()'
> >
> > ...but I'm not hitting that with -DLLVM_TARGETS_TO_BUILD=PowerPC or my
> usual
> > all targets build.
> >
> > Any ideas what is happening that causes that constructor to be missed?
> >
>
> Not sure. I also use Release+Asserts and used clang as the host compiler.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150601/b4298b86/attachment.html>


More information about the llvm-commits mailing list