How to use llvm with ghc7?

Hi, I just got ghc7 and compiled with ghc6.12.1 and default configuration. ghc works fine. So I tried to use llvm. I got: ghc -fllvm badge.hs [1 of 1] Compiling Main ( badge.hs, /tmp/Main.o ) opt: Bitcode stream should be a multiple of 4 bytes in length I am using debian 32bit system, llvm 2.6. -- 竹密岂妨流水过 山高哪阻野云飞

On 8 December 2010 08:28, Magicloud Magiclouds
I am using debian 32bit system, llvm 2.6.
I haven't seen your particular error before, but AFAIK -fllvm won't work with LLVM < 2.7 because it depends on the GHC calling convention that is only present from that release onwards. Try upgrading LLVM to 2.7 and see if it helps. Cheers, Max

On Wed, Dec 8, 2010 at 7:14 PM, Max Bolingbroke
On 8 December 2010 08:28, Magicloud Magiclouds
wrote: I am using debian 32bit system, llvm 2.6.
I haven't seen your particular error before, but AFAIK -fllvm won't work with LLVM < 2.7 because it depends on the GHC calling convention that is only present from that release onwards. Try upgrading LLVM to 2.7 and see if it helps.
Cheers, Max
Oh, yes. 2.8 works fine. Thank you. -- 竹密岂妨流水过 山高哪阻野云飞
participants (2)
-
Magicloud Magiclouds
-
Max Bolingbroke