building ghc from source
Sat, 24 May 2003 14:25:14 +0200
> [...] According to Mike Thomas' and Derek Elkins' posts, I also
> enabled HAVE_O_BINARY in config.h.
Huh? I didn't follow this thread very closely, but this sounds like a
bug in GHC's aclocal.m4 (macro FPTOOLS_O_BINARY) which should be
fixed. What does configure say in the line starting with:
checking whether we can open files in binary mode...
> [...] Unfortunately, module GHC.Posix doesn't exist. [...]
Could you try changing
import GHC.Posix( FDType( RegularFile ) )
import System.Posix.Internals( FDType( RegularFile ) )
in Win32Spawn.hs? This would be much easier. Just a guess...