ghc fails to build with Sphinx 4.0.2 in Fedora 35 (currently Rawhide). /usr/bin/sphinx-build -b html -d docs/users_guide/.doctrees-html -D latex_paper_size=letter docs/users_guide docs/users_guide/build-html/users_guide reading sources... [100%] markup /builddir/build/BUILD/ghc-8.8.4/utils/haddock/doc/markup.rst:11: WARNING: malformed hyperlink target. looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 25%] index Running Sphinx v4.0.2 Configuration error: There is a syntax error in your configuration file: (unicode error) 'unicodeescape' codec can't decode bytes in position 1-2: truncated \uXXXX escape (conf.py, line 87) make[1]: *** [docs/users_guide/ghc.mk:16: docs/users_guide/build-html/users_guide/index.html] Error 2 make[1]: *** Waiting for unfinished jobs.... writing output... [ 50%] intro writing output... [ 75%] invoking writing output... [100%] markup generating indices... /builddir/build/BUILD/ghc-8.8.4/utils/haddock/doc/invoking.rst:549: WARNING: unknown option: -cpp /builddir/build/BUILD/ghc-8.8.4/utils/haddock/doc/markup.rst:178: WARNING: undefined label: top-level-declaration genindex done writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 3 warnings. The HTML pages are in .build-html. cp -R utils/haddock/doc/.build-html utils/haddock/doc/haddock make: *** [Makefile:128: all] Error 2 For the logs from testing build attempts, see: https://copr.fedorainfracloud.org/coprs/ksurma/pygments-2.9.0/package/ghc/ You can test you package using Koji scratch build koji build --scratch <srpm> For details regarding the Sphinx change, see https://fedoraproject.org/wiki/Changes/Sphinx4 Let us know here if you have any questions. Thank you!
Thanks, for the report. I think this is fixed already upstream in ghc-9: hopefully a single rawstring might be enough to fix this.
This should be fixed by https://src.fedoraproject.org/rpms/ghc/c/bad2a2b5a9ca21cbc1503fb68254c02280fe1461?branch=rawhide Since it is just a 1 char fix (a python rawstring annotation) I didn't push a build to koji. Scratch build on x86_64: https://koji.fedoraproject.org/koji/taskinfo?taskID=71085568