<div dir="ltr">Hello,<div><br></div><div>When I try to create execution engine I do get "<b style="font-size:13px;color:rgb(0,0,0);font-family:Menlo">Interpreter has not been linked in.</b>" error and EngineBuilder returns NULL.</div><div><br></div><div>Here is the line I use to create execution engine:</div><div><br></div><div><div><font face="monospace, monospace">auto executionEngine = llvm::EngineBuilder(std::move(m_module)).setErrorStr(&error).create();</font></div></div><div><br></div><div>Here are all headers I have included:<br></div><div><br></div><div><div>#include "llvm/ADT/STLExtras.h"</div><div>#include "llvm/ExecutionEngine/ExecutionEngine.h"</div><div>#include "llvm/ExecutionEngine/GenericValue.h"</div><div>#include "llvm/IR/Argument.h"</div><div>#include "llvm/IR/BasicBlock.h"</div><div>#include "llvm/IR/Constants.h"</div><div>#include "llvm/IR/DerivedTypes.h"</div><div>#include "llvm/IR/Function.h"</div><div>#include "llvm/IR/IRBuilder.h"</div><div>#include "llvm/IR/Instructions.h"</div><div>#include "llvm/IR/LLVMContext.h"</div><div>#include "llvm/IR/Module.h"</div><div>#include "llvm/IR/Type.h"</div><div>#include "llvm/IR/Verifier.h"</div><div>#include "llvm/Support/Casting.h"</div><div>#include "llvm/Support/ManagedStatic.h"</div><div>#include "llvm/Support/TargetSelect.h"</div><div>#include "llvm/Support/raw_ostream.h"</div></div><div><br></div><div><br></div><div>And here is the simple IR code that I'm trying to JIT compile and execute in memory:</div><div><br></div><div><div><font face="monospace, monospace">; ModuleID = 'Program'</font></div><div><font face="monospace, monospace">source_filename = "Program"</font></div><div><font face="monospace, monospace"><br></font></div><div><span style="font-family:monospace,monospace">define i32 @fib(i32) {</span><br></div><div><font face="monospace, monospace">entry:</font></div><div><font face="monospace, monospace">  %i = alloca i32</font></div><div><font face="monospace, monospace">  store i32 %0, i32* %i</font></div><div><font face="monospace, monospace">  ret i32* %i</font></div><div><font face="monospace, monospace">}</font></div></div><div><br></div><div><br></div><div><div>Could someone please tell the reason and how I can resolve this?</div></div><div><br></div><div>Thanks for helping!</div><div><br></div><div>Best,</div><div><br></div><div>Aaron</div><div><br></div></div>