cross-compiling ghc to openbsd

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


Hi,

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:
    http://hackage.haskell.org/trac/ghc/wiki/Building/Porting

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

export AUTOCONF_VERSION=2.62
export AUTOMAKE_VERSION=1.9
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:
    http://pastebin.ca/1770926

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 ?

Regards,

-- 
Nicolas Martyanoff
   http://codemore.org
   khaelin at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20100129/8f1d6524/attachment.bin


More information about the Glasgow-haskell-users mailing list