Re: ghc: FTBFS on all architectures which use the unregistered compiler

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: ghc: FTBFS on all architectures which use the unregistered compiler

John Paul Adrian Glaubitz
Hi!

On 7/25/19 12:39 AM, John Paul Adrian Glaubitz wrote:
> GHC currently fails to build from source on all architectures which use
> the unregisterised compiler.
James Clarke (CC'ed) has suggested to use these defines for bootstrapping 8.6.5:

In includes/rts/storage/ClosureTypes.h, it should be sufficient to add:

#define MUT_ARR_PTRS_FROZEN0 MUT_ARR_PTRS_FROZEN_DIRTY
#define MUT_ARR_PTRS_FROZEN MUT_ARR_PTRS_FROZEN_CLEAN

#define SMALL_MUT_ARR_PTRS_FROZEN0 SMALL_MUT_ARR_PTRS_FROZEN_DIRTY
#define SMALL_MUT_ARR_PTRS_FROZEN SMALL_MUT_ARR_PTRS_FROZEN_CLEAN

and for rts/RtsSymbols.c, we need to do something similar although I'm not sure
that #defines would work here. Either way, we need to temporarily get the
symbols stg_MUT_ARR_PTRS_FROZEN_info, stg_MUT_ARR_PTRS_FROZEN0_info,
stg_SMALL_MUT_ARR_PTRS_FROZEN_info and stg_SMALL_MUT_ARR_PTRS_FROZEN0_info
back to bootstrap GHC 8.6.5 for unregisterised.

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913