DOMjudge / domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
714 stars 252 forks source link

Error while running `make dist` #2199

Closed YoungMind1 closed 9 months ago

YoungMind1 commented 10 months ago

OS: Ubuntu 23.04 Packages: everything listed here

I get the following output when running make dist

make -C doc distdocs
make[1]: Entering directory '/home/amir/Documents/domjudge/doc'
Recursing target `distdocs' into: manual examples
make[2]: Entering directory '/home/amir/Documents/domjudge/doc/manual'
make html team
make[3]: Entering directory '/home/amir/Documents/domjudge/doc/manual'
sphinx-build -M html . build 
Running Sphinx v5.3.0
WARNING: The config value `pdf_use_toc' has type `str', defaults to `bool'.
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 18 source files that are out of date
updating environment: [new config] 18 added, 0 changed, 0 removed
reading sources... [100%] upgrading                                                                                                                                                           
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:104: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:128: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:128: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:128: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:128: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:143: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:143: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:143: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/quick-install.rst:40: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/quick-install.rst:40: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/quick-install.rst:40: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/quick-install.rst:53: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/quick-install.rst:53: ERROR: Undefined substitution referenced: "phpversion".
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] upgrading                                                                                                                                                            
generating indices... genindex done
writing additional pages... search done
copying images... [100%] team-scoreboard.png                                                                                                                                                  
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 15 warnings.

The HTML pages are in build/html.
sphinx-build -b latex . build/team 
Running Sphinx v5.3.0
WARNING: The config value `pdf_use_toc' has type `str', defaults to `bool'.
building [mo]: targets for 0 po files that are out of date
building [latex]: all documents
updating environment: [new config] 18 added, 0 changed, 0 removed
reading sources... [100%] upgrading                                                                                                                                                           
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:104: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:128: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:128: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:128: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:128: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:143: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:143: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/install-domserver.rst:143: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/quick-install.rst:40: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/quick-install.rst:40: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/quick-install.rst:40: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/quick-install.rst:53: ERROR: Undefined substitution referenced: "phpversion".
/home/amir/Documents/domjudge/doc/manual/quick-install.rst:53: ERROR: Undefined substitution referenced: "phpversion".
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
processing DOMjudge.tex... index overview install-domserver install-judgehost install-workstation upgrading config-basic import config-advanced running judging develop quick-install team problem-format shadow configuration-reference 
resolving references...
done
writing... done
processing domjudge-team-manual.tex... team 
resolving references...
done
writing... done
copying images... [100%] team-scoreboard.png                                                                                                                                                  
copying TeX support files... copying TeX support files...
done
build succeeded, 14 warnings.

The LaTeX files are in build/team.
Run 'make' in that directory to run these through (pdf)latex
(use `make latexpdf' here to do that automatically).
make -C build/team domjudge-team-manual.pdf 
make[4]: Entering directory '/home/amir/Documents/domjudge/doc/manual/build/team'
latexmk -pdf -dvi- -ps-  'domjudge-team-manual.tex'
Rc files read:
  /etc/LatexMk
  latexmkrc
Latexmk: This is Latexmk, John Collins, 7 Jan. 2023. Version 4.79.
No existing .aux file, so I'll make a simple one, and require run of *latex.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex':  Reasons for rerun
Category 'other':
  Rerun of 'pdflatex' forced or previously required

------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex   -recorder  "domjudge-team-manual.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./domjudge-team-manual.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-01-16> (./sphinxmanual.cls
Document Class: sphinxmanual 2019/12/01 v2.3.0 Document class (Sphinx manual)
(/usr/share/texlive/texmf-dist/tex/latex/base/report.cls
Document Class: report 2022/07/02 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/cmap/cmap.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty<<t1.cmap>>)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)
(/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf))
(/usr/share/texlive/texmf-dist/tex/generic/babel/locale/en/babel-english.tex)
(/usr/share/texmf/tex/latex/tex-gyre/tgtermes.sty
(/usr/share/texlive/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/usr/share/texlive/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty)))
(/usr/share/texmf/tex/latex/tex-gyre/tgheros.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fncychap/fncychap.sty) (./sphinx.sty
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/mathcolor.ltx))
(./sphinxoptionshyperref.sty) (./sphinxoptionsgeometry.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty)
(/usr/share/texlive/texmf-dist/tex/latex/float/float.sty)
(/usr/share/texlive/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/capt-of/capt-of.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/multicol.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)))
(./sphinxlatexgraphics.sty) (./sphinxpackageboxes.sty)
(./sphinxlatexadmonitions.sty
(/usr/share/texlive/texmf-dist/tex/latex/framed/framed.sty))
(./sphinxlatexliterals.sty
(/usr/share/texlive/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/alltt.sty)
(/usr/share/texlive/texmf-dist/tex/latex/upquote/upquote.sty)
(/usr/share/texlive/texmf-dist/tex/latex/needspace/needspace.sty))
(./sphinxlatexshadowbox.sty) (./sphinxlatexcontainers.sty)
(./sphinxhighlight.sty) (./sphinxlatextables.sty
(/usr/share/texlive/texmf-dist/tex/latex/tabulary/tabulary.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty))
(/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty)
(/usr/share/texlive/texmf-dist/tex/latex/varwidth/varwidth.sty)
(/usr/share/texlive/texmf-dist/tex/latex/colortbl/colortbl.sty))
(./sphinxlatexnumfig.sty) (./sphinxlatexlists.sty) (./sphinxpackagefootnote.sty
) (./sphinxlatexindbibtoc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/makeidx.sty))
(./sphinxlatexstylepage.sty
(/usr/share/texlive/texmf-dist/tex/latex/parskip/parskip.sty
(/usr/share/texlive/texmf-dist/tex/latex/parskip/parskip-2001-04-09.sty))
(/usr/share/texlive/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty))
(./sphinxlatexstyleheadings.sty
(/usr/share/texlive/texmf-dist/tex/latex/titlesec/titlesec.sty))
(./sphinxlatexstyletext.sty) (./sphinxlatexobjects.sty))
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifvtex.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty))
(/usr/share/texlive/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(/usr/share/texlive/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hycolor/hycolor.sty)
(/usr/share/texlive/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty)
(/usr/share/texlive/texmf-dist/tex/latex/auxhook/auxhook.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/latex/refcount/refcount.sty)
(/usr/share/texlive/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texlive/texmf-dist/tex/generic/intcalc/intcalc.sty)
(/usr/share/texlive/texmf-dist/tex/generic/etexcmds/etexcmds.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty)
(/usr/share/texlive/texmf-dist/tex/generic/bitset/bitset.sty
(/usr/share/texlive/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty))
(/usr/share/texlive/texmf-dist/tex/latex/base/atbegshi-ltx.sty))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/share/texlive/texmf-dist/tex/latex/base/atveryend-ltx.sty)
(/usr/share/texlive/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
(/usr/share/texlive/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/hypcap.sty)
(./sphinxmessages.sty)
Writing index file domjudge-team-manual.idx
(/usr/share/texmf/tex/latex/tex-gyre/t1qhv.fd)
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
(./domjudge-team-manual.aux)
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/share/texlive/texmf-dist/tex/latex/txfonts/t1txtt.fd)
! Missing number, treated as zero.
<to be read again> 
                   \spx@note@border@top 
l.117 \begin{sphinxadmonition}{note}{Summary}

? 

I think there are some undocumented dependencies or commands. After the last ?, I cannot Ctrl c out of program, I need to keep pressing Enter to exit

vmcj commented 10 months ago

@YoungMind1 can you mention which OS and which release you're experiencing this on? Which packages did you already install?

YoungMind1 commented 10 months ago

@vmcj

Oh sorry, I updated the question.

eldering commented 10 months ago

Sounds like the sphinx python issue we've seen before. Didn't you fix that in a dirty way on domjudge.org @nickygerritsen ?

vmcj commented 10 months ago

Sounds like the sphinx python issue we've seen before. Didn't you fix that in a dirty way on domjudge.org @nickygerritsen ?

That was fixed by instead of using the system packaged one (the one from apt) installing with pip.

eldering commented 10 months ago

l.117 \begin{sphinxadmonition}{note}{Summary}

?



I think there are some undocumented dependencies or commands. After the last `?`, I cannot `Ctrl c` out of program, I need to keep pressing `Enter` to exit

This is LaTex. You have to enter X to abort compilation.