Bug#932941: ghc: FTBFS on all architectures which use the unregistered compiler

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.s390
Message-ID <156400797277.2255.9252877175493334217.reportbug__45872.8424318664$1564008147$gmane$org@z6.physik.fu-berlin.de>
Source: ghc
Version: 8.6.5+dfsg1-1
Severity: serious
Tags: upstream ftbfs
Justification: fails to build from source
User: [email protected]
Usertags: s390x

Hi!

GHC currently fails to build from source on all architectures which use
the unregisterised compiler.

It fails with:

/tmp/ghc94391_0/ghc_3.hc:1332:61: error:
     error: ‘stg_MUT_ARR_PTRS_FROZEN0_info’ undeclared (first use in this function); did you mean ‘stg_MUT_ARR_PTRS_FROZEN_DIRTY_info’?
     ((struct {W_ x;} __attribute__((packed))*) _cavk)->x = (W_)&stg_MUT_ARR_PTRS_FROZEN0_info;
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                 stg_MUT_ARR_PTRS_FROZEN_DIRTY_info
     |
1332 | ((struct {W_ x;} __attribute__((packed))*) _cavk)->x = (W_)&stg_MUT_ARR_PTRS_FROZEN0_info;
     |                                                             ^

/tmp/ghc94391_0/ghc_3.hc:1332:61: error:
     note: each undeclared identifier is reported only once for each function it appears in
     |
1332 | ((struct {W_ x;} __attribute__((packed))*) _cavk)->x = (W_)&stg_MUT_ARR_PTRS_FROZEN0_info;
     |                                                             ^
/tmp/ghc94391_0/ghc_3.hc: In function ‘_cayY’:

/tmp/ghc94391_0/ghc_3.hc:2198:61: error:
     error: ‘stg_MUT_ARR_PTRS_FROZEN0_info’ undeclared (first use in this function); did you mean ‘stg_MUT_ARR_PTRS_FROZEN_DIRTY_info’?
     ((struct {W_ x;} __attribute__((packed))*) _sada)->x = (W_)&stg_MUT_ARR_PTRS_FROZEN0_info;
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                 stg_MUT_ARR_PTRS_FROZEN_DIRTY_info

There is an upstream bug report [1] and a crude workaround that Fedora uses [2].

Thanks,
Adrian

> [1] https://gitlab.haskell.org/ghc/ghc/issues/15913
> [2] https://src.fedoraproject.org/rpms/ghc/blob/06d6e9c3cdcf70a4dd3148b3d524c3c4e896aeee/f/ghc.spec#_359

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
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.