Hadrian fails to build docs on windows.
On current master. Running windows/msys.
Andi@Horzube MINGW64 /e/ghc
$ sphinx-build --version
sphinx-build 3.0.2
hadrian log
$ hadrian/build docs
Warning: The package list for 'hackage.haskell.org' is 24 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Up to date
| Run Sphinx LatexMode: utils/haddock/doc => C:/Users/Andi/AppData/Local/Temp/extra-dir-251659956816
| Run Sphinx LatexMode: docs/users_guide => C:/Users/Andi/AppData/Local/Temp/extra-dir-251659956817
WARNING: Support for evaluating Python 2 syntax is deprecated and will be removed in Sphinx 4.0. Convert E:/ghc/docs/users_guide/conf.py to Python 3 syntax.
E:/ghc/docs/users_guide/9.0.1-notes.rst:52: WARNING: Unexpected indentation.
E:/ghc/docs/users_guide/exts/explicit_forall.rst:40: WARNING: Inline literal start-string without end-string.
E:/ghc/docs/users_guide/exts/explicit_forall.rst:40: WARNING: Inline literal start-string without end-string.
E:/ghc/docs/users_guide/exts/instances.rst:146: WARNING: Inline literal start-string without end-string.
E:/ghc/docs/users_guide/exts/instances.rst:148: WARNING: Inline literal start-string without end-string.
E:/ghc/docs/users_guide/exts/instances.rst:148: WARNING: Inline literal start-string without end-string.
E:/ghc/docs/users_guide/exts/instances.rst:158: WARNING: Inline literal start-string without end-string.
E:/ghc/docs/users_guide/exts/instances.rst:158: WARNING: Inline literal start-string without end-string.
E:/ghc/docs/users_guide/phases.rst:314: WARNING: duplicate ghc-flag description of -U\u27e8symbol\u27e9, other instance in phases
E:/ghc/docs/users_guide/phases.rst:314: WARNING: duplicate ghc-flag description of -U?symbol?, other instance in phases
E:/ghc/docs/users_guide/phases.rst:578: WARNING: duplicate ghc-flag description of -fllvm, other instance in phases
E:/ghc/docs/users_guide/profiling.rst:397: WARNING: duplicate ghc-flag description of -fno-prof-auto, other instance in profiling
E:/ghc/docs/users_guide/profiling.rst:407: WARNING: duplicate ghc-flag description of -fno-prof-cafs, other instance in profiling
E:/ghc/docs/users_guide/runtime_control.rst:1117: WARNING: duplicate rts-flag description of -hT, other instance in profiling
E:/ghc/docs/users_guide/runtime_control.rst:1117: WARNING: duplicate rts-flag description of -h, other instance in profiling
E:/ghc/docs/users_guide/runtime_control.rst:1315: WARNING: duplicate rts-flag description of -xc, other instance in profiling
E:/ghc/docs/users_guide/using.rst:322: WARNING: duplicate ghc-flag description of -c, other instance in phases
E:/ghc/docs/users_guide/using.rst:377: WARNING: duplicate ghc-flag description of --show-iface \u27e8file\u27e9, other instance in separate_compilation
E:/ghc/docs/users_guide/using.rst:377: WARNING: duplicate ghc-flag description of --show-iface ?file?, other instance in separate_compilation
E:/ghc/docs/users_guide/using-warnings.rst:132: WARNING: duplicate ghc-flag description of -Wno-compat, other instance in using-warnings
E:/ghc/docs/users_guide/using-warnings.rst:140: WARNING: duplicate ghc-flag description of -w, other instance in using-warnings
E:/ghc/docs/users_guide/using-warnings.rst:177: WARNING: duplicate ghc-flag description of -Wwarn, other instance in using-warnings
E:/ghc/docs/users_guide/9.2.1-notes.rst: WARNING: document isn't included in any toctree
E:/ghc/docs/users_guide/runtime_control.rst:201: WARNING: c:identifier reference target not found: size_t
E:/ghc/docs/users_guide/separate_compilation.rst:689: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
E:/ghc/docs/users_guide/exts/qualified_do.rst:90: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
E:/ghc/docs/users_guide/exts/qualified_do.rst:102: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
E:/ghc/docs/users_guide/exts/gadt_syntax.rst:115: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
E:/ghc/docs/users_guide/exts/data_kinds.rst:133: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
E:/ghc/docs/users_guide/exts/type_applications.rst:81: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
E:/ghc/docs/users_guide/exts/defer_type_errors.rst:68: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
E:/ghc/docs/users_guide/exts/instances.rst:111: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
E:/ghc/docs/users_guide/exts/partial_type_signatures.rst:215: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
E:/ghc/docs/users_guide/exts/partial_type_signatures.rst:231: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
E:/ghc/docs/users_guide/exts/partial_type_signatures.rst:248: WARNING: Could not lex literal_block as "haskell". Highlighting skipped.
Error when running Shake build system:
at want, called at src\Main.hs:102:30 in main:Main
* Depends on: docs
at need, called at src\Rules\Documentation.hs:115:9 in main:Rules.Documentation
* Depends on: _build/docs/pdfs/users_guide.pdf
* Raised the exception:
user error (Undefined reference targets found in Sphinx log.)