[Haskell-cafe] PSA: do not install xcode 5 if you are using ghc 7.6

Edsko de Vries edskodevries at gmail.com
Mon Sep 23 13:00:46 CEST 2013

Just to add to Carter's message: if you happened to install Xcode 5
anyway, then realized your mistake and uninstalled it and installed
Xcode 4 again, you will STILL have the command line tools that came
with Xcode 5 and your Haskell toolchain will STILL be broken -- and so
far I have been unable to fix that by any combination of cabal's
"gcc-location", ghc's "-pgmP", and various other options. This was
true even though I installed the command line tools that came with
Xcode 4.

Eventually I fixed this by manually installing the command line tools
separately from


Unlike ticking the "Command line tools" option in Xcode itself, this
will actually overwrite the command line tools in /usr/bin, and my
Haskell toolchain was once again restored. I don't know why I couldn't
get it to work by pointing to the relevant tools in
/Applications/Xcode.app/Contents/Developer/usr/bin, but there you go..

Anyway, this might save some of you some headaches..


On Fri, Sep 20, 2013 at 7:05 PM, Carter Schonwald
<carter.schonwald at gmail.com> wrote:
> glad to help.
> an alternative for the discerning power user is to install a recent version
> of gcc locally (eg 4.8), and build 7.6.3 with that! (or just repoint your
> ghc settings file to a locally built version of real gcc.)
> yes, assuming we have the time (after all, it's all volunteer time), that is
> the plan.
> On Fri, Sep 20, 2013 at 1:50 PM, Adam Foltzer <acfoltzer at gmail.com> wrote:
>> Hi Carter,
>> Thanks for this heads up! Many of us here are cutting edge Mac users, and
>> would have been bitten by this.
>>> Darin and I plan to spend some time next month preparing an unofficial
>>> patched version of ghc 7.6 that should play nice with clang / xcode 5,
>>> though at such a time ghc 7.8 will be in RC status at the very least.
>> Can this be backported to the 7.6.3 tag and released as 7.6.4? It would be
>> nice to not have to choose between running the latest xcode and the ability
>> to test multiple GHC versions.
>> Cheers,
>> Adam
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list