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

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Wed Jul 24 23:39:32 BST 2019


Source: ghc
Version: 8.6.5+dfsg1-1
Severity: serious
Tags: upstream ftbfs
Justification: fails to build from source
User: debian-s390 at lists.debian.org
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 - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


More information about the Pkg-haskell-maintainers mailing list