<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hi Norbert,</div>
<div class="moz-cite-prefix"><br>
</div>
<blockquote type="cite"
cite="mid:20200624195549.GA63591@burischnitzel.preining.info">
<blockquote type="cite">After updating my openSuSE Tumbleweed
system I found lualatex broken. "lualatex somefile" led to an
error message: LuaHBTeX, Version 1.12.0 complained that
"lualatex.fmt was written by luatex".
Removing lualatex.fmt did not fix the problem.
</blockquote>
My guess is you have a format for luahbtex hanging around in below
your
$HOME. If you would have shown the actual log file, one could see
it.</blockquote>
<br>
There definitely was no old format file in the cwd or somewhere else
in or below $HOME, it really were outdated fmtutil.cnf /
lualatex.fmt in the texmf tree. I agree that an error in the update
process is a case for a bugreport to openSuSE.<br>
But I was surprised that fixing fmtutil.cnf and removing the
obsolete format file did not trigger the creation of a new format
file , so I removed the lualatex.fmt file and executed lualatex
again:
<blockquote><tt>knut@golem:~/foo> sudo rm
/var/lib/texmf/web2c/lualatex/lualatex.fmt</tt><tt><br>
</tt><tt>[sudo] Passwort für root: </tt><tt><br>
</tt><tt>knut@golem:~/foo> rm TRACE*; strace -v -f -ff -s 8192
-o TRACE lualatex Teilnehmer20200627.tex</tt><tt><br>
</tt><tt>This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/TeX Live
for SUSE Linux) </tt><tt><br>
</tt><tt> restricted system commands enabled.</tt><tt><br>
</tt><tt><br>
</tt><tt>kpathsea: Running mktexfmt lualatex.fmt</tt><tt><br>
</tt><tt>mktexfmt [ERROR]: -user mode but path setup is -sys type,
bailing out.</tt><tt><br>
</tt><tt>I can't find the format file `lualatex.fmt'!</tt><tt><br>
</tt><tt>knut@golem:~/foo></tt> <br>
</blockquote>
The trace shows that"/usr/bin/mktexfmt" was used with the single
option "lualatex.fmt". <br>
<br>
Let's summarize: The engine fails if there is a broken or outdated
format file.<br>
The engine tries to recover if it does not find format file, but
that fails too. <br>
I would suggest to actually use a command that generates a format
file in a place that normally is writable and searched first in
those cases.<br>
<blockquote><tt>fmtutil --no-engine-subdir --fmtdir=. --byfmt
lualatex.fmt'</tt> <br>
</blockquote>
seems to be a better idea than
<blockquote> <tt>'</tt><tt>/usr/bin/mktexfmt lualatex.fmt</tt><tt>'</tt>.</blockquote>
Knut<br>
<br>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
</body>
</html>