I've been meaning for a while to switch the build system for my
textbooks from make to tup. I'm now biting that bullet for my next
textbook. But I cannot get tex files to compile when tex is called by
tup.
Here is a minimal example using plain TeX. I'm using Debian Linux
'unstable', which has a version of texlive 2025
and has tup 0.8-1+b1 [debian].
The Tupfile is one line:
: test.tex |> pdftex %f |> %B.pdf %B.log
The test.tex file is these four lines:
\def\x{\times}
\message{HELLO THERE}
$2\x2$
\end
When I run tup, the pdftex command fails as follows:
[ tup ] [0.000s] Scanning filesystem...
[ tup ] [0.000s] Reading in new environment variables...
[ tup ] [0.001s] No Tupfiles to parse.
[ tup ] [0.001s] No files to delete.
[ tup ] [0.001s] Executing Commands...
* 100% 0) pdftex test.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2025/dev/Debian)
(preloaded format=pdftex)
restricted \write18 enabled.
entering extended mode
(./test.tex)
*
! Emergency stop.
<*>
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on test.log.
*** tup messages ***
*** Command ID=12 failed with return value 1
*** tup: 1 job failed.
However, test.tex compiles fine run from the command line:
$ pdftex test.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2025/dev/Debian)
(preloaded format=pdftex)
restricted \write18 enabled.
entering extended mode
(./test.tex HELLO THERE [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
)</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/
share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
Output written on test.pdf (1 page, 16123 bytes).
Transcript written on test.log.
The "HELLO THERE" text is from the \message macro, which I included so
that I could see whether test.tex is being loaded. In the working run
(from the command line directly), the message shows up. However, in the
failing run (when pdftex is run by tup), the message does not -- which
must somehow be related to the failure to compile, but I don't know
which problem is a symptom and what the root cause is.
Am I doing something silly? Or is pdftex doing something that doesn't
play well with the filesystem trickery that tup does?
I tried explicitly including all my environment variables (except PWD,
OLDPWD, HOME, and PATH) using 'export' statements, but no luck.
I've also tried stracing but couldn't see why it has gone awry.
--
-Sanjoy
"An error can never become true however many times you repeat it.
The truth can never be wrong, even if no one ever hears about it."
--Mahatma Gandhi
"Not to know is bad. Not to wish to know is worse." -African proverb
--
--
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/tup-users/871pqh4gsd.fsf%40mit.edu.