Hadrian can't build a binary-dist because of undocumented flags
Summary
Hadrian can't build a binary distribution because some flags are not documented
Steps to reproduce
> ./hadrian/build.stack.sh -c -j --flavour=quick binary-dist --docs=no-sphinx-pdfs
[..]
| Create directory _build/bindist/ghc-8.11.0.20200212-x86_64-unknown-linux
| Copy directory: _build/stage1/bin => _build/bindist/ghc-8.11.0.20200212-x86_64-unknown-linux
| Copy directory: _build/stage1/lib => _build/bindist/ghc-8.11.0.20200212-x86_64-unknown-linux
| Copy directory: _build/stage1/lib/x86_64-linux-ghc-8.11.0.20200212/rts-1.0/include => _build/bindist/ghc-8.11.0.20200212-x86_64-unknown-linux
# python3 (for docs)
Error when running Shake build system:
at want, called at src/Main.hs:89:30 in main:Main
* Depends on: binary-dist
at apply1, called at src/Development/Shake/Internal/Rules/Rerun.hs:41:5 in shake-0.18.3-K6N2eLzVtai6jtZeWAmEIo:Development.Shake.Internal.Rules.Rerun
* Depends on: binary-dist-dir
at need, called at src/Rules/BinaryDist.hs:124:9 in main:Rules.BinaryDist
* Depends on: docs
* Raised the exception:
user error (Development.Shake.cmd, system command failed
Command line: /usr/bin/python3 /home/hsyl20/projects/ghc/doc-flags/docs/users_guide/compare-flags.py --doc-flags _build/docs/html/users_guide/ghc-flags.txt --ghc /home/hsyl20/projects/ghc/doc-flags/_build/stage1/bin/ghc
Exit code: 1
Stderr:
)
>/usr/bin/python3 /home/hsyl20/projects/ghc/doc-flags/docs/users_guide/compare-flags.py --doc-flags _build/docs/html/users_guide/ghc-flags.txt --ghc /home/hsyl20/projects/ghc/doc-flags/_build/stage1/bin/ghc
Found 3 flags not documented in the users guide:
-Wtyped-holes
-Wunrecognised-warning-flags
-ddump-srts
Environment
- GHC version used: HEAD
- Operating System: ArchLinux
- System Architecture: x86-64