#5726: GHC 7.4.1 RC1 doesn't work with Xcode 4.2.1
-------------------------------------+--------------------------------------
 Reporter:  shelarcy                 |          Owner:                  
     Type:  bug                      |         Status:  new             
 Priority:  normal                   |      Component:  Compiler        
  Version:  7.3                      |       Keywords:                  
       Os:  MacOS X                  |   Architecture:  Unknown/Multiple
  Failure:  GHC doesn't work at all  |       Testcase:                  
Blockedby:                           |       Blocking:                  
  Related:                           |  
-------------------------------------+--------------------------------------
 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

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5726>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to