Skip to contentSkip to conversation

Error at www.kernel.org/doc/html/next/ since next-20250919

DISCUSSION Akira Yokosawa 3 participants 4 messages Oct 6, 2025 – Oct 9, 2025 Documentation

lore
Share & tools
lore
#0 lore raw

Hi Konstantin,

Looks like documentations builds at www.kernel.org/doc/html/next/ against linux-next have stopped working (again) since next-20250919.

There was a build regression report from Randy [1[ against said linux-next tag, but a "fix" [2] to that particular regression was merged into Jon's docs-next and had arrived at linux-next as of next-20250926.

[1]: https://lore.kernel.org/[email protected]/
[2]: https://lore.kernel.org/8917f862e0b8484c68408c274129c9f37a7aefb4.1758539031.git.mchehab+huawei@kernel.org/

So I'm wondering if your build system is doing something different from what is assumed by said "fix" with regard to the way "sphinx-build" is installed.

Can you share relevant error/warning log messages from failed documentation builds? And more importantly, how did you install Sphinx 7.4.7?

Thanks, Akira

#1 lore raw
Quoted 2 lines · Akira Yokosawa

So I'm wondering if your build system is doing something different from what is assumed by said "fix" with regard to the way "sphinx-build" is installed.

Yes, looks like I ran across a bug in sphinx-build-wrapper:

sphinx-build-wrapper: error: argument -q/--quiet: expected one argument

We're invoking the build like this:

    make SPHINXOPTS="-D version=${TAGVER} -q" htmldocs

I see this in the code:

    parser.add_argument('-q', '--quiet', type=int)

Pretty sure -q doesn't take any int arguments, so this should be:

    parser.add_argument('-q', '--quiet', action='store_true', default=False)

For now, I've removed the -q from our invocation, so the build is currently running, but this should be fixed in sphinx-build-wrapper.

It also appears that "-D version=${TAGVER}" is also not sticking any more, because the new version is being built as 6.17.0 as opposed to the version passed as the -D parameter.

-K

maintainer
#2 lore raw

CC += Mauro

Quoted 28 lines · Konstantin Ryabitsev
Quoted 2 lines · Akira Yokosawa

So I'm wondering if your build system is doing something different from what is assumed by said "fix" with regard to the way "sphinx-build" is installed.

Yes, looks like I ran across a bug in sphinx-build-wrapper:

sphinx-build-wrapper: error: argument -q/--quiet: expected one argument

We're invoking the build like this:

    make SPHINXOPTS="-D version=${TAGVER} -q" htmldocs

I see this in the code:

    parser.add_argument('-q', '--quiet', type=int)

Pretty sure -q doesn't take any int arguments, so this should be:

    parser.add_argument('-q', '--quiet', action='store_true', default=False)

For now, I've removed the -q from our invocation, so the build is currently running, but this should be fixed in sphinx-build-wrapper.

It also appears that "-D version=${TAGVER}" is also not sticking any more, because the new version is being built as 6.17.0 as opposed to the version passed as the -D parameter.

-K

#3 lore raw

Hi Mauro,

Quoted 3 lines · Jonathan Corbet

CC += Mauro

Konstantin Ryabitsev <[email protected]> writes:

[...]

Quoted 3 lines
Quoted 3 lines

It also appears that "-D version=${TAGVER}" is also not sticking any more, because the new version is being built as 6.17.0 as opposed to the version passed as the -D parameter.

So, I compared the arg lists given to sphinx-build when I say:

make O=OUT1 SPHINXOPTS="-D version=next-20251008 -q" SPHINXDIRS=doc-guide htmldocs

At docs-mw (commit 99510c324e53), with the long list folded:

-jauto -b html -c <srctree>/Documentation \
-d <srctree>/OUT1/Documentation/output/.doctrees/doc-guide \
-D version=6.17.0-rc1 -D release= -D kerneldoc_srctree=.. \
-D kerneldoc_bin=../scripts/kernel-doc.py \
-D version=test-20251008 -q \
<srctree>/Documentation/doc-guide <srctree>/OUT1/Documentation/output/doc-guide

At docs-next (merge commit b14a05303f06), again, with the long list folded:

-jauto \
-D version=next-20251008 -q \
-b html -c <srctree>/Documentation \
-d <srctree>/OUT1/Documentation/output/.doctrees \
-D kerneldoc_bin=../scripts/kernel-doc.py \
-D version=6.17.0-rc1 -D release= -D kerneldoc_srctree=.. \
<srctree>/Documentation/doc-guide <srctree>/OUT1/Documentation/output/doc-guide

As you see, with sphinx-build-wrapper, args given to SPHINXOPTS are listed earlier and the "-D version=next-20251008" is superseded by the later "-D version=6.17.0-rc1".

Args given to SPHINXOPTS should be at the tail of the list, no?

Regards,
Akira