#5390: Hard-coded /Developer path in Mac ghc ---------------------------------+------------------------------------------ Reporter: Ahruman | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.0.3 Keywords: platform | Testcase: Blockedby: | Difficulty: Os: MacOS X | Blocking: Architecture: Unknown/Multiple | Failure: GHC doesn't work at all ---------------------------------+------------------------------------------ Description changed by igloo:
Old description: > The Haskell Platform package for Mac OS X installs a /usr/bin/ghc script > which hard-codes the path to gcc as: > > pgmgcc="/Developer/usr/bin/gcc" > > This is incorrect, as Xcode tools can be installed at semi-arbitrary > locations, and there may be several versions installed. The correct > approach is: > > developerpath=`xcode-select --print-path` # Produces "/Developer" or > alternative path > pgmgcc="$developerpath/usr/bin/gcc" New description: The Haskell Platform package for Mac OS X installs a /usr/bin/ghc script which hard-codes the path to gcc as: {{{ pgmgcc="/Developer/usr/bin/gcc" }}} This is incorrect, as Xcode tools can be installed at semi-arbitrary locations, and there may be several versions installed. The correct approach is: {{{ developerpath=`xcode-select --print-path` # Produces "/Developer" or alternative path pgmgcc="$developerpath/usr/bin/gcc" }}} -- -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5390#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs