`build-cabal` target broken with devel2 flavour
From #23490 (comment 514289) :
I tried running
hadrian/build build-cabal
at 9c8fdda3 and get seemingly-unrelated errors after a lot of building, which look like this:src/Utils/Containers/Internal/TypeError.hs:11:1: error: [GHC-47808] Failed to load dynamic interface file for GHC.TypeLits: Exception when reading interface file /path/to/tree/_build/stage1/lib/../lib/x86_64-linux-ghc-9.9.20230719/base-4.18.0.0-inplace/GHC/TypeLits.dyn_hi /path/to/tree/_build/stage1/lib/../lib/x86_64-linux-ghc-9.9.20230719/base-4.18.0.0-inplace/GHC/TypeLits.dyn_hi: withBinaryFile: does not exist (No such file or directory) | 11 | import GHC.TypeLits | ^^^^^^^^^^^^^^^^^^^
This looks a bug in hadrian. (I've selected devel2 as my default flavour.) If the
*.dyn_hi
files will be needed later, either they should get built or hadrian should complain immediately without building intermediate junk for 90 minutes first.