
Dear spot maintainers, I am trying to compile spot v2.9.7 from source but my build errors due to latexmk not being available in the environment. From what I understand from the log, it is used in making the doc, is there a way to skip this step in the build? I built it on ubuntu (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0) and it did not complain about latexmk, this only happened when changing to a new platform (the end goal is to cross compile it). Any help would be appreciated, Maxime I am using a linux platform with gcc: x86_64-linux-gnu-g++ (GCC) 9.1.0 Here is what I run: ./configure --prefix=${prefix}/spot-build --build=${MACHTYPE} --host=${target} --disable-python make -j${nproc} && make install Here is the partial log: ``` [15:46:03] Making all in doc [15:46:03] make[2]: Entering directory '/workspace/srcdir/jlspot/spot-2.9.7/doc' [15:46:03] Making all in tl [15:46:03] make[3]: Entering directory '/workspace/srcdir/jlspot/spot-2.9.7/doc/tl' [15:46:03] BIBINPUTS='./..' latexmk -pdf -ps- -dvi- -pvc- -e '$bibtex_use=2' -e '$pdflatex="pdflatex %O \"\\def\\SpotVersion{2.9.7}\\input{%S}\""' ./tl.tex [15:46:03] /bin/sh: latexmk: not found [15:46:03] make[3]: *** [Makefile:1399: tl.pdf] Error 127 [15:46:03] make[3]: Leaving directory '/workspace/srcdir/jlspot/spot-2.9.7/doc/tl' [15:46:03] make[2]: *** [Makefile:1319: all-recursive] Error 1 [15:46:03] make[2]: Leaving directory '/workspace/srcdir/jlspot/spot-2.9.7/doc' [15:46:03] make[1]: *** [Makefile:1341: all-recursive] Error 1 [15:46:03] make[1]: Leaving directory '/workspace/srcdir/jlspot/spot-2.9.7' ````

Maxime Bouton <maxim.bouton@gmail.com> writes:
I built it on ubuntu (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0) and it did not complain about latexmk, this only happened when changing to a new platform (the end goal is to cross compile it).
tl.pdf is included in the tarball, so latexmk should not be needed when building from the tarball, unless the timestamp of the files were altered somehow, in which case make might think that tl.pdf is older than tl.tex. Maybe you manually copied to files to a new location? (Use "cp -p" to preserve timestamps when copying, or simply extract from the tarball.)

Thank you for the quick response, that was very helpful. For now I added ``` touch doc/tl/tl.tex touch doc/tl/tl.pdf ``` in my build script and it fixes it, I copied the src to a git repo and then cloned it in the build environment, maybe the timestamps got changed there. I think I will move to downloading and extracting the tarballs from the official link and hopefully I don't need the `touch` command. Best, Maxime On Sat, May 29, 2021 at 11:09 AM Alexandre Duret-Lutz <adl@lrde.epita.fr> wrote:
Maxime Bouton <maxim.bouton@gmail.com> writes:
I built it on ubuntu (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0) and it did not complain about latexmk, this only happened when changing to a new platform (the end goal is to cross compile it).
tl.pdf is included in the tarball, so latexmk should not be needed when building from the tarball, unless the timestamp of the files were altered somehow, in which case make might think that tl.pdf is older than tl.tex. Maybe you manually copied to files to a new location? (Use "cp -p" to preserve timestamps when copying, or simply extract from the tarball.)
participants (2)
-
Alexandre Duret-Lutz
-
Maxime Bouton