[Haskell-cafe] Compiling GHC

Chris Witte cwitte at gmail.com
Wed Apr 11 05:52:02 EDT 2007

On 4/11/07, Andrew Appleyard <aja at cse.unsw.edu.au> wrote:

> The source paths for these copies are derived from the path of the
> gcc binary ($GccDir).  Did you call configure with '--with-gcc=C:/
> Mingw/bin/gcc.exe'?  I received those errors when I forgot to do that.

Yep that fixed that. Thanks.

> I think that 'gettimeofday' is statically linked into the ghc
> executable, so it's just that GHCi doesn't know about it.  Adding a:
>    Sym(gettimeofday) \
> line to the RTS_MINGW_ONLY_SYMBOLS #define in rts/Linker.c (from line
> 265) seemed to fix the problem for me.
> I'm not sure if this is a GHCi bug or something else being awry.
> 'gettimeofday' was added to the mingwex library in mingw-
> runtime-3.10, which was released in July last year, so I would have
> expected this problem to have come up before now...

I made this change but I still get the error
unknown symbol `_gettimeofday'
I'm using mingw 5.1.3 which as far as i can tell should use the 3.11 runtime.

More information about the Haskell-Cafe mailing list