Description of problem: I don't know there is some missing dependency, but the ghc manual fails when building with Hadrian. Actual results: | Run Sphinx ManMode: docs/users_guide => /var/home/petersen/tmp/extra-dir-84518370036677 /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/9.4.1-notes.rst:62: ERROR: Unknown interpreted text role "lang-ext". /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/9.4.1-notes.rst:285: ERROR: Unknown interpreted text role "lang-ext". /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/phases.rst:345: WARNING: duplicate ghc-flag description of -U⟨symbol⟩, other instance in phases /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/phases.rst:609: WARNING: duplicate ghc-flag description of -fllvm, other instance in phases /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/phases.rst:1312: WARNING: duplicate ghc-flag description of -no-pie, other instance in phases /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/phases.rst:624: ERROR: Undefined substitution referenced: "llvm-version". /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/runtime_control.rst:1179: WARNING: duplicate rts-flag description of -hT, other instance in profiling /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/runtime_control.rst:1179: WARNING: duplicate rts-flag description of -h, other instance in profiling /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/runtime_control.rst:1391: WARNING: duplicate rts-flag description of -xc, other instance in profiling /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/using.rst:348: WARNING: duplicate ghc-flag description of -c, other instance in phases /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/using.rst:392: WARNING: duplicate ghc-flag description of -shared, other instance in phases /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/using.rst:412: WARNING: duplicate ghc-flag description of --show-iface ⟨file⟩, other instance in separate_compilation /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/using-warnings.rst:167: WARNING: duplicate ghc-flag description of -Wno-compat, other instance in using-warnings /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/using-warnings.rst:175: WARNING: duplicate ghc-flag description of -w, other instance in using-warnings /var/home/petersen/fedora/haskell/ghc9.4/BUILD/ghc-9.4.1/docs/users_guide/using-warnings.rst:220: WARNING: duplicate ghc-flag description of -Wwarn, other instance in using-warnings <rst_prolog>:1: WARNING: 'extension' reference target not found: AllowAmbiguousTypes <rst_prolog>:1: WARNING: 'extension' reference target not found: AllowAmbiguousTypes <rst_prolog>:1: WARNING: 'extension' reference target not found: ApplicativeDo <rst_prolog>:1: WARNING: 'extension' reference target not found: ApplicativeDo : : <rst_prolog>:1: WARNING: 'extension' reference target not found: Unsafe <rst_prolog>:1: WARNING: 'extension' reference target not found: Unsafe <rst_prolog>:1: WARNING: 'extension' reference target not found: ViewPatterns <rst_prolog>:1: WARNING: 'extension' reference target not found: ViewPatterns <rst_prolog>:1: WARNING: 'extension' reference target not found: ExplicitForAll <rst_prolog>:1: WARNING: 'extension' reference target not found: KindSignatures <rst_prolog>:1: WARNING: 'extension' reference target not found: UnicodeSyntax <rst_prolog>:1: WARNING: 'extension' reference target not found: DeriveAnyClass <rst_prolog>:1: WARNING: 'extension' reference target not found: GeneralizedNewtypeDeriving <rst_prolog>:1: WARNING: 'extension' reference target not found: PartialTypeSignatures <rst_prolog>:1: WARNING: 'extension' reference target not found: PartialTypeSignatures <rst_prolog>:1: WARNING: 'extension' reference target not found: StarIsType <rst_prolog>:1: WARNING: 'extension' reference target not found: Trustworthy <rst_prolog>:1: WARNING: 'extension' reference target not found: Safe user error (Undefined reference targets found in Sphinx log.) F35: https://koji.fedoraproject.org/koji/taskinfo?taskID=90795490 Rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=90809615 Expected results: Manual to build without error. Additional info: It seems to build fine without Hadrian (ie using make): 9.2.4: https://koji.fedoraproject.org/koji/taskinfo?taskID=90679146 (rawhide) https://koji.fedoraproject.org/koji/taskinfo?taskID=90766368 (epel9) 9.4.1: https://koji.fedoraproject.org/koji/taskinfo?taskID=90811906 (incomplete)
But if one checks the make build - the same error is occurring but somehow it doesn't stop the build from continuing/finishing.
Upstream issue is https://gitlab.haskell.org/ghc/ghc/-/issues/22049 But seems this was caused an old sphinx patch from 8.6.