[haskell-llvm] pkg-config for LLVM-3.2

Carter Schonwald carter.schonwald at gmail.com
Sun May 19 21:04:15 BST 2013


And likewise, it's also worth testing out just using ghci from a ghc head
build, many problems you're trying to work around should be solved in
current ghc head of even a few months ago. Might take substantially less
time to get things working robustly that way.

On Sunday, May 19, 2013, Nathan Howell wrote:

> run 'nm /home/thielema/.cabal/lib/**llvm-base-3.2.0.0.2/ghc-7.6.3/**HSllvm-base-3.2.0.0.2.o'
> and check the symbol type. It's probably related to the GHCi loader bug I
> mentioned earlier.
>
>
> On Sun, May 19, 2013 at 12:08 PM, Henning Thielemann <
> lemming at henning-thielemann.de <javascript:_e({}, 'cvml',
> 'lemming at henning-thielemann.de');>> wrote:
>
>>
>> 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/<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/<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.
>>
>> ______________________________**_________________
>> Haskell-llvm mailing list
>> Haskell-llvm at projects.haskell.**org <javascript:_e({}, 'cvml',
>> 'Haskell-llvm at projects.haskell.org');>
>> http://projects.haskell.org/**cgi-bin/mailman/listinfo/**haskell-llvm<http://projects.haskell.org/cgi-bin/mailman/listinfo/haskell-llvm>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/haskell-llvm/attachments/20130519/a1c65aea/attachment.htm>


More information about the Haskell-llvm mailing list