Skip to content

Building GHC with profiling fails

Summary

Building GHC HEAD with profiling fails:

hadrian/build --flavour=quick+no_dynamic_ghc+profiled_ghc -j

...

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: _build/stage1/bin/ghc
  at need, called at src/Rules/Register.hs:79:5 in main:Rules.Register
* Depends on: _build/stage1/lib/x86_64-linux-ghc-9.1.20210124/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-c7ea64c194680cf712cabbf4a6f3458de7c54133554936ab854aaa66e6ef4da0:Development.Shake.Internal.Rules.File
* Raised the exception:
Error, rule finished running but did not produce file:
  _build/stage1/lib/x86_64-linux-ghc-9.1.20210124/rts-1.0/libHSrts-1.0_p.a

Steps to reproduce

git clone --recurse-submodules git@gitlab.haskell.org:ghc/ghc.git
nix-shell nix-shell https://github.com/alpmestan/ghc.nix/archive/master.tar.gz
configure_ghc
hadrian/build --flavour=quick+no_dynamic_ghc+profiled_ghc -j

Expected behavior

GHC compiles successfully

Environment

  • GHC version used: 8.8.4
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information