Em Mon, 16 Jun 2025 20:18:22 +0900 Akira Yokosawa <akiyks@xxxxxxxxx> escreveu: > Hi Konstantin, > > As you might well be aware of, latest successful documentation build against > linux-next at https://www.kernel.org/doc/html/next/ was that of next-20250606. > > I managed to reproduce the build error using debian bookworm's distro packages > which can be close enough to Sphinx 5.3.0 used there. > > This is the error I got from "make htmldocs": > > ---------------------------------------------------------------- > Extension error (automarkup): > Handler <function auto_markup at 0x796307745bc0> for event 'doctree-resolved' threw an exception (exception: argument for warn() given by name ('stacklevel') and position (3)) > ---------------------------------------------------------------- Sphinx crashes generally generate a python dump. Maybe you could take a look on it. > Bisection points to commit d6d1df92c25f ("docs: automarkup: Mark up > undocumented entities too") queued in Jon's docs-next branch. > > Reverting it resolves the error, but honestly speaking, I don't have > any plausible theory on how that change could cause such an issue. > > Actually, when I install Sphinx 5.3.0 by using venv and saying > > pip install "Sphinx<6.0" pyyaml > > on Ubuntu 24.04 today, said error doesn't reproduce. Perhaps it is related to docutils version. Assuming that it doesn't work with certain versions of sphinx or docutils, instead of reverting the entire patch, IMO the best would be to add a check for Sphinx version, disabling the broken refs only for too old versions. > I'm not sure but there might have been some minor incompatibility > between past versions of dependencies. > > I'd rather upgrade Sphinx to 8.2.3 (latest). > > Konstantin, could you try it? > > Thanks, Akira Regards Thanks, Mauro