#19856: ghc: uses "gcc" -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: gwright@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: ghc -------------------------------------+-------------------------------------- Comment(by ryandesign@…): On Tiger/Intel, ghc @6.10.3_7 (with or without the +cabal_configure_debug variant) says: {{{ checking for path to top of build tree... gcc -I. -I/mp/include -c /tmp/ghc9619_0/ghc9619_0.s -o pwd.o gcc: Error: You should be using ${configure.cc} See http://trac.macports.org/wiki/UsingTheRightCompiler }}} That's these lines in the configure script: {{{ { $as_echo "$as_me:$LINENO: checking for path to top of build tree" >&5 $as_echo_n "checking for path to top of build tree... " >&6; } if test ! -f utils/pwd/pwd && test ! -f utils/pwd/pwd.exe; then cd utils/pwd rm -f *.o rm -f *.hi rm -f pwd rm -f pwd.exe $WithGhc -v0 --make pwd -o pwd cd ../.. fi }}} $WithGhc presumably is the ghc-bootstrap/bin/ghc binary, and I can replicate the problem myself running that command, if I set up the environment the same: {{{ cd $(port work ghc)/ghc-6.10.3/utils/pwd PATH=/mp/bin/no_default_gcc:/bin:/sbin:/usr/bin:/usr/sbin \ DYLD_LIBRARY_PATH=../../../ghc-bootstrap/lib:/mp/lib \ ../../../ghc-bootstrap/bin/ghc -v0 --make pwd -o pwd gcc -I. -I/mp/include -c /tmp/ghc9734_0/ghc9734_0.s -o pwd.o gcc: Error: You should be using ${configure.cc} See http://trac.macports.org/wiki/UsingTheRightCompiler }}} So ghc-bootstrap/bin/ghc is itself running "gcc". Would that maybe be fixed if this ghc bootstrap had been compiled with the --with-gcc flag pointing at the right compiler, or is there maybe a runtime switch that can be given to ghc to tell it where gcc is? -- Ticket URL: <http://trac.macports.org/ticket/19856#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS