
#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: ---------------------------+------------------------------------------------ Comment(by carter): mark lentczer has pointed out that the settings file in <local ghc base dir>/lib/ghc<ghcversion> has a field ("C compiler command", "/usr/bin/gcc"), and when i change it to be "clang" or "gcc-4.8" to match the rest of the build process, things work or at least i discover new problems that aren't quite this one :) @ igloo, i'll try that shortly. what are the default values for -pgml and -pgma? when i fix up the ghc settings file to point to my gcc, when i run the build i get {{{ cabal configure ; cabal build 1 ↵ Resolving dependencies... Configuring numerics-0.1.0.0... Building numerics-0.1.0.0... Preprocessing library numerics-0.1.0.0... /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc8512_0/ghc8512_0.s:18:0: no such instruction: `vmovsd (%rsi), %xmm1' /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc8512_0/ghc8512_0.s:19:0: no such instruction: `vmovsd 8(%rsi), %xmm0' /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc8512_0/ghc8512_0.s:20:0: no such instruction: `vmulsd (%rdx), %xmm1,%xmm1' /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc8512_0/ghc8512_0.s:21:0: no such instruction: `vmulsd 8(%rdx), %xmm0,%xmm0' }}} with the no such instruction verbiage going on for a few hundred more lines. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7904#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler