Compilation of GHC under Windows

Sigbjorn Finne sof at galois.com
Fri Jan 18 04:15:32 EST 2002


Hi,

the current contents of the CVS repository will require a little
bit of work before it is possible to do a cygwin build using
a mingw-based version of GHC (which ghc-5.02.2 is).

If you're content to do a mingw build instead, try running the
configure script with the extra option
--host=i386-unknown-mingw32 (or --build=i386-unknown-mingw32,
depending on what version of autoconf you're using). Re-make
after that.

hth
--sigbjorn
----- Original Message -----
From: Krasimir Angelov
To: glasgow-haskell-bugs at haskell.org
Sent: Sunday, January 13, 2002 12:01
Subject: Compilation of GHC under Windows


Hi How can I compile GHC from sources under Windows? I tried to compile
ghc-5.02.1 and ghc-5.02.2 under cygwin but the compilation failed. First the
configure program locates the installed Cygwin's ReadLine package and then
then Makefile searches for the ReadLine library from the Haskell's Utils
package. When I remove ReadLine from Cygwin, compilation continues. Second
trouble is related to hsc2hs. After Hsc2Hs generates C program (for example
tst.c) it tries to run it with ./tst. Under Windows this failed because
backslash is treated as option delimiter. After that Hsc2Hs tries to remove
"tst" file instead of "tst.exe". At the end compilation of linker.c also
fails Krasimir







More information about the Glasgow-haskell-bugs mailing list