[nightly] HEAD
onpowerpc-apple-darwin (chil15.orchestra.cse.unsw.EDU.AU)
Simon Marlow
simonmar at microsoft.com
Thu Sep 2 08:37:23 EDT 2004
On 02 September 2004 03:46, Sean Seefried wrote:
>>> But I think I have found the problem.
>>>
>>> % gcc3 -E -traditional Apply.cmm
>>>
>>> gives:
>>>
>>> gcc3: Apply.cmm: linker input file unused because linking not done
>>>
>>> At first I thought the fact that gcc3 thinks it's an Objective C
>>> program. Close. In fact, it thinks it's an Objective C++ program.
>>> Adding the flag '-x c' to the command line makes this problem go
>>> away. We'll see how the build goes tomorrow.
>>
>> I'm confused. GHC already passes -x c to gcc when doing
>> preprocessing.
>>
>> Why do you need to set -pgmP? Doesn't configure find the right one?
>>
>> Have you checked the output from -v?
>>
>
> Okay, I didn't really understand how the .cmm files were being
> compiled. The '-x c' flag was being passed already. It turns out
> that the required fix is -pgmc "gcc3" which forces the use of gcc 3.1
> rather than gcc 3.3. I think the problem is probably due to what
> Wolfgang said: gcc 3.3 has a funny way of putting "#pragma"
> definitions in preprocessed output.
Does adding -P to the gcc command line help?
Cheers,
Simon
More information about the Cvs-ghc
mailing list