
#7904: GHC calls the cc1 of a gcc thats not the first in PATH ---------------------------+------------------------------------------------ Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Os: MacOS X | Architecture: x86_64 (amd64) Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ---------------------------+------------------------------------------------ Changes (by carter): * status: closed => new * resolution: wontfix => Comment: No, you misunderstand: i am saying that when I explicitly tell ghc to use either gcc-4.8 or clang, through -pgmc gcc-4.8 or -pgmc clang along with say trying the approach described in [http://stackoverflow.com/questions/2528887/c-compiler-selection-in-cabal- package this stack overflow discussion], ghc is still using the cc1 of gcc-llvm-4.2, which was used to build the ghc. I will attach the dtrace logs from my -fllvm and -pgmc clang run to provide proof of this. let me restate this: GHC ignores what compiler i tell it to use when it reaches the point where cc1 is called. There is no "default", there is a hard coded BUG. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7904#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler