Hadrian fails to build just base (no ghc binary)
Summary
I want to build just base (no ghc binary or anything else that is not needed for base) to test my base patch. Hadrian fails.
Steps to reproduce
On a fresh checkout:
./boot && ./configure && ./hadrian/build -j stage0:lib:base
After Hadrian finished to build itself, I got:
# cabal-read (for OracleQ (PackageDataKey (Package {pkgType = Library, pkgName = "base", pkgPath = "libraries/base"})))
| Run GhcPkg Dependencies Stage0: base
| Run GhcPkg Dependencies Stage0: ghc-prim
| Run GhcPkg Dependencies Stage0: integer-gmp
| Run GhcPkg Dependencies Stage0: rts
| Run GhcPkg Unregister Stage0: rts => none
ghc-pkg: cannot find package rts
| Run GhcPkg Copy Stage0: rts => _build/stage0/lib/package.conf.d/rts.conf
| Run GhcPkg Unregister Stage0: ghc-prim => none
ghc-pkg: cannot find package ghc-prim
| Run GhcPkg Copy Stage0: ghc-prim => _build/stage0/lib/package.conf.d/ghc-prim-0.6.1.conf
| Run GhcPkg Unregister Stage0: integer-gmp => none
ghc-pkg: cannot find package integer-gmp
| Run GhcPkg Copy Stage0: integer-gmp => _build/stage0/lib/package.conf.d/integer-gmp-1.0.3.0.conf
| Run GhcPkg Unregister Stage0: base => none
ghc-pkg: cannot find package base
| 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-0ff64ceca903d129ecb521e3f63591842e550e1a547cc8b47288f20a0c85dd48:Development.Shake.Internal.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
Expected behavior
base
builds.
Environment
- GHC version used: 8.10.2 (bootstrapping) and HEAD (78580ba3).
Optional:
- Operating System: Linux
- System Architecture: x86_64