gloss-raster: Couldn't figure out LLVM version! (osx 10.8.5)

Hi, please can you help me with following: I'm unable to install gloss-raster. Output is: dev$ cabal install gloss-raster Resolving dependencies... Configuring gloss-raster-1.8.1.2... Building gloss-raster-1.8.1.2... Preprocessing library gloss-raster-1.8.1.2... [1 of 2] Compiling Graphics.Gloss.Raster.Array ( Graphics/Gloss/Raster/Array.hs, dist/build/Graphics/Gloss/Raster/Array.o ) <no location info>: Warning: Couldn't figure out LLVM version! Make sure you have installed LLVM ghc: could not execute: opt Failed to install gloss-raster-1.8.1.2 cabal: Error: some packages failed to install: gloss-raster-1.8.1.2 failed during the building phase. The exception was: ExitFailure 1 llvm seems to be installed: $ brew install llvm Warning: llvm-3.3 already installed cheers, m.

Since you use brew, I'll assume you're using osx.
I had the same problem a few weeks ago. Here's how I solved it (be advised,
it's an ugly hack):
1. Download llvm from the official website (binaries or source). If you
download the source compile it.
2. Put all of the files somewhere you find convenient (I use ~/.llvm)
3. Edit ghc.conf (not sure if the name is correct), to add ~/.llvm/bin/llc
(in my case) and ~/.llvm/bin/llvm where required. I don't remember the
path, somewhere in lib in think. It's the file that is read when running
ghc --info
It should work afterwards. Note that llvm3.4 is the latest llvm but is not
tested on ghc (llvm3.3 is). I use 3.4 w/o issues though.
--
Cp
On Thu, Mar 6, 2014 at 10:05 AM, Miro Karpis
Hi, please can you help me with following: I'm unable to install gloss-raster. Output is:
dev$ cabal install gloss-raster Resolving dependencies... Configuring gloss-raster-1.8.1.2... Building gloss-raster-1.8.1.2... Preprocessing library gloss-raster-1.8.1.2... [1 of 2] Compiling Graphics.Gloss.Raster.Array ( Graphics/Gloss/Raster/Array.hs, dist/build/Graphics/Gloss/Raster/Array.o )
<no location info>: Warning: Couldn't figure out LLVM version! Make sure you have installed LLVM ghc: could not execute: opt Failed to install gloss-raster-1.8.1.2 cabal: Error: some packages failed to install: gloss-raster-1.8.1.2 failed during the building phase. The exception was: ExitFailure 1
llvm seems to be installed:
$ brew install llvm Warning: llvm-3.3 already installed
cheers, m.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

You want the ghc settings file.
Make sure you point it to the absolute path.
On Thursday, March 6, 2014, Charles-Pierre Astolfi
Since you use brew, I'll assume you're using osx.
I had the same problem a few weeks ago. Here's how I solved it (be advised, it's an ugly hack): 1. Download llvm from the official website (binaries or source). If you download the source compile it. 2. Put all of the files somewhere you find convenient (I use ~/.llvm) 3. Edit ghc.conf (not sure if the name is correct), to add ~/.llvm/bin/llc (in my case) and ~/.llvm/bin/llvm where required. I don't remember the path, somewhere in lib in think. It's the file that is read when running ghc --info
It should work afterwards. Note that llvm3.4 is the latest llvm but is not tested on ghc (llvm3.3 is). I use 3.4 w/o issues though.
-- Cp
On Thu, Mar 6, 2014 at 10:05 AM, Miro Karpis
javascript:_e(%7B%7D,'cvml','miroslav.karpis@gmail.com'); wrote:
Hi, please can you help me with following: I'm unable to install gloss-raster. Output is:
dev$ cabal install gloss-raster Resolving dependencies... Configuring gloss-raster-1.8.1.2... Building gloss-raster-1.8.1.2... Preprocessing library gloss-raster-1.8.1.2... [1 of 2] Compiling Graphics.Gloss.Raster.Array ( Graphics/Gloss/Raster/Array.hs, dist/build/Graphics/Gloss/Raster/Array.o )
<no location info>: Warning: Couldn't figure out LLVM version! Make sure you have installed LLVM ghc: could not execute: opt Failed to install gloss-raster-1.8.1.2 cabal: Error: some packages failed to install: gloss-raster-1.8.1.2 failed during the building phase. The exception was: ExitFailure 1
llvm seems to be installed:
$ brew install llvm Warning: llvm-3.3 already installed
cheers, m.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.orgjavascript:_e(%7B%7D,'cvml','Haskell-Cafe@haskell.org'); http://www.haskell.org/mailman/listinfo/haskell-cafe

Thanks,. But still no luck
With ghc settings file you mean the settings file in for example my case:
/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/se
ttings
In the file I can see following lines:
("LLVM llc command", "llc"),
("LLVM opt command", "opt")
When I changed llc to "usr/bin/llvm-gcc" nothing happened. So I guess I
should edit something else?,.
M.
From: Carter Schonwald
Since you use brew, I'll assume you're using osx.
I had the same problem a few weeks ago. Here's how I solved it (be advised, it's an ugly hack): 1. Download llvm from the official website (binaries or source). If you download the source compile it. 2. Put all of the files somewhere you find convenient (I use ~/.llvm) 3. Edit ghc.conf (not sure if the name is correct), to add ~/.llvm/bin/llc (in my case) and ~/.llvm/bin/llvm where required. I don't remember the path, somewhere in lib in think. It's the file that is read when running ghc --info
It should work afterwards. Note that llvm3.4 is the latest llvm but is not tested on ghc (llvm3.3 is). I use 3.4 w/o issues though.
-- Cp
On Thu, Mar 6, 2014 at 10:05 AM, Miro Karpis
javascript:_e(%7B%7D,'cvml','miroslav.karpis@gmail.com'); > wrote: Hi, please can you help me with following: I'm unable to install gloss-raster. Output is:
dev$ cabal install gloss-raster Resolving dependencies... Configuring gloss-raster-1.8.1.2... Building gloss-raster-1.8.1.2... Preprocessing library gloss-raster-1.8.1.2... [1 of 2] Compiling Graphics.Gloss.Raster.Array ( Graphics/Gloss/Raster/Array.hs, dist/build/Graphics/Gloss/Raster/Array.o )
<no location info>: Warning: Couldn't figure out LLVM version! Make sure you have installed LLVM ghc: could not execute: opt Failed to install gloss-raster-1.8.1.2 cabal: Error: some packages failed to install: gloss-raster-1.8.1.2 failed during the building phase. The exception was: ExitFailure 1
llvm seems to be installed:
$ brew install llvm Warning: llvm-3.3 already installed
cheers, m.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org javascript:_e(%7B%7D,'cvml','Haskell-Cafe@haskell.org'); http://www.haskell.org/mailman/listinfo/haskell-cafe

On Thu, Mar 6, 2014 at 10:07 AM, Miroslav Karpis
In the file I can see following lines: ("LLVM llc command", "llc"), ("LLVM opt command", "opt")
When I changed llc to "usr/bin/llvm-gcc" nothing happened. So I guess I should edit something else?,….
llc is not llvm-gcc (and even if it were, the leading / on /usr/bin is not optional). If you have LLVM installed via brew, you are probably looking for /usr/local/bin/llc and /usr/local/bin/opt for those two. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Alternatively you could just remove the fllvm flag from the gloss raster
cabal file.
I actually spoke with Ben about this, and he insists that the performance
different is large enough to be worth only supporting fllvm for his lib.
On Thursday, March 6, 2014, Brandon Allbery
On Thu, Mar 6, 2014 at 10:07 AM, Miroslav Karpis < miroslav.karpis@gmail.comjavascript:_e(%7B%7D,'cvml','miroslav.karpis@gmail.com');
wrote:
In the file I can see following lines: ("LLVM llc command", "llc"), ("LLVM opt command", "opt")
When I changed llc to "usr/bin/llvm-gcc" nothing happened. So I guess I should edit something else?,….
llc is not llvm-gcc (and even if it were, the leading / on /usr/bin is not optional). If you have LLVM installed via brew, you are probably looking for /usr/local/bin/llc and /usr/local/bin/opt for those two.
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com javascript:_e(%7B%7D,'cvml','allbery.b@gmail.com'); ballbery@sinenomine.netjavascript:_e(%7B%7D,'cvml','ballbery@sinenomine.net'); unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Many thanks! It turned out that llc and opt is installed in:
usr/local/Cellar/llvm/3.3/bin/
After changing ghc settings, gloss-raster installed correctly ;-)
Thanks
m.
From: Brandon Allbery
In the file I can see following lines: ("LLVM llc command", "llc"), ("LLVM opt command", "opt")
When I changed llc to "usr/bin/llvm-gcc" nothing happened. So I guess I should edit something else?,.
llc is not llvm-gcc (and even if it were, the leading / on /usr/bin is not optional). If you have LLVM installed via brew, you are probably looking for /usr/local/bin/llc and /usr/local/bin/opt for those two. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (5)
-
Brandon Allbery
-
Carter Schonwald
-
Charles-Pierre Astolfi
-
Miro Karpis
-
Miroslav Karpis