General summary
Building a recent version of GHC from source by specifying compiler: ghc-git-COMMIT-FLAVOUR in a stack.yaml (as described here) fails with the following error:
Building GHC from source with `quick` flavour. It can take a long time (more than one hour)...
Did not find executable at specified path: /tmp/with-repo468829/cloned/hadrian/build.stack.sh
Steps to reproduce
For example:
- Create
stack.yaml with
compiler: ghc-git-7bc7eea3897dcb8a87fdb0921f451b9bc77309f6-quickest
(This is the newest GHC commit at the time of writing)
- Run
stack build
Expected
The script hadrian/build-stack should be invoked.
Actual
The script hadrian/build.stack.sh was invoked (apparently the script has been renamed).
Stack version
$ stack --version
Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0
Method of installation
Official binary