[llvm-dev] EngineBuilder().create() => NULL
Christophe Demez via llvm-dev
llvm-dev at lists.llvm.org
Fri Mar 2 03:22:57 PST 2018
Thanks,
I found that I have to add : "mc mcdisassembler" too, into the list of
libraries !
Then it works.
On 2/03/2018 12:16, mayuyu.io wrote:
> EngineBuilder should provided an error string option, try printing it out?
>
> Zhang
>
> 在 2018年3月2日,上午8:23,Christophe Demez via llvm-dev
> <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> 写道:
>
>> Hi,
>>
>> I try to create an execution engine, but I always got a nullptr value :
>>
>> _executionEngine = EngineBuilder(std::move(_module)).create();
>>
>> I build my project with cmake and add the following command in my cmake.
>>
>> llvm_map_components_to_libnames(llvm_libs Analysis Core
>> ExecutionEngine InstCombine Object RuntimeDyld ScalarOpts Support
>> native mcjit)
>>
>> BTW, I have also try to execute the LLVM example project
>> "HowToUseJIT", and it also return NULL ! And then crash !
>>
>> Any idea ?
>>
>> --
>> Luciad Email Signature *Christophe Demez *
>> PROJECT LEADER
>>
>> *LUCIAD* <http://www.luciad.com/> CONNECT • VISUALIZE • ANALYZE • ACT
>>
>> christophe.demez at luciad.com <mailto:christophe.demez at luciad.com> • T
>> +32 16 23 95 91
>> Follow us on LinkedIn <https://www.linkedin.com/company/luciad>or
>> @LUCIADconnect <http://www.twitter.com/LUCIADconnect>
>>
>> Luciad
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
--
Luciad Email Signature *Christophe Demez *
PROJECT LEADER
*LUCIAD* <http://www.luciad.com/> CONNECT • VISUALIZE • ANALYZE • ACT
christophe.demez at luciad.com <mailto:christophe.demez at luciad.com> • T
+32 16 23 95 91
Follow us on LinkedIn <https://www.linkedin.com/company/luciad>or
@LUCIADconnect <http://www.twitter.com/LUCIADconnect>
Luciad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180302/2e311656/attachment-0001.html>
More information about the llvm-dev
mailing list