Christophe Demez via llvm-dev
2018-Mar-02 08:23 UTC
[llvm-dev] EngineBuilder().create() => NULL
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180302/71e5a157/attachment.html>
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> 写道: > > 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 ? > -- > CHRISTOPHE DEMEZ > PROJECT LEADER > > LUCIAD CONNECT • VISUALIZE • ANALYZE • ACT > > christophe.demez at luciad.com • T +32 16 23 95 91 > Follow us on LinkedIn or @LUCIADconnect > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180302/3907d61c/attachment.html>
Christophe Demez via llvm-dev
2018-Mar-02 11:22 UTC
[llvm-dev] EngineBuilder().create() => NULL
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>