Semion Prihodko
2011-Sep-02 14:15 UTC
[LLVMdev] LLVM: Cannot instantiate JIT execution engine
Hi, guys. Have a strange problem with LLVM in my project ( https://github.com/ababo/AntOS). Cannot instantiate JIT execution engine (NULL returns; message: Interpreter has not been linked in.). As you can see from the code I call InitializeNativeTarget. Also I tried to directly include the "llvm/ExecutionEngine/JIT.h" header, but with no success. I link with `llvm-config --ldflags --libs core jit native`, so there's no problem here. Can you suggest me anything? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110902/5d8bc5e9/attachment.html>
On Fri, Sep 2, 2011 at 6:15 PM, Semion Prihodko <semion.ababo at gmail.com>wrote:> Hi, guys. > > Have a strange problem with LLVM in my project ( > https://github.com/ababo/AntOS). Cannot instantiate JIT execution engine > (NULL returns; message: Interpreter has not been linked in.). As you can see > from the code I call InitializeNativeTarget. Also I tried to directly > include the "llvm/ExecutionEngine/JIT.h" header, but with no success. I > link with `llvm-config --ldflags --libs core jit native`, so there's no > problem here. Can you suggest me anything? Thanks. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >Try to call ForceJITLinking::ForceJITLinking(); in your application. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110902/a9552394/attachment.html>
Semion Prihodko
2011-Sep-03 14:33 UTC
[LLVMdev] LLVM: Cannot instantiate JIT execution engine
Isn't there someone to help me with this issue? I'm very upset about this stupid problem which wasted the whole day. BTW, I can create JIT from main.cpp, but not in the required source file (runtime.cpp), so this is not about linking. Very weird. 2011/9/2 Semion Prihodko <semion.ababo at gmail.com>> I cannot call the constructor explicitly, because ForceJITLinking is a name > of structure and of it's instance at the same time. But it called implicitly > when the instance above is being instantiated. > As I mentioned before I already tried to include this header with no > success. I work in Linux, so it's really strange. > > > 2011/9/2 arrowdodger <6yearold at gmail.com> > >> On Fri, Sep 2, 2011 at 6:15 PM, Semion Prihodko <semion.ababo at gmail.com>wrote: >> >>> Hi, guys. >>> >>> Have a strange problem with LLVM in my project ( >>> https://github.com/ababo/AntOS). Cannot instantiate JIT execution engine >>> (NULL returns; message: Interpreter has not been linked in.). As you can see >>> from the code I call InitializeNativeTarget. Also I tried to directly >>> include the "llvm/ExecutionEngine/JIT.h" header, but with no success. I >>> link with `llvm-config --ldflags --libs core jit native`, so there's no >>> problem here. Can you suggest me anything? Thanks. >>> >>> _______________________________________________ >>> LLVM Developers mailing list >>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >>> >>> >> Try to call ForceJITLinking::ForceJITLinking(); in your application. >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110903/585ee9aa/attachment.html>
Jeff Fifield
2011-Sep-03 16:44 UTC
[LLVMdev] LLVM: Cannot instantiate JIT execution engine
I see two problems in your code 1) you need to #include "llvm/ExecutionEngine/JIT.h" 2) you must pass an empty string to EngineBuilder::setErrorStr. See JIT::createJIT for the reason. Jeff On Sat, Sep 3, 2011 at 8:33 AM, Semion Prihodko <semion.ababo at gmail.com> wrote:> Isn't there someone to help me with this issue? I'm very upset about this > stupid problem which wasted the whole day. BTW, I can create JIT from > main.cpp, but not in the required source file (runtime.cpp), so this is not > about linking. Very weird. > > 2011/9/2 Semion Prihodko <semion.ababo at gmail.com> >> >> I cannot call the constructor explicitly, because ForceJITLinking is a >> name of structure and of it's instance at the same time. But it called >> implicitly when the instance above is being instantiated. >> As I mentioned before I already tried to include this header with no >> success. I work in Linux, so it's really strange. >> >> 2011/9/2 arrowdodger <6yearold at gmail.com> >>> >>> On Fri, Sep 2, 2011 at 6:15 PM, Semion Prihodko <semion.ababo at gmail.com> >>> wrote: >>>> >>>> Hi, guys. >>>> Have a strange problem with LLVM in my project >>>> (https://github.com/ababo/AntOS). Cannot instantiate JIT execution engine >>>> (NULL returns; message: Interpreter has not been linked in.). As you can see >>>> from the code I call InitializeNativeTarget. Also I tried to directly >>>> include the "llvm/ExecutionEngine/JIT.h" header, but with no success. I link >>>> with `llvm-config --ldflags --libs core jit native`, so there's no problem >>>> here. Can you suggest me anything? Thanks. >>>> _______________________________________________ >>>> LLVM Developers mailing list >>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >>>> >>> >>> Try to call ForceJITLinking::ForceJITLinking(); in your application. >> > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
Seemingly Similar Threads
- [LLVMdev] LLVM: Cannot instantiate JIT execution engine
- [LLVMdev] LLVM: Cannot instantiate JIT execution engine
- [LLVMdev] Dynamically allocate and free variables in stack
- [LLVMdev] LLVM: segfault while modifying a thread-local global variable
- [LLVMdev] LLVM: segfault while modifying a thread-local global variable