[Haskell-cafe] Compiling GHC
cwitte at gmail.com
Tue Apr 10 02:45:23 EDT 2007
HAVE_GETTIMEOFDAY is defined. I wrote a quick c program to check and I
can use gettimeofday fine. I can't work out why ghc can't find it. How
can I work out where ghc is searching to find it?
On 3/30/07, Ian Lynagh <igloo at earth.li> wrote:
> On Fri, Mar 30, 2007 at 04:36:32PM +1000, Chris Witte wrote:
> > I'm tying to compile GHC under mingw (winxp with mingw no cygwin),
> > Loading package base ... linking ... ghc.exe: unable to load package `base'
> > ghc.exe:
> > C:/msys/1.0/local/HSbase.o: unknown symbol `_gettimeofday'
> > any ideas on what could be causing this.
> What does
> grep -i gettimeofday mk/config.h
> If HAVE_GETTIMEOFDAY is defined then either comment it out (between
> running configure and running make), or work out why the configure test
> is succeeding but it doesn't work when GHC tries to use it.
More information about the Haskell-Cafe