GHC HEAD build error

Hello, I'm trying to build GHC HEAD but get the following error: "inplace/bin/ghc-stage1" -H64m -O0 -fasm -Iincludes -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen -optc-O2 -c rts/HeapStackCheck.cmm -o rts/dist/build/HeapStackCheck.o rts/HeapStackCheck.cmm:159:305: parse error on input `(' The bug is in the GC_GENERIC macro on line 99: Capability_interrupt(MyCapability()) != 0 :: CInt However, I can't spot the problem. Bas

On Wed, Dec 07, 2011 at 04:45:31PM +0100, Bas van Dijk wrote:
"inplace/bin/ghc-stage1" -H64m -O0 -fasm -Iincludes -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen -optc-O2 -c rts/HeapStackCheck.cmm -o rts/dist/build/HeapStackCheck.o
rts/HeapStackCheck.cmm:159:305: parse error on input `('
This is probably caused by old header files in includes/. Updating to the latest HEAD and making clean should fix it. Thanks Ian

On Wednesday 07 December 2011, 16:45:31, Bas van Dijk wrote:
Hello,
I'm trying to build GHC HEAD but get the following error:
"inplace/bin/ghc-stage1" -H64m -O0 -fasm -Iincludes -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen -optc-O2 -c rts/HeapStackCheck.cmm -o rts/dist/build/HeapStackCheck.o
rts/HeapStackCheck.cmm:159:305: parse error on input `('
The bug is in the GC_GENERIC macro on line 99:
Capability_interrupt(MyCapability()) != 0 :: CInt
However, I can't spot the problem.
I had the same recently, it's probably because GHCConstants.h and DerivedConstants.h have been moved but you still have them in include/ from a previous build. Deleting them should fix it.
participants (3)
-
Bas van Dijk
-
Daniel Fischer
-
Ian Lynagh