[nightly] HEAD
onpowerpc-apple-darwin (chil15.orchestra.cse.unsw.EDU.AU)
Sean Seefried
sseefried at cse.unsw.edu.au
Wed Sep 1 22:46:08 EDT 2004
>> 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.
Sean
More information about the Cvs-ghc
mailing list