[llvm-dev] EngineBuilder().create() => NULL

mayuyu.io via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 2 03:16:48 PST 2018


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>


More information about the llvm-dev mailing list