Allow unregisterised ghc-8.6 to build newer GHC
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Tue, 11 Aug 2020 14:12:43 +0000 (15:12 +0100)
committerIlias Tsitsimpis <iliastsi@debian.org>
Tue, 11 Aug 2020 14:12:43 +0000 (15:12 +0100)
commit5d29b95c351c77fb68915e7817f8a17bd5c2a1f3
treea04af585e9d8179e7cf7c4bb63c30e8d801e9101
parent9436f34cf92990112c0e5908084411b2912a53a3
Allow unregisterised ghc-8.6 to build newer GHC

Commit af9b744bbf1 introduced a regression stopping existing unregisterised
compilers from being able to compile newer versions of GHC. The problem is
that the bootstrap compiler uses the newer `includes/stg/MiscClosures.h` file
where some defines have been renamed, resulting in the following error:
.
 error: ‘stg_atomicModifyMutVarzh’ undeclared (first use in this function); did you mean ‘stg_atomicModifyMutVar2zh’?
.
 For more information, see https://gitlab.haskell.org/ghc/ghc/issues/17111.
.
 This patch can be removed, once ghc-8.6 is no longer the bootstrap compiler.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://gitlab.haskell.org/ghc/ghc/issues/17111

Gbp-Pq: Name fix-build-using-unregisterised-v8.6
includes/stg/MiscClosures.h