[Haskell-cafe] ghc: could not execute: opt

Brandon Allbery allbery.b at gmail.com
Sat Mar 3 21:52:49 CET 2012

On Sat, Mar 3, 2012 at 08:39, Graham Berks <graham at fatlazycat.com> wrote:

> Hi, trying out haskell.
> Have osx 10.7 and ghc 7.0.4 via homebrew
> When attempting to compile a program via cabal i get
> ghc: could not execute: opt

Xcode 4 includes only part of LLVM; ghc has apparently found that part and
is trying to use it, but "opt" is one of the pieces that isn't there.
You'll need to install a full LLVM or find out how to get ghc to not use
-fllvm by default (I *think* that's what's going on?).

brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120303/89f803c1/attachment.htm>

More information about the Haskell-Cafe mailing list