cross-compiling ghc to openbsd

Donn Cave donn at avvanta.com
Fri Jan 29 14:54:47 EST 2010


Quoth Nicolas Martyanoff <khaelin at gmail.com>,
...
> The latest fails, with the following trace:
>     http://pastebin.ca/1770926

Can you look at the include files, at the locations where all these
errors crop up?  like,
  includes/stg/Types.h:118: error: syntax error before '*' token

This probably means some type identifier used at that point hasn't
been declared, or macro defined or whatever.  You'd have to see
what it is, and maybe it will be more obvious what went wrong.

But of course Matthias is right, the configuration of build and
target hosts you propose to use probably isn't going to work.  The
idea is that you do this configure step on the OpenBSD host, right?
and then transplant this configuration (a couple of .h files, etc.)
to the build host and proceed to build the .hc files.  That means
the build host has to be a lot like the target host, or that build
will be radically misconfigured.  Same hardware architecture, at a
minimum.

	Donn



More information about the Glasgow-haskell-users mailing list