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

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.s390
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.