cross-compiling ghc to openbsd
dons at galois.com
Fri Jan 29 19:34:04 EST 2010
Why cross compile when we already have a native GHC on OpenBSD/x86_64 ..
use that to build the source directly.
> 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:
> 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:
> 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 gmail.com
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
More information about the Glasgow-haskell-users