building ghc from source

Sven Panne Sven.Panne@informatik.uni-muenchen.de
Sat, 24 May 2003 14:25:14 +0200


johago@web.de wrote:
 > [...] 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 ) )

into

    import System.Posix.Internals( FDType( RegularFile ) )

in Win32Spawn.hs? This would be much easier. Just a guess...

Cheers,
    S.