./hadrian/build.sh docs-haddock fails complaining on llvm-targets
With the current master:
$ ./boot && ./configure && ./hadrian/build.sh docs-haddock
...
/--------------------------------------------------------------------------\
| Successfully built program 'haddock' (Stage1). |
| Executable: _build/stage1/bin/haddock |
| Program synopsis: A documentation-generation tool for Haskell libraries. |
\--------------------------------------------------------------------------/
| Run Haddock BuildPackage: libraries/ghc-prim/GHC/CString.hs (and 9 more) => _build/docs/html/libraries/ghc-prim/ghc-prim.haddock
Error when running Shake build system:
at want, called at src/Main.hs:89:30 in main:Main
* Depends on: docs-haddock
at need, called at src/Rules/Documentation.hs:77:9 in main:Rules.Documentation
* Depends on: _build/docs/html/libraries/index.html
at need, called at src/Rules/Documentation.hs:164:9 in main:Rules.Documentation
* Depends on: _build/docs/html/libraries/ghc-prim/ghc-prim.haddock
* Raised the exception:
user error (Development.Shake.cmd, system command failed
Command line: _build/stage1/bin/haddock --verbosity=0 -B_build/stage1/lib --lib=_build/stage1/lib --odir=_build/docs/html/libraries/ghc-prim --no-tmp-comp-dir --dump-interface=_build/docs/html/libraries/ghc-prim/ghc-prim.haddock --html --hyperlinked-source --hoogle --quickjump '--title=ghc-prim-0.6.1: GHC primitives' --prologue=_build/docs/html/libraries/ghc-prim/haddock-prologue.txt --optghc=-D__HADDOCK_VERSION__=2220 --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-hide-all-packages --optghc=-no-user-package-db '--optghc=-this-unit-id ghc-prim-0.6.1' '--optghc=-package-id rts-1.0' --optghc=-i --optghc=-i_build/stage1/libraries/ghc-prim/build --optghc=-i_build/stage1/libraries/ghc-prim/build/autogen --optghc=-ilibraries/ghc-prim/. --optghc=-Iincludes --optghc=-I_build/generated --optghc=-I_build/stage1/libraries/ghc-prim/build --optghc=-I/home/artem/Dev/ghc/wt-haddock/_build/stage1/lib/x86_64-linux-ghc-8.9.0.20190728/rts-1.0/include --optghc=-I_build/generated --optghc=-optc-I_build/generated --optghc=-optP-include --optghc=-optP_build/stage1/libraries/ghc-prim/build/autogen/cabal_macros.h --optghc=-outputdir --optghc=_build/stage1/libraries/ghc-prim/build --optghc=-this-unit-id --optghc=ghc-prim --optghc=-XHaskell2010 --optghc=-ghcversion-file=/home/artem/Dev/ghc/wt-haddock/_build/generated/ghcversion.h --optghc=-Wno-deprecated-flags --optghc=-Wno-trustworthy-safe libraries/ghc-prim/GHC/CString.hs libraries/ghc-prim/GHC/Classes.hs libraries/ghc-prim/GHC/Debug.hs libraries/ghc-prim/GHC/IntWord64.hs libraries/ghc-prim/GHC/Magic.hs libraries/ghc-prim/GHC/Prim/Ext.hs _build/stage1/libraries/ghc-prim/build/GHC/PrimopWrappers.hs libraries/ghc-prim/GHC/Tuple.hs libraries/ghc-prim/GHC/Types.hs _build/stage1/libraries/ghc-prim/build/GHC/Prim.hs +RTS -t_build/stage1/haddock-timing-files/ghc-prim.t --machine-readable -RTS
Exit code: 1
Stderr:
)
$ _build/stage1/bin/haddock --verbosity=0 -B_build/stage1/lib --lib=_build/stage1/lib --odir=_build/docs/html/libraries/ghc-prim --no-tmp-comp-dir --dump-interface=_build/docs/html/libraries/ghc-prim/ghc-prim.haddock --html --hyperlinked-source --hoogle --quickjump '--title=ghc-prim-0.6.1: GHC primitives' --prologue=_build/docs/html/libraries/ghc-prim/haddock-prologue.txt --optghc=-D__HADDOCK_VERSION__=2220 --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-hide-all-packages --optghc=-no-user-package-db '--optghc=-this-unit-id ghc-prim-0.6.1' '--optghc=-package-id rts-1.0' --optghc=-i --optghc=-i_build/stage1/libraries/ghc-prim/build --optghc=-i_build/stage1/libraries/ghc-prim/build/autogen --optghc=-ilibraries/ghc-prim/. --optghc=-Iincludes --optghc=-I_build/generated --optghc=-I_build/stage1/libraries/ghc-prim/build --optghc=-I/home/artem/Dev/ghc/wt-haddock/_build/stage1/lib/x86_64-linux-ghc-8.9.0.20190728/rts-1.0/include --optghc=-I_build/generated --optghc=-optc-I_build/generated --optghc=-optP-include --optghc=-optP_build/stage1/libraries/ghc-prim/build/autogen/cabal_macros.h --optghc=-outputdir --optghc=_build/stage1/libraries/ghc-prim/build --optghc=-this-unit-id --optghc=ghc-prim --optghc=-XHaskell2010 --optghc=-ghcversion-file=/home/artem/Dev/ghc/wt-haddock/_build/generated/ghcversion.h --optghc=-Wno-deprecated-flags --optghc=-Wno-trustworthy-safe libraries/ghc-prim/GHC/CString.hs libraries/ghc-prim/GHC/Classes.hs libraries/ghc-prim/GHC/Debug.hs libraries/ghc-prim/GHC/IntWord64.hs libraries/ghc-prim/GHC/Magic.hs libraries/ghc-prim/GHC/Prim/Ext.hs _build/stage1/libraries/ghc-prim/build/GHC/PrimopWrappers.hs libraries/ghc-prim/GHC/Tuple.hs libraries/ghc-prim/GHC/Types.hs _build/stage1/libraries/ghc-prim/build/GHC/Prim.hs +RTS -t_build/stage1/haddock-timing-files/ghc-prim.t --machine-readable -RTS
haddock: internal error: _build/stage1/lib/llvm-targets: openFile: does not exist (No such file or directory)