[haskell-llvm] problem installing llvm with cabal

Philippe Sismondi psismondi at arqux.com
Sat Dec 24 05:57:29 GMT 2011


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 -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/haskell-llvm/attachments/20111224/6f03e7d3/attachment.htm>


More information about the Haskell-llvm mailing list