Shin-Cheng Mu writes:
> Hello, my Hero Haskell Hackers, :)
> 
> Compiling GHC 3.02 for i386 Linux, the make process stops 
> at the point when compiling ghc/lib/posix/PosixProcPrim.lhs.
> The error message generated is attached below.
> 
> I tried the patch suggested by Carl R. Witty (I'm not sure
> whether it was to my problem, through), it doesn't work either.
> Do you have any idea what went wrong?
> 

Hi,

try editing ghc/lib/posix/Makefile, changing the line

PosixProcPrim_HC_OPTS ='-\#include"cbits/libposix.h"'

to

PosixProcPrim_HC_OPTS ='-\#include"cbits/libposix.h"' -monly-3-regs

(and if that doesn't work, try changing it to -monly-2-regs)

What Linux distribution / version of gcc are you using?

hth,
--Sigbjorn

Reply via email to