Skip to content

meson compile doc-pdf fails in all-pdf #40308

Open
@tobiasdiez

Description

@tobiasdiez

doc-html works, but something is wrong with meson compile -C build/cp313/ doc-pdf for me.
I am getting many errors like

/home/dima/software/sage/.venv/bin/python3 /home/dima/software/sage/src/build-docs.py --no-pdf-links es/a_tour_of_sage pdf -o src/doc --source /home/dima/software/sage/src/doc
[a_tour_of] inventory <https://ipywidgets.readthedocs.io/en/stable/> contains multiple definitions for std:label:examples/Widget Layout.ipynb#display
[a_tour_of] building [latex]: all documents
[a_tour_of] processing a_tour_of_sage.tex...
[a_tour_of] index
[a_tour_of] resolving references...
[a_tour_of] The LaTeX files are in src/doc/latex/es/a_tour_of_sage.
[a_tour_of] Run 'make' in that directory to run these through (pdf)latex
[a_tour_of] (use `make latexpdf' here to do that automatically).
LaTeX files can be found in /home/dima/software/sage/build/cp313/src/doc/latex/es/a_tour_of_sage.
/bin/sh: line 1: all-pdf: command not found
Error building the documentation.
Traceback (most recent call last):
  File "/home/dima/software/sage/src/build-docs.py", line 4, in <module>
    main()
    ~~~~^^
  File "/home/dima/software/sage/src/sage_docbuild/__main__.py", line 548, in main
    build()
    ~~~~~^^
  File "/home/dima/software/sage/src/sage_docbuild/builders.py", line 273, in pdf
    raise RuntimeError(error_message % (command, tex_dir))
RuntimeError: failed to run $MAKE all-pdf in /home/dima/software/sage/build/cp313/src/doc/latex/es/a_tour_of_sage
[97/190] Generating src/doc/doc-pdf-other-en-thematic_tutorials with a custom command
FAILED: src/doc/pdfen-thematic_tutorials 

and there are make.bat files generated:

$ find . -name make.bat
./build/cp313/src/doc/latex/en/developer/make.bat
./build/cp313/src/doc/latex/en/website/make.bat
./build/cp313/src/doc/latex/en/reference/references/make.bat
./build/cp313/src/doc/latex/en/tutorial/make.bat
./build/cp313/src/doc/latex/en/constructions/make.bat
./build/cp313/src/doc/latex/en/faq/make.bat
./build/cp313/src/doc/latex/en/thematic_tutorials/make.bat
./build/cp313/src/doc/latex/en/a_tour_of_sage/make.bat
./build/cp313/src/doc/latex/en/prep/make.bat
./build/cp313/src/doc/latex/en/installation/make.bat
./build/cp313/src/doc/latex/ca/intro/make.bat
./build/cp313/src/doc/latex/de/a_tour_of_sage/make.bat
./build/cp313/src/doc/latex/de/tutorial/make.bat
./build/cp313/src/doc/latex/de/thematische_anleitungen/make.bat
./build/cp313/src/doc/latex/el/a_tour_of_sage/make.bat
./build/cp313/src/doc/latex/es/a_tour_of_sage/make.bat

for instance

@ECHO OFF

REM Command file for Sphinx documentation

pushd %~dp0

set PDFLATEX=latexmk -pdf -dvi- -ps-

set "LATEXOPTS= "

set XINDYOPTS=-L spanish-modern -C utf8  -M sphinx.xdy
set XINDYOPTS=%XINDYOPTS% -I xelatex
if "%1" == "" goto all-pdf

if "%1" == "all-pdf" (
        :all-pdf
        for %%i in (*.tex) do (
                %PDFLATEX% %LATEXMKOPTS% %%i
        )
        goto end
)

if "%1" == "all-pdf-ja" (
        goto all-pdf
)

if "%1" == "clean" (
        del /q /s *.dvi *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla *.ps *.tar *.tar.gz *.tar.bz2 *.tar.xz *.fls *.fdb_latexmk
        goto end
)

:end
popd
  • that's probably where /bin/sh: line 1: all-pdf: command not found comes from.

Originally posted by @dimpase in #39973 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions