Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc Segmentation fault)

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Wed Oct 4 11:26:39 BST 2023


Hi!

On Wed, 2023-10-04 at 11:59 +0200, John Paul Adrian Glaubitz wrote:
> FWIW, I have not been able to build GHC from git on 32-bit PowerPC even for 8.10.7. I assume,
> I will need to add some of Debian's patches on top of vanilla GHC in order to get the build
> to succeed.
> 
> Trying to build GHC 9.0.2 fails for example with:
> 
> > http://paste.debian.net/hidden/31954e9a/

Looking at the ghc package in openSUSE, I found this patch [1] which disables unboxed arrays
in order to fix the build on big-endian systems. And, indeed, disabling unboxed arrays in
libraries/containers/containers/include/containers.h allows me to fully build ghc from git
on 32-bit PowerPC. See also [2].

I have now a working reproducer and can now start bisecting between 8.10.7 and 9.0.2.

Adrian

> [1] https://build.opensuse.org/package/view_file/devel:languages:haskell/ghc/Disable-unboxed-arrays.patch?expand=1
> [2] https://gitlab.haskell.org/ghc/ghc/-/issues/16998

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the Pkg-haskell-maintainers mailing list