[Hackage] #896: cabal install cabal-install fails if gcc not in /Developer/usr/bin/gcc

Hackage cvs-ghc at haskell.org
Sun Mar 11 11:44:49 CET 2012


#896: cabal install cabal-install fails if gcc not in /Developer/usr/bin/gcc
---------------------------------+------------------------------------------
  Reporter:  jeremyw.sherman     |        Owner:                    
      Type:  defect              |       Status:  new               
  Priority:  normal              |    Milestone:  cabal-install-0.14
 Component:  cabal-install tool  |      Version:  1.8.0.2           
  Severity:  normal              |     Keywords:                    
Difficulty:  unknown             |   Ghcversion:                    
  Platform:  Mac OS              |  
---------------------------------+------------------------------------------

Comment(by kosmikus):

 Communicated to me by Erik Hesselink:


 I think this is a problem with the Mac haskell platform, not with
 cabal. The /usr/bin/ghc on the mac is a shell script, which reads:

 {{{
 #!/bin/sh
 exedir="/Library/Frameworks/GHC.framework/Versions/7.0.4-i386/usr/lib/ghc-7.0.4"
 exeprog="ghc-stage2"
 executablename="$exedir/$exeprog"
 datadir="/Library/Frameworks/GHC.framework/Versions/7.0.4-i386/usr/share"
 bindir="/Library/Frameworks/GHC.framework/Versions/7.0.4-i386/usr/bin"
 topdir="/Library/Frameworks/GHC.framework/Versions/7.0.4-i386/usr/lib/ghc-7.0.4"
 pgmgcc="/Developer/usr/bin/gcc"
 executablename="$exedir/ghc"
 exec "$executablename" -B"$topdir" -pgmc "$pgmgcc" -pgma "$pgmgcc"
 -pgml "$pgmgcc" -pgmP "$pgmgcc -E -undef -traditional"
 -optl"-Wl,-read_only_relocs,suppress" ${1+"$@"}
 }}}

 The line which defines pgmgcc contains the reference to /Developer.
 However, XCode doesn't install there anymore since version 4. See also
 haskell platform ticket 163 at http://trac.haskell.org/haskell-
 platform/ticket/163

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/896#comment:4>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list