[Haskell-cafe] Compiling GHC

Chris Witte cwitte at gmail.com
Thu Apr 12 21:03:22 EDT 2007

Awesome that works!
Thanks for your help.

Well that works for the ghc-6.7.20070402 tar ball but if I try and
pull down the darcs head it fails to make with

make[1]: Entering directory `/c/cwitte/source/ghc/libraries'
rm -f -f stamp/configure.library.*.base
cd base && setup/Setup configure \
                     --prefix=/usr/local \
                     --with-compiler=../../compiler/ghc-inplace.bat \
                     --with-hc-pkg=../../utils/ghc-pkg/ghc-pkg-inplace.bat \
                     --with-hsc2hs=../../utils/hsc2hs/hsc2hs-inplace.bat \
                     --with-ld=/mingw/bin/ld \
                     --datasubdir=ghc \
--use-index=../doc-index.html" \
The system cannot find the path specified.
make[1]: *** [stamp/configure.library.build.base] Error 1
make[1]: Leaving directory `/c/cwitte/source/ghc/libraries'
make: *** [stage1] Error 2

I wonder what has changed between then and now to cause this.

On 4/12/07, Andrew Appleyard <aja at cse.unsw.edu.au> wrote:
> On 11/04/2007, at 7:52 pm, Chris Witte wrote:
> > 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.
> Ensure that HAVE_GETTIMEOFDAY is defined in mk/config.h.
> Also, I discovered that changes to Linker.c don't make it into
> ghc.exe if you just do a 'make' in the base directory.  You need to
> make the RTS, then link ghc with the new RTS.  The following commands
> work for me (more typing, but a lot faster than making clean):
>    make -C rts
>    rm compiler/stage2/ghc.exe
>    make -C compiler stage=2
>    make install
> Hope that helps.
> Regards,
> Andrew.

More information about the Haskell-Cafe mailing list