Hadrian: validate+profiled_ghc+no_dynamic_ghc fails to build libHSrts-1.0_p.a
Here's what happens:
$ hadrian/build --flavour='validate+profiled_ghc+no_dynamic_ghc'
...
| Run Ghc LinkHs Stage1: _prof-validate/stage1/rts/build/c/Adjustor.dyn_o (and 123 more) => _prof-validate/stage1/rts/build/libHSrts-1.0-ghc9.1.20210129.so
Warning: -rtsopts and -with-rtsopts have no effect with -shared.
Call hs_init_ghc() from your main() function to set these options.
| Copy file: _prof-validate/stage1/lib/ghcversion.h => _prof-validate/stage1/rts/build/ghcversion.h
| Copy file: _prof-validate/stage1/lib/ghcplatform.h => _prof-validate/stage1/rts/build/ghcplatform.h
| Configure package 'hp2ps'
| Copy file: _prof-validate/stage1/lib/DerivedConstants.h => _prof-validate/stage1/rts/build/DerivedConstants.h
# cabal-configure (for _prof-validate/stage1/utils/hp2ps/setup-config)
| Copy file: _prof-validate/stage1/lib/ghcautoconf.h => _prof-validate/stage1/rts/build/ghcautoconf.h
| Copy package 'rts'
# cabal-copy (for _prof-validate/stage1/lib/package.conf.d/rts-1.0.conf)
| Register package 'rts'
# cabal-register (for _prof-validate/stage1/lib/package.conf.d/rts-1.0.conf)
# cabal-configure (for _prof-validate/stage1/libraries/ghc-prim/setup-config)
Error when running Shake build system:
at action, called at src/Rules.hs:40:19 in main:Rules
at need, called at src/Rules.hs:62:5 in main:Rules
* Depends on: _prof-validate/stage1/bin/ghc
at need, called at src/Rules/Register.hs:79:5 in main:Rules.Register
* Depends on: _prof-validate/stage1/lib/x86_64-linux-ghc-9.1.20210129/rts-1.0/libHSrts-1.0_p.a
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:
_prof-validate/stage1/lib/x86_64-linux-ghc-9.1.20210129/rts-1.0/libHSrts-1.0_p.a
If I switch to prof+profiled_ghc+no_dynamic_ghc
, it works fine.