Porting ghc by cross-compiling
Svante Signell
svante.signell at telia.com
Fri Feb 3 23:01:41 CET 2012
On Fri, 2012-02-03 at 14:00 +0000, Simon Marlow wrote:
> On 02/02/2012 14:29, Svante Signell wrote:
> > Hi,
> >
> > I'm working on porting ghc, currently ghc-6.12.3, to GNU/Hurd which is
> > i{3,4,5,6}86. I've followed the instructions at
> > Ticket #3472 says that cross-building is broken: Which versions do this
> > apply to: all 6.x, all 7.x?
>
> Porting via HC files has been bitrotted for some time now, although the
> degree to which it is broken is not entirely clear - someone with enough
> knowledge could probably make it work on a one-off basis to do a port.
I managed to build 6.12.3 with the aid of .hc files. The problem now is
that rts/StgCRun.c:95 (StgRun), called from rts/Schedule.c:484
(schedule) use the function: stg_enter_info , which only seems to be
available for a registered build, not an unregistered, which is required
when cross-building.
> cross-compilation tools that target your platform, I think the way most
> likely to succeed is to try cross compiling using the current HEAD.
> This wiki page has some details:
>
> http://hackage.haskell.org/trac/ghc/wiki/CrossCompilation
>
Thanks, I will try cross-compiling next (if everything else fails) not
cross-building.
BTW: The mail subject should have been cross-build, not cross-compile.
More information about the Cvs-ghc
mailing list