
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
version).
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
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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- 竹密岂妨流水过 山高哪阻野云飞