[haskell-llvm] MathExtras.h: error: there are no arguments to ‘INT64_C’ that depend on a template parameter, so a declaration of ‘INT64_C’ must be available

Nathan Howell nathan.d.howell at gmail.com
Mon Apr 30 18:29:07 BST 2012

On Mon, Apr 30, 2012 at 10:05 AM, Henning Thielemann
<lemming at henning-thielemann.de> wrote:
> llvm-3.0-git/examples$ ./Align_dyn.exe
> Align_dyn.exe: LLVMTargetMachine.cpp:123:
> llvm::LLVMTargetMachine::LLVMTargetMachine(const llvm::Target&,
> llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::Reloc::Model,
> llvm::CodeModel::Model): Assertion `AsmInfo && "MCAsmInfo not initialized."
> "Make sure you include the correct TargetSelect.h" "and that
> InitializeAllTargetMCs() is being invoked!"' failed.
> Abgebrochen

The way initializeNativeTarget works in the main repo is broken for
MCJIT targets. There needs to be a call to
LLVMInitializeNativeTarget() instead of LLVMInitializeX86Target() to
boot up the JIT/MCJIT. This should also work on pre-3.0 branches (at
least as far back as 2.6) since it is the intended way to initialize
the JIT.



More information about the Haskell-llvm mailing list