[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT

Jon Harrop jon at ffconsultancy.com
Sat Jan 23 07:03:27 PST 2010

On Friday 22 January 2010 18:56:29 ALbert Mietus wrote:
> This code, seams right to me; so probably it is an installation
> problem. Or such.

I suspect the code is wrong as of LLVM 2.6 which introduced a new requirement: 
the initialize_native_target function must be called before the JIT is 
created, in order to initialize the available target architectures. 
Otherwise, the JIT will not initialize.

This breaking change was described in the OCaml Journal article "LLVM 2.6 
support and a new HLVM garbage collector" (23rd October 2009).

Dr Jon Harrop, Flying Frog Consultancy Ltd.

More information about the llvm-dev mailing list