ghc 6.2 build problem (MinGW/MSYS)

Gour gour at
Sun Dec 28 18:15:17 EST 2003

I'm pretty new with GHC and I have prblem building ghc 6.2 with MinGW compiler
in MSYS environment.

After running "configure --prefix=/mingw ; make"

make fails with:

copying ./mpn/generic/gmp-mparam.h to gmp-mparam.h
gcc -E -mno-cygwin  -undef -traditional -I../includes -x c -DHAVE_LIBMINGWEX \
        | sed 's/^#.*$//g' >package.conf.inplace
gcc -E -mno-cygwin  -undef -traditional -I../includes -DINSTALLING -x c -DHAVE_LIBMINGWEX \
        | sed 's/^#.*$//g' >package.conf.installed
../utils/ghc-pkg/ghc-pkg-inplace --update-package <package.conf.inplace
../utils/ghc-pkg/ghc-pkg-inplace: /ghc/utils/ghc-pkg/ghc-pkg.exe: No such file or directory
../utils/ghc-pkg/ghc-pkg-inplace: exec: /ghc/utils/ghc-pkg/ghc-pkg.exe: cannot execute: No such file or directory
make[2]: *** [../driver/stamp-pkg-conf-rts] Error 126
make[1]: *** [boot] Error 1
make[1]: Leaving directory `/home/gour/ghc-6.2/ghc'
make: *** [build] Error 1

I have tried to modify the script by changing paths, but then I broke another

The same source tarball builds normally under Gentoo Linux with appropriate 

Question: does anyone built ghc 6.2 with MinGW & MSYS (via configure)?

(Since on Win98 I compile everything with MinGW/MSYS and install all the 
packages under /mingw tree,I'd like to do the same with ghc, and not to use
binary installer since it comes with its own Perl ...)

I'm using binary ghc-6.0.1 in building process.


gour at
Registered Linux User #278493

More information about the Glasgow-haskell-users mailing list