Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#66156 - [linux]sphinx 3.0 causes compilation errors

Attached to Project: Arch Linux
Opened by Piotr Górski (sir_lucjan) - Tuesday, 07 April 2020, 11:45 GMT
Last edited by Jan Alexander Steffens (heftig) - Thursday, 09 April 2020, 07:27 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
David Runge (dvzrv)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

After updating the Sphinx package, building htmldocs is impossible. Below I attach an error message:

Additional info:

Running Sphinx v3.0.0

enabling CJK for LaTeX builder

Extension error:

Could not import extension cdomain (exception: cannot import name 'c_funcptr_sig_re' from 'sphinx.domains.c' (/usr/lib/python3.8/site-packages/sphinx/domains/c.py))

make[1]: *** [Documentation/Makefile:81: htmldocs] Error 2

make: *** [Makefile:1549: htmldocs] Error 2

==> ERROR: A failure occurred in build().

This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Thursday, 09 April 2020, 07:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  linux 5.6.3.arch1-1
Comment by Konstantin Shalygin (k0ste) - Tuesday, 07 April 2020, 13:24 GMT
The same for me when try to build 5.6.2 kernel.

```
SPHINX htmldocs --> file:///srv/raid/filez/builder/NDPI_IMQ_KERNEL/5.6-arch/src/archlinux-linux/Documentation/output
PARSE include/uapi/linux/dvb/audio.h
PARSE include/uapi/linux/dvb/ca.h
PARSE include/uapi/linux/dvb/dmx.h
PARSE include/uapi/linux/dvb/frontend.h
PARSE include/uapi/linux/dvb/net.h
PARSE include/uapi/linux/dvb/video.h
PARSE include/uapi/linux/videodev2.h
PARSE include/uapi/linux/media.h
PARSE include/uapi/linux/cec.h
PARSE include/uapi/linux/lirc.h
Running Sphinx v3.0.0

Extension error:
Could not import extension cdomain (exception: cannot import name 'c_funcptr_sig_re' from 'sphinx.domains.c' (/usr/lib/python3.8/site-packag
es/sphinx/domains/c.py))
make[1]: *** [Documentation/Makefile:81: htmldocs] Error 2
make: *** [Makefile:1549: htmldocs] Error 2
==> ERROR: A failure occurred in build().
Aborting...
```
Comment by loqs (loqs) - Tuesday, 07 April 2020, 14:07 GMT Comment by Jouni Rinne (cyberpunkrocker) - Tuesday, 07 April 2020, 14:41 GMT
Same error here, for what it's worth.
Comment by Jacopo Mondi (jmondi) - Tuesday, 07 April 2020, 16:26 GMT
As long as this is not fixed upstream in Linux sources, manually removing cdomain as suggested in the github issue reported by loqs, fixes the issue for me

diff --git a/Documentation/conf.py b/Documentation/conf.py
index 3c7bdf4cd31f..9a0ced58a3e9 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -36,7 +36,7 @@ needs_sphinx = '1.3'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include', 'cdomain',
+extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include',
'kfigure', 'sphinx.ext.ifconfig', 'automarkup',
'maintainers_include']

Edit:
Fixes the issues but a lot of warnings due to missing cdomain directives :(

Loading...