[haskell-llvm] pkg-config for LLVM-3.2
Henning Thielemann
lemming at henning-thielemann.de
Sun May 19 20:08:34 BST 2013
On Sun, 19 May 2013, Henning Thielemann wrote:
> I have now recorded my pkg-config attempts with git:
> http://code.haskell.org/~thielema/llvm-3.0-pkg-config/
I have merged with git-head and updated to LLVM-3.2. There were a lot of
merge conflicts with modules that are completely unrelated to my changes.
I hope I got the merge right. (... and it confirms me, that every package
should have its own repository.)
http://code.haskell.org/~thielema/llvm-3.2-pkg-config/
It works with dynamic and static linking, however when loading into GHCi I
get:
$ ghci-7.6.3 -Wall -package=llvm-base-3.2.0.0.2
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package mtl-2.1.2 ... linking ... done.
Loading package llvm-base-3.2.0.0.2 ... linking ... ghc:
/home/thielema/.cabal/lib/llvm-base-3.2.0.0.2/ghc-7.6.3/HSllvm-base-3.2.0.0.2.o: unknown symbol `_ZN4llvm12SMDiagnosticD1Ev'
ghc: unable to load package `llvm-base-3.2.0.0.2'
I don't know why this fails. It seems to be related to the declaration
llvm::SMDiagnostic error;
in extra.cpp/LLVMGetModuleFromAssembly, but this was already there in the
LLVM-3.0 bindings and worked there.
More information about the Haskell-llvm
mailing list