Skip to content

GHC 7.4.1 RC1 doesn't work with Xcode 4.2.1

Xcode 4.2 removed gcc-4.2 now. But GHC 7.4.1 RC 1 uses gcc-4.2 as gcc. This behavior causes problem when compiling program.

$ ghc -c Export.hs
ghc: could not execute: /Developer/usr/bin/gcc-4.2
$ ghc Test.hs
[1 of 1] Compiling Main             ( Test.hs, Test.o )
ghc: could not execute: /Developer/usr/bin/gcc-4.2

GHC-7.4.0.20111219-i386.pkg and GHC-7.4.0.20111219-x86_64.pkg causes this problem.

And when using ghc-7.4.0.20111219-i386-apple-darwin.tar.bz2, ./configure causes error.

$ ./configure
checking for path to top of build tree... /Users/shelarcy/Desktop/ghc-7.4.0.20111219
Build platform inferred as: i386-apple-darwin
Host platform inferred as: i386-apple-darwin
Target platform inferred as: i386-apple-darwin
GHC build  : i386-apple-darwin
GHC host   : i386-apple-darwin
GHC target : i386-apple-darwin
checking for perl... /opt/local/bin/perl
checking if your perl works in shell scripts... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gsed... sed
checking XCode version... 4.2.1
configure: XCode version component 1: 4
configure: XCode version component 2: 2
checking for gcc-4.2... no
configure: error: cannot find gcc-4.2 in your PATH, no idea how to link

I can build program by GHC 7.2.2 (with some warning), and Haskell Platform 2011.4.0.0's GHC 7.0.4. So, I think this behavior is wrong.

See also: #5354 (closed)

Trac metadata
Trac field Value
Version 7.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information