Cannot build GHC: There are missing files in the ghc-9.3 package
Using my freshly plucked Apple, I am unable to build GHC with Hadrian, getting stuck somewhere along the way:
rae:14:00:01 ~/ghc/ghc-homo> hadrian/build --flavour=devel2+werror --docs=none
Up to date
| Configure package 'rts'
| Run Ghc CompileHs Stage0: ghc/Main.hs => _build/stage0/ghc/build/Main.o
Command line: /Users/rae/local/bin/ghc -Wall -Wcompat -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-env -' '-package-db _build/stage0/lib/package.conf.d' '-package-id array-0.5.4.0' '-package-id base-4.14.3.0' '-package-id bytestring-0.10.12.0' '-package-id containers-0.6.5.1' '-package-id directory-1.3.6.0' '-package-id filepath-1.4.2.1' '-package-id ghc-9.3' '-package-id ghc-boot-9.3' '-package-id process-1.6.13.2' '-package-id transformers-0.5.6.2' '-package-id unix-2.7.2.2' -i -i/Users/rae/ghc/ghc-homo/_build/stage0/ghc/build -i/Users/rae/ghc/ghc-homo/_build/stage0/ghc/build/ghc/autogen -i/Users/rae/ghc/ghc-homo/ghc -I_build/stage0/ghc/build -I/Users/rae/local/stow/ghc-8.10.7/lib/ghc-8.10.7/process-1.6.13.2/include -I/Users/rae/local/stow/ghc-8.10.7/lib/ghc-8.10.7/unix-2.7.2.2/include -I/Users/rae/local/stow/ghc-8.10.7/lib/ghc-8.10.7/time-1.9.3/include -I/Users/rae/local/stow/ghc-8.10.7/lib/ghc-8.10.7/bytestring-0.10.12.0/include -I/Users/rae/local/stow/ghc-8.10.7/lib/ghc-8.10.7/base-4.14.3.0/include -I/Users/rae/local/stow/ghc-8.10.7/lib/ghc-8.10.7/integer-gmp-1.0.3.0/include -I/Users/rae/local/stow/ghc-8.10.7/lib/ghc-8.10.7/include -optP-include -optP_build/stage0/ghc/build/ghc/autogen/cabal_macros.h -outputdir _build/stage0/ghc/build -fdiagnostics-color=always -optc-Wno-unknown-pragmas -optP-Wno-nonportable-include-path -c ghc/Main.hs -o _build/stage0/ghc/build/Main.o -O -H64m -Wall -Wnoncanonical-monad-instances -Wnoncanonical-monoid-instances -rtsopts=all '-with-rtsopts=-K512M -H -I5 -T' -eventlog -threaded -XHaskell2010 -XNoImplicitPrelude -XScopedTypeVariables -XBangPatterns -I_build/stage0/compiler/build
===> Command failed with error code: 1
_build/stage0/lib/../lib/aarch64-osx-ghc-8.10.7/ghc-9.3/GHC/Driver/Hooks.hi
Declaration for Hooks
Constructor Hooks
Constructor Hooks arg_tys:
Failed to load interface for ‘GHC.StgToCmm.Config’
There are files missing in the ‘ghc-9.3’ package,
try running 'ghc-pkg check'.
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
Cannot continue after interface file error
Command failed
Build failed.
Help?