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 Unsupported. 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#66178 - [linux] build failure :SHPINX extension module missing abort the compile

Attached to Project: Arch Linux
Opened by Bhaskar Chowdhury (unixbhaskar) - Wednesday, 08 April 2020, 23:06 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 09 April 2020, 03:36 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Levente Polyak (anthraxx)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

While building the kernel from source pulled from git and it failed to finish completely because of sphinx extension missing.


Additional info:
* package version(s) Latest kernel 5.6.3

Steps to reproduce:

asp update linux
asp checkout linux

make olddefconfig

make -j$(nproc)


..and here is the outcome....

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))
Apr 08 16:48:46 enabling CJK for LaTeX builder
Apr 08 16:48:46 CC kernel/power/poweroff.o
make[1]: *** [Documentation/Makefile:81: htmldocs] Error 2
make: *** [Makefile:1549: htmldocs] Error 2
make: *** Waiting for unfinished jobs....


and ..finally aborted ...like this

==> ERROR: A failure occurred in build().
Apr 08 16:52:13 Aborting...
Command exited with non-zero status 4


This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 09 April 2020, 03:36 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#66156 
Comment by Bhaskar Chowdhury (unixbhaskar) - Wednesday, 08 April 2020, 23:09 GMT

make olddefconfig

make -j$(nproc)

Essentially above these two steps produced by running

makepkg -s
Comment by loqs (loqs) - Wednesday, 08 April 2020, 23:35 GMT
As you built the kernel without using the PKGBUILD you did not apply sphinx-workaround.patch included in https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/linux&id=08a7fa88eaa91ef8b0e1f71b496d4097c3702e8d
See also  FS#66156 
Comment by Bhaskar Chowdhury (unixbhaskar) - Wednesday, 08 April 2020, 23:39 GMT
Nope I do use the PKGBUILD ...so exception ...do that all the time ...but this time it is showing this ..standard building procedure. I believe some update bumped on to unreleased version of python i.e 3.8 ...which might create trouble.

Comment by loqs (loqs) - Wednesday, 08 April 2020, 23:48 GMT
What was the exact makepkg command you used?
Edit:
Attached build.log xz compressed from https://tests.reproducible-builds.org/ build of 5.6.3-arch1-1 building without issue.
Edit2:
Attached logs from local build of the package without issue.
Comment by Bhaskar Chowdhury (unixbhaskar) - Thursday, 09 April 2020, 01:32 GMT
Thanks, it seems I am getting it now ...

==> Retrieving sources...
-> Downloading 5.6.3-arch1...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 168M 0 168M 0 0 181k 0 --:--:-- 0:15:47 --:--:-- 169k
-> Found config
-> Found sphinx-workaround.patch
==> Generating checksums for source files...



Lets do the compiling now ....


Apr 09 06:59:42 ==> Making package: ArchLinux-5.6.3 5.6.3-1 (Thu 09 Apr 2020 06:59:42 AM IST)
Apr 09 06:59:42 ==> Checking runtime dependencies...
Apr 09 06:59:42 ==> Checking buildtime dependencies...
Apr 09 06:59:42 ==> Retrieving sources...
Apr 09 06:59:42 -> Found 5.6.3-arch1
Apr 09 06:59:42 -> Found config
Apr 09 06:59:42 -> Found sphinx-workaround.patch
Apr 09 06:59:42 ==> Validating source files with sha256sums...
5.6.3-arch1 ... Passed
config ... Passed
sphinx-workaround.patch ... Passed
Apr 09 06:59:42 ==> Extracting sources...
Apr 09 06:59:42 -> Extracting 5.6.3-arch1 with bsdtar
Apr 09 06:59:51 ==> Starting prepare()...
Apr 09 06:59:51 Setting version...
Apr 09 06:59:51 Applying patch sphinx-workaround.patch...
Apr 09 06:59:51 patching file Documentation/conf.p

Loading...