Porting to Cygwin
Simon Marlow
simonmarhaskell at gmail.com
Tue Sep 26 11:50:15 EDT 2006
Joshua Gatcomb wrote:
> I guess I enjoy inflicting pain upon myself. I would like to try and
> compile GHC on cygwin32 using a mingw32 GHC for the GHC dependency.
>
> The issue I am running into is that the "unix" package is required by
> cygwin32 (target) can't be installed on mingw32 (host).
>
> I won't pretend to have any experience cross-compiling anything.
>
> I was hopeful that since this is the same architecture (the same machine
> even), that I would be able to proceed as outlined above.
Yes, it should be possible to go this route.
You're building a stage 1 compiler that is a mingw binary, producing cygwin
executables, i.e. host=mingw, target=cygwin. The configure script doesn't
understand cross-compilation, but you should be able to edit mk/config.mk after
configuration to set up the right host/target values, and then build away. I'm
sure you'll have to fix a few things along the way - this isn't something we
test on a regular basis (in fact, ever).
Cheers,
Simon
More information about the Cvs-ghc
mailing list