[haskell-llvm] problem installing llvm with cabal
Nathan Howell
nathan.d.howell at gmail.com
Sat Dec 24 22:08:48 GMT 2011
Grab the clang/llvm binaries here:
http://llvm.org/releases/2.9/clang+llvm-2.9-x86_64-apple-darwin10.tar.gz
and put them somewhere... I put it in /opt/clang-2.9. Then install the
bindings like so:
PATH=/opt/clang-2.9/bin:$PATH cabal install llvm
Cabal will pick up the 2.9 llvm-config and bake the paths into the
installed package. This shouldn't conflict with the 3.0 bits that come with
Xcode.
-n
On Sat, Dec 24, 2011 at 1:35 PM, Philippe Sismondi <psismondi at arqux.com>wrote:
>
> On 2011-12-24, at 4:17 PM, Nathan Howell wrote:
>
> 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 :-)
>
>
> AFAIK the llvm version on my Mac is native, i.e. comes with the os or else
> with Xcode. (I may be wrong - maybe I installed llvm some other way and
> then forgot that I did so). Moreover, I am not inclined to install multiple
> llvm versions, due to the grief I have had with conflicts between macports
> s/w, native Apple stuff, and ghc.
>
> Am I being wussy? Is there an easy way to have llvm 2.9 and 3.0
> coexisting? And, if nobody knows the answer, that's ok.
>
> I am just now tackling autotools (and for that matter cabal) in a serious
> way after many moons of avoidance. Perhaps the version check thing might be
> something I could contribute, if I can get my head around it all.
>
> Best,
>
> - P -
>
> 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
>>
>>
>
>
> _______________________________________________
> 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/b0fdb9a2/attachment.htm>
More information about the Haskell-llvm
mailing list