[Haskell-cafe] How to make ghc 7 with llvm?

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Mon May 2 13:23:49 CEST 2011

Sorry to reply after so long time.
When you say "there is no proble", I understand it as:
  Even if some libraries were compiled with gcc, they are still
linkable with object files generated with llvm.
So this remembered me a problem I met long ago with no answer.

I compiled ghc 7 with ghc 6 and gcc. Everything was fine. Then I added
-fllvm to ghc to install some hackages.
This was when I noticed that, the new hackage reported some
dependencies were lost, which were actually in the system (and same
Then I recompile "the missing dependencies", and noticed from ghc-pkg
that, the old ones and the new ones were having different sign, the
thing that looks like a hash code after the name of package.

Now I dropped -fllvm, everything now seems really fine.

On Fri, Apr 29, 2011 at 9:58 AM, Erik de Castro Lopo
<mle+hs at mega-nerd.com> wrote:
> Magicloud Magiclouds wrote:
>>   As I recalled, ghc started to support llvm from version 7.
> Yes.
>>   But there is a problem: there is no option to make ghc with llvm.
> Its not an option, its a feature that is compiled in by default
> and enabled by using -fllvm on the ghc command line.
>> So
>> Library within ghc source will be in gcc's binary format.
> It is my understanding that libraries compiled via the native code
> generator (NCG) are fully compatible with libraries compiled with
> -fllvm.
>> Then when I
>> install other packages, they may complain that the binary format is
>> not llvm, so they install some libraries again.
> You seem to think there is a problem where this is no problem :-).
> Cheers,
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


More information about the Haskell-Cafe mailing list