[haskell-llvm] problem installing llvm with cabal

Nathan Howell nathan.d.howell at gmail.com
Sat Dec 24 21:17:45 GMT 2011


You should be able to install the llvm 2.9 bits on your Mac and rebuild..
The package installer should do a version check but doesn't, hence the
problem. I don't intend to learn much about autoconf so I'll leave a patch
up to someone else :-)

On Sat, Dec 24, 2011 at 12:54 PM, Philippe Sismondi <psismondi at arqux.com>wrote:

> Nathan: I think I replied to you off the list earlier today. Sorry.
>
> Anyway, it appears that you are right. llvm-config reports that I have
> llvm version 3.
>
> It strikes me that this is something that the cabal install stuff and/or
> the autotools stuff should be checking for, no?
>
> - p -
>
> On 2011-12-24, at 11:55 AM, Nathan Howell wrote:
>
> What version of LLVM do you have installed? This looks like a version
> mismatch.
>
> I believe the main git repo needs LLVM 2.9, though 2.8 may still work as
> well. There are a few branches with 3.0 support but they've not been merged.
>
> On Fri, Dec 23, 2011 at 9:57 PM, Philippe Sismondi <psismondi at arqux.com>wrote:
>
>> Greetings. Possibly I should be posting this as an issue on github, but I
>> actually don't know how since I almost never use github ;-P
>>
>> I have the following environment:
>>
>> OS X 10.6.8
>> Haskell Platform 2011.4.0.0 64bit
>>
>> When I try to install llvm via cabal, the install craps out on the
>> compile of cbits/extra.cpp. Here is the message from 'cabal --verbose
>> install llvm':
>>
>> creating dist/build
>> /usr/bin/ghc -Idist/build -I/usr/local/include -Iinclude -package-id
>> base-4.3.1.0-239d76b73f466dc120129098b3472858 -package-id
>> bytestring-0.9.1.10-5bb17614aed376ea31b721a9272770b1 -package-id
>> containers-0.4.0.0-b4885363abca642443ccd842502a3b7e -package-id
>> directory-1.1.0.0-1ea434899f49294b2eb2d1e1ba551982 -package-id
>> mtl-2.0.1.0-5b7a9cce5565d8cc8721ba4f95becf1b -package-id
>> process-1.0.1.5-3e412eee765d141be15796c32f22f7a3 -package-id
>> type-level-0.2.4-4c0d7e812179112051217b829f42233d -optc-O2 -odir dist/build
>> -c cbits/extra.cpp -prof
>> cbits/extra.cpp: In function ‘void
>> LLVMAddStructRetPromotionPass(LLVMOpaquePassManager*)’:
>>
>> cbits/extra.cpp:537:0:
>>      error: ‘createStructRetPromotionPass’ was not declared in this scope
>>
>>
>> I know NOTHING about C++. I note that comments in extra.cpp claim the
>> functions therein are not required but nice to have for python bindings,
>> or some thing to that effect. If I just delete the reference to extra.cpp
>> in llvm.cabal, it seems to finish ok.
>>
>> Is this some problem on my system, or is there a bug? Can I go ahead and
>> try out llvm with Haskell without extra.cpp, i.e. with it removed from
>> llvm.cabal?
>>
>> Thanks.
>>
>> - P -
>>
>> _______________________________________________
>> Haskell-llvm mailing list
>> Haskell-llvm at projects.haskell.org
>> http://projects.haskell.org/cgi-bin/mailman/listinfo/haskell-llvm
>>
>>
>
>
> _______________________________________________
> Haskell-llvm mailing list
> Haskell-llvm at projects.haskell.org
> 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/20111224/4dc32ad6/attachment-0001.htm>


More information about the Haskell-llvm mailing list