Hadrian fails to build binary dist with sphinx documentation
Summary
Hadrian fails to build a binary dist.
Steps to reproduce
> ./hadrian/build.stack.sh -c -j --flavour=quick binary-dist
[..]
| Copy file (untracked): docs/index.html => _build/docs/html/index.html
| Run Tar Create: _build/docs/html/libraries => _build/docs/archives/libraries.html.tar.xz
# python3 (for docs)
usage: compare-flags.py [-h] [--ghc GHC] [--doc-flags DOC_FLAGS]
compare-flags.py: error: argument --doc-flags: can't open 'docs/pdfs/users_guide/ghc-flags.txt': [Errno 2] No such file or directory: 'docs/pdfs/users_guide/ghc-flags.txt'
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 docs/pdfs/users_guide/ghc-flags.txt --ghc /home/hsyl20/projects/ghc/doc-flags/_build/stage1/bin/ghc
Exit code: 2
Stderr:
usage: compare-flags.py [-h] [--ghc GHC] [--doc-flags DOC_FLAGS]
compare-flags.py: error: argument --doc-flags: can't open 'docs/pdfs/users_guide/ghc-flags.txt': [Errno 2] No such file or directory: 'docs/pdfs/users_guide/ghc-flags.txt'
)
Indeed docs/pdfs/users_guide/ghc-flags.txt
doesn't exist:
> find . -name ghc-flags.txt
./_build/docs/html/users_guide/ghc-flags.txt
Environment
- GHC version used: HEAD
- Operating System: ArchLinux
- System Architecture: x86-64