Bootstrapping GHC 9.14.2-rc1 with GHC-9.12.4?
When trying to build GHC 9.14.2-rc1 with GHC 9.12.4 as the boot compiler the build failed due to a missing "Binary" instance for "HalfWord". I see that Ben Gamari already had to implement a work-around for this: commit b965fa766c6bdf1bf3c8be63a6187e1100051599 Author: Ben Gamari <bgamari.foss@gmail.com> Date: Sat Oct 4 11:45:32 2025 -0400 ghci: Fix CPP guarding Binary HalfWord instance diff --git a/libraries/ghci/GHCi/Message.hs b/libraries/ghci/GHCi/Message.hs index 072f46cd32..c731d33e31 100644 --- a/libraries/ghci/GHCi/Message.hs +++ b/libraries/ghci/GHCi/Message.hs @@ -522,7 +522,7 @@ instance Binary (FunPtr a) where put = put . castFunPtrToPtr get = castPtrToFunPtr <$> get -#if MIN_VERSION_ghc_internal(9,1500,0) +#if MIN_VERSION_ghc_internal(9,1400,0) instance Binary Heap.HalfWord where put x = put (fromIntegral x :: Word32) get = fromIntegral <$> (get :: Get Word32) I had to further reduce this from 1400 to 1204. -- Viktor. 🇺🇦 Слава Україні!
On Mon, Sep 14, 2026 at 01:52:56AM +1000, Viktor Dukhovni via ghc-devs wrote:
When trying to build GHC 9.14.2-rc1 with GHC 9.12.4 as the boot compiler the build failed due to a missing "Binary" instance for "HalfWord".
Alternatively, to build with GHC 9.14.1 as the boot compiler I needed to comment out the "index-state" setting in hadrian's "cabal.project": --- a/hadrian/cabal.project +++ b/hadrian/cabal.project @@ -5,5 +5,5 @@ packages: ./ -- This essentially freezes the build plan for hadrian -- It would be wise to keep this up to date with the state set in .gitlab/ci.sh. -index-state: 2025-01-27T17:45:32Z +-- index-state: 2025-01-27T17:45:32Z -- unordered-containers-0.2.20-r1 requires template-haskell < 2.22 Otherwise no build plan was found. -- Viktor. 🇺🇦 Слава Україні!
Thanks, this will be fixed in the next RC, which I hope to release this week. On 26/09/14 02:33, Viktor Dukhovni via ghc-devs wrote:
On Mon, Sep 14, 2026 at 01:52:56AM +1000, Viktor Dukhovni via ghc-devs wrote:
When trying to build GHC 9.14.2-rc1 with GHC 9.12.4 as the boot compiler the build failed due to a missing "Binary" instance for "HalfWord".
Alternatively, to build with GHC 9.14.1 as the boot compiler I needed to comment out the "index-state" setting in hadrian's "cabal.project":
--- a/hadrian/cabal.project +++ b/hadrian/cabal.project @@ -5,5 +5,5 @@ packages: ./ -- This essentially freezes the build plan for hadrian -- It would be wise to keep this up to date with the state set in .gitlab/ci.sh. -index-state: 2025-01-27T17:45:32Z +-- index-state: 2025-01-27T17:45:32Z
-- unordered-containers-0.2.20-r1 requires template-haskell < 2.22
Otherwise no build plan was found.
-- Viktor. 🇺🇦 Слава Україні! _______________________________________________ ghc-devs mailing list -- ghc-devs@haskell.org To unsubscribe send an email to ghc-devs-leave@haskell.org
participants (2)
-
Viktor Dukhovni -
Zubin Duggal