[Hadrian]: building base in stage0 fails
Maybe this is not supported, if so the target should not be listed by ./hadrian/build --help
.
Steps to reproduce
./hadrian/build stage0:lib:base
Up to date
| Run GhcPkg Dependencies Stage0: base
| Run GhcPkg Dependencies Stage0: rts
| Run GhcPkg Unregister Stage0: base => none
unregistering would break the following packages: ghc-9.1 text-1.2.4.0 Cabal-3.5.0.0 process-1.6.9.0 parsec-3.1.14.0 ghci-9.1 ghc-heap-9.1 exceptions-0.10.4 hpc-0.6.1.0 stm-2.5.0
.0 mtl-2.2.2 ghc-boot-9.1 template-haskell-2.17.0.0 terminfo-0.4.1.4 pretty-1.1.3.6 transformers-0.5.6.2 binary-0.8.7.0 directory-1.3.6.0 unix-2.7.2.2 ghc-boot-th-9.1 bytestring-
0.10.12.0 containers-0.6.2.1 time-1.9.3 deepseq-1.4.4.0 array-0.5.4.0 filepath-1.4.2.1 (ignoring)
| Run GhcPkg Copy Stage0: base => _build/stage0/lib/package.conf.d/base-4.16.0.0.conf
Error when running Shake build system:
at want, called at src/Main.hs:102:30 in main:Main
* Depends on: stage0:lib:base
at need, called at src/Rules/SimpleTargets.hs:35:5 in main:Rules.SimpleTargets
* Depends on: _build/stage0/lib/package.conf.d/base-4.16.0.0.conf
at error, called at src/Development/Shake/Internal/Rules/File.hs:179:58 in shake-0.19.1-df88b13208f8eb5ea0801abb8928359ab04513e4e841855f5ed55df01ccb16a2:Development.Shake.Inter
nal.Rules.File
* Raised the exception:
Error, rule finished running but did not produce file:
_build/stage0/lib/package.conf.d/base-4.16.0.0.conf