cross-compiling ghc to openbsd

Nicolas Martyanoff khaelin at
Fri Jan 29 12:10:52 EST 2010


I'm trying to cross-compile GHC as follows:

Host: Linux, x86_64, GHC 6.12.1
Target: OpenBSD 4.6 stable, i386

I follow the guide at:

I downloaded the last stable source tarball (ghc-6.12.1-src.tar.bz2), then ran
the following commands:

cp /bin/pwd utils/ghc-pwd/ghc-pwd
sh boot
./configure --enable-hc-boot --build=i386-unknown-openbsd --host=i386-unknown-openbsd --target=i386-unknown-openbsd
gmake bootstrapping-files

The latest fails, with the following trace:

The following errors are quite interesting:
    includes/stg/Types.h:103:2: #error GHC untested on this architecture: sizeof(void *) != 4 or 8
    includes/rts/Constants.h:156:2: #error unknown SIZEOF_VOID_P

Does someone what's going on with this build ?
Is there something I can to to help on these issues ?


Nicolas Martyanoff
   khaelin at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url :

More information about the Glasgow-haskell-users mailing list