Why cross compile when we already have a native GHC on OpenBSD/x86_64 .. use that to build the source directly.
khaelin: > 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 > [email protected] > _______________________________________________ > Glasgow-haskell-users mailing list > [email protected] > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users _______________________________________________ Glasgow-haskell-users mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
