[haskell-llvm] Re: Re: 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

Henning Thielemann lemming at henning-thielemann.de
Mon Apr 30 18:05:13 BST 2012

On Mon, 30 Apr 2012, Henning Thielemann wrote:

> On Mon, 30 Apr 2012, Ilias Tsitsimpis wrote:
>> [1] https://github.com/bos/llvm/pulls
> Now I have to find out how to pull in these patches ...

I tried

$ curl -k https://github.com/bos/llvm/pull/30.patch | git am

and then I could compile llvm-base- and llvm-! However the 
first example I tried said:

llvm-3.0-git/examples$ make Align.exe Align_dyn.exe
ghc -Wall -optl -w --make -o Align.exe -main-is Align.main Align.hs
Linking Align.exe ...
ghc -Wall -optl -w -dynamic --make -o Align_dyn.exe -main-is Align.main 
[1 of 1] Compiling Align            ( Align.hs, Align.o )
Linking Align_dyn.exe ...

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.

So I am going to try the other patches, too.

More information about the Haskell-llvm mailing list