Bug 2118242 - building with Hadrian, sphinx fails to build manual
Summary: building with Hadrian, sphinx fails to build manual
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc9.4
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jens Petersen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-15 07:47 UTC by Jens Petersen
Modified: 2022-08-23 18:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-23 18:32:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jens Petersen 2022-08-15 07:47:06 UTC
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)

Comment 1 Jens Petersen 2022-08-15 07:48:09 UTC
But if one checks the make build - the same error is occurring
but somehow it doesn't stop the build from continuing/finishing.

Comment 2 Jens Petersen 2022-08-16 03:11:48 UTC
Upstream issue is https://gitlab.haskell.org/ghc/ghc/-/issues/22049

But seems this was caused an old sphinx patch from 8.6.


Note You need to log in before you can comment on or make changes to this bug.