#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 _______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel