XeLaTeX cannot generate a valid pdf

Hello,

Just want to share an issue I found with the installation of TexLive in a fresh installed rolling OM.

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata

OpenMandriva Lx version: ROME 25.06

Desktop environment (KDE, LXQT…): KDE Plasma 6.3.4, KDE Frameworks 6.13.0, Dolphin 25.04.0

Description of the issue (screenshots if relevant):

I was trying to compile with XeLaTeX a LaTeX file that I already used to compile in other distros, but - after installed texlive - it was able to compile producing a no readeble pdf in OM.

Since I was sure that the LaTeX code can generate a valid pdf file, I tried to find a solution.

This is happening on a fresh install of an OM ROME.

I installed texlive with sudo dnf in texlive and then, due to missing dependencies, extended with a sudo dnf in texlive-scheme-full.

When compiling, I obtained:

> xelatex -interaction=nonstopmode mydocument.tex

[CUT]
Error 256 (driver return code) generating output; 
file mydocument.pdf may not be valid.
Transcript written on mydocument.log.

xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF output...

No output PDF file written.

The mydocument.tex file is using custom fonts. I tried to install the fonts for local user, for system or compiling without installing the fonts (and trying to use them from local folder), but nothing changed.
I tried also to not use custom fonts, but the pdf invalid generation occoured again with Latin Modern Roman and Latin Modern Sans).

At this point, I tried running the following two commands with no success to solve the compile issue:

> sudo fc-cache -fv
Font directories:
        /usr/share/X11/fonts/Type1
        /usr/share/X11/fonts/TTF
        /usr/lib/X11/fonts
        /opt/ttfonts
        /root/.local/share/fonts
        /usr/share/fonts
        /root/.fonts
        /usr/local/share/fonts
        /usr/share/fonts/100dpi
        /usr/share/fonts/75dpi
        /usr/share/fonts/Adwaita
        /usr/share/fonts/OTF
        /usr/share/fonts/Speedo
        /usr/share/fonts/TTF
        /usr/share/fonts/Type1
        /usr/share/fonts/adobe-source-code-pro
        /usr/share/fonts/cantarell
        /usr/share/fonts/cyrillic
        /usr/share/fonts/default
        /usr/share/fonts/google-crosextra-caladea
        /usr/share/fonts/google-crosextra-carlito
        /usr/share/fonts/misc
        /usr/share/fonts/open-sans
        /usr/share/fonts/ttf
        /usr/local/share/fonts/a
        /usr/local/share/fonts/b
        /usr/local/share/fonts/c
        /usr/local/share/fonts/d
        /usr/local/share/fonts/f
        /usr/local/share/fonts/g
        /usr/local/share/fonts/h
        /usr/local/share/fonts/i
        /usr/local/share/fonts/j
        /usr/local/share/fonts/n
        /usr/local/share/fonts/s
        /usr/local/share/fonts/v
        /usr/share/fonts/TTF/antpolt
        /usr/share/fonts/TTF/arimo
        /usr/share/fonts/TTF/comic-relief
        /usr/share/fonts/TTF/cousine
        /usr/share/fonts/TTF/dejavu
        /usr/share/fonts/TTF/droid
        /usr/share/fonts/TTF/gelasio
        /usr/share/fonts/TTF/hack
        /usr/share/fonts/TTF/liberation
        /usr/share/fonts/TTF/ptsans
        /usr/share/fonts/TTF/selawik
        /usr/share/fonts/TTF/tinos
        /usr/share/fonts/default/TTF
        /usr/share/fonts/default/Type1
        /usr/share/fonts/default/ghostscript
        /usr/share/fonts/ttf/decoratives
        /usr/share/fonts/ttf/western
        /usr/share/fonts/default/Type1/adobestd35
/usr/share/X11/fonts/Type1: skipping, no such directory
/usr/share/X11/fonts/TTF: skipping, no such directory
/usr/lib/X11/fonts: skipping, no such directory
/opt/ttfonts: skipping, no such directory
/root/.local/share/fonts: skipping, no such directory
/usr/share/fonts: caching, new cache contents: 0 fonts, 16 dirs
/usr/share/fonts/100dpi: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/75dpi: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/Adwaita: caching, new cache contents: 24 fonts, 0 dirs
/usr/share/fonts/OTF: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/Speedo: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/TTF: caching, new cache contents: 146 fonts, 12 dirs
/usr/share/fonts/TTF/antpolt: caching, new cache contents: 40 fonts, 0 dirs
/usr/share/fonts/TTF/arimo: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/TTF/comic-relief: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/TTF/cousine: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/TTF/dejavu: caching, new cache contents: 22 fonts, 0 dirs
/usr/share/fonts/TTF/droid: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/TTF/gelasio: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/TTF/hack: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/TTF/liberation: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/TTF/ptsans: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/TTF/selawik: caching, new cache contents: 5 fonts, 0 dirs
/usr/share/fonts/TTF/tinos: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/Type1: caching, new cache contents: 9 fonts, 0 dirs
/usr/share/fonts/adobe-source-code-pro: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cantarell: caching, new cache contents: 11 fonts, 0 dirs
/usr/share/fonts/cyrillic: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/default: caching, new cache contents: 0 fonts, 3 dirs
/usr/share/fonts/default/TTF: caching, new cache contents: 70 fonts, 0 dirs
/usr/share/fonts/default/Type1: caching, new cache contents: 35 fonts, 1 dirs
/usr/share/fonts/default/Type1/adobestd35: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/fonts/default/ghostscript: caching, new cache contents: 17 fonts, 0 dirs
/usr/share/fonts/google-crosextra-caladea: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/google-crosextra-carlito: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/open-sans: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/ttf: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/ttf/decoratives: caching, new cache contents: 29 fonts, 0 dirs
/usr/share/fonts/ttf/western: caching, new cache contents: 9 fonts, 0 dirs
/root/.fonts: skipping, no such directory
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 12 dirs
/usr/local/share/fonts/a: caching, new cache contents: 33 fonts, 0 dirs
/usr/local/share/fonts/b: caching, new cache contents: 48 fonts, 0 dirs
/usr/local/share/fonts/c: caching, new cache contents: 28 fonts, 0 dirs
/usr/local/share/fonts/d: caching, new cache contents: 15 fonts, 0 dirs
/usr/local/share/fonts/f: caching, new cache contents: 39 fonts, 0 dirs
/usr/local/share/fonts/g: caching, new cache contents: 12 fonts, 0 dirs
/usr/local/share/fonts/h: caching, new cache contents: 12 fonts, 0 dirs
/usr/local/share/fonts/i: caching, new cache contents: 30 fonts, 0 dirs
/usr/local/share/fonts/j: caching, new cache contents: 96 fonts, 0 dirs
/usr/local/share/fonts/n: caching, new cache contents: 355 fonts, 0 dirs
/usr/local/share/fonts/s: caching, new cache contents: 12 fonts, 0 dirs
/usr/local/share/fonts/v: caching, new cache contents: 63 fonts, 0 dirs
/usr/share/fonts/100dpi: skipping, looped directory detected
/usr/share/fonts/75dpi: skipping, looped directory detected
/usr/share/fonts/Adwaita: skipping, looped directory detected
/usr/share/fonts/OTF: skipping, looped directory detected
/usr/share/fonts/Speedo: skipping, looped directory detected
/usr/share/fonts/TTF: skipping, looped directory detected
/usr/share/fonts/Type1: skipping, looped directory detected
/usr/share/fonts/adobe-source-code-pro: skipping, looped directory detected
/usr/share/fonts/cantarell: skipping, looped directory detected
/usr/share/fonts/cyrillic: skipping, looped directory detected
/usr/share/fonts/default: skipping, looped directory detected
/usr/share/fonts/google-crosextra-caladea: skipping, looped directory detected
/usr/share/fonts/google-crosextra-carlito: skipping, looped directory detected
/usr/share/fonts/misc: skipping, looped directory detected
/usr/share/fonts/open-sans: skipping, looped directory detected
/usr/share/fonts/ttf: skipping, looped directory detected
/usr/local/share/fonts/a: skipping, looped directory detected
/usr/local/share/fonts/b: skipping, looped directory detected
/usr/local/share/fonts/c: skipping, looped directory detected
/usr/local/share/fonts/d: skipping, looped directory detected
/usr/local/share/fonts/f: skipping, looped directory detected
/usr/local/share/fonts/g: skipping, looped directory detected
/usr/local/share/fonts/h: skipping, looped directory detected
/usr/local/share/fonts/i: skipping, looped directory detected
/usr/local/share/fonts/j: skipping, looped directory detected
/usr/local/share/fonts/n: skipping, looped directory detected
/usr/local/share/fonts/s: skipping, looped directory detected
/usr/local/share/fonts/v: skipping, looped directory detected
/usr/share/fonts/TTF/antpolt: skipping, looped directory detected
/usr/share/fonts/TTF/arimo: skipping, looped directory detected
/usr/share/fonts/TTF/comic-relief: skipping, looped directory detected
/usr/share/fonts/TTF/cousine: skipping, looped directory detected
/usr/share/fonts/TTF/dejavu: skipping, looped directory detected
/usr/share/fonts/TTF/droid: skipping, looped directory detected
/usr/share/fonts/TTF/gelasio: skipping, looped directory detected
/usr/share/fonts/TTF/hack: skipping, looped directory detected
/usr/share/fonts/TTF/liberation: skipping, looped directory detected
/usr/share/fonts/TTF/ptsans: skipping, looped directory detected
/usr/share/fonts/TTF/selawik: skipping, looped directory detected
/usr/share/fonts/TTF/tinos: skipping, looped directory detected
/usr/share/fonts/default/TTF: skipping, looped directory detected
/usr/share/fonts/default/Type1: skipping, looped directory detected
/usr/share/fonts/default/ghostscript: skipping, looped directory detected
/usr/share/fonts/ttf/decoratives: skipping, looped directory detected
/usr/share/fonts/ttf/western: skipping, looped directory detected
/usr/share/fonts/default/Type1/adobestd35: skipping, looped directory detected
/var/cache/fontconfig: cleaning cache directory
/root/.cache/fontconfig: cleaning cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
> sudo mktexlsr
mktexlsr: Updating /etc/texmf/ls-R... 
mktexlsr: Updating /usr/share/texmf-dist/ls-R... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.

Relevant informations (hardware involved, software version, logs or output…):

The only commands that saved me are the following:

> sudo texhash
texhash: Updating /etc/texmf/ls-R... 
texhash: Updating /usr/share/texmf-dist/ls-R... 
texhash: Updating /var/lib/texmf/ls-R... 
texhash: Done.
> sudo updmap-sys
updmap will read the following updmap.cfg files (in precedence order):
  /etc/texmf/web2c/updmap.cfg
  /usr/share/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /etc/texmf/web2c/updmap.cfg
dvips output dir: "/var/lib/texmf/fonts/map/dvips/updmap"
pdftex output dir: "/var/lib/texmf/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/var/lib/texmf/fonts/map/dvipdfmx/updmap"
updmap [WARNING]: generated map uptex-haranoaji-04.map (from uptex-@jaEmbed@@jaVariant@.map) does not exist, not activating it!
updmap [WARNING]: generated map uptex-tc-arphic.map (from uptex-tc-@tcEmbed@.map) does not exist, not activating it!
updmap [WARNING]: generated map otf-ko-baekmuk.map (from otf-ko-@koEmbed@.map) does not exist, not activating it!
updmap [WARNING]: generated map ptex-haranoaji-04.map (from ptex-@jaEmbed@@jaVariant@.map) does not exist, not activating it!
updmap [WARNING]: generated map uptex-ko-baekmuk.map (from uptex-ko-@koEmbed@.map) does not exist, not activating it!
updmap [WARNING]: generated map otf-haranoaji.map (from otf-@jaEmbed@.map) does not exist, not activating it!
updmap [WARNING]: generated map otf-tc-arphic.map (from otf-tc-@tcEmbed@.map) does not exist, not activating it!
updmap [WARNING]: generated map otf-sc-arphic.map (from otf-sc-@scEmbed@.map) does not exist, not activating it!
updmap [WARNING]: generated map uptex-sc-arphic.map (from uptex-sc-@scEmbed@.map) does not exist, not activating it!
updmap [WARNING]: generated map otf-up-haranoaji.map (from otf-up-@jaEmbed@.map) does not exist, not activating it!

updmap is creating new map files
using the following configuration:
  LW35 font names                  : URWkb (/etc/texmf/web2c/updmap.cfg)
  prefer outlines                  : true (/etc/texmf/web2c/updmap.cfg)
  texhash enabled                  : true
  download standard fonts (dvips)  : false (/etc/texmf/web2c/updmap.cfg)
  download standard fonts (pdftex) : true (/etc/texmf/web2c/updmap.cfg)
  jaEmbed replacement string       : haranoaji (/usr/share/texmf-dist/web2c/updmap.cfg)
  jaVariant replacement string     : -04 (/usr/share/texmf-dist/web2c/updmap.cfg)
  scEmbed replacement string       : arphic (/usr/share/texmf-dist/web2c/updmap.cfg)
  tcEmbed replacement string       : arphic (/usr/share/texmf-dist/web2c/updmap.cfg)
  koEmbed replacement string       : baekmuk (/usr/share/texmf-dist/web2c/updmap.cfg)
  create a mapfile for pxdvi       : false (default)

Scanning for LW35 support files  [  3 files]
Scanning for MixedMap entries    [  9 files]
Scanning for KanjiMap entries    [  0 files]
Scanning for Map entries         [ 10 files]

Generating output for dvipdfmx...
Generating output for ps2pk...
Generating output for dvips...
Generating output for pdftex...

Files generated:
  /var/lib/texmf/fonts/map/dvips/updmap:
       15758 2025-06-28 18:14:56 builtin35.map
       21231 2025-06-28 18:14:56 download35.map
       67791 2025-06-28 18:14:56 psfonts_pk.map
       74861 2025-06-28 18:14:56 psfonts_t1.map
       80328 2025-06-28 18:14:56 ps2pk.map
       74861 2025-06-28 18:14:56 psfonts.map = psfonts_t1.map
  /var/lib/texmf/fonts/map/pdftex/updmap:
       80335 2025-06-28 18:14:56 pdftex_dl14.map
       78670 2025-06-28 18:14:56 pdftex_ndl14.map
       80335 2025-06-28 18:14:56 pdftex.map = pdftex_dl14.map
  /var/lib/texmf/fonts/map/dvipdfmx/updmap:
         281 2025-06-28 18:14:56 kanjix.map

Transcript written on: /var/lib/texmf/web2c/updmap.log
updmap: updating ls-R files.

After I launched these two commands, the mydocument.pdf file is correctly generated, leaving me with only the non essential warnings.

I don’t know if this can be related with the post install scripts of TexLive.
Hope this can be helpful for someone else.

Search terms: “latex pdf”

I made one of those threads. I will have to test this solution in a VM, because on my install I went with the “nuclear option” and installed Texlive manually

Didn’t fix the issue I’d previously reported, but I’m using lualatex.

Hi @zeroability , thank you to point this out.

I already read this solution in the forums, but it will not use the OM repository to install and I prefer to install with dnf.

The other one I read it very quickly, but - as far as I understand - the solution is the same: the official quick install.

Please read it again:

If the issue is based on a specific language, we can’t plan for that and it makes no sense to install every single package. So, you would need to work with us to identify which languages. It’s also asking for a font in your original error. We have no way of knowing what that is supposed to be. It will probably be language specific, also.

I’m using the OS in english. The LaTeX document is in english too. There should not be a specific language issue.
I was simply compiling this document, and now is using the local fonts folder too.

About the missing fonts, I suppose you’re referring to the message xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF output..: the error comes with and without the custom fonts being installed in the system. The same error comes out with the basic texlive and with the full scheme install: my initial intention was not to install the texlive-scheme-full, but only the required packages.

I don’t know if there’s a way to help finding a possible issue in the packages install. In case you know, I would be happy to help.

Hi @sez11a,

I’ve tried to compile your example file (I called it newmain.tex) on my machine and indeed it’s giving the same error you posted here.

❯ latexmk newmain.tex
Rc files read:
  .latexmkrc
Latexmk: This is Latexmk, John Collins, 7 Apr. 2024. Version 4.85.
Latexmk: applying rule 'lualatex'...
Rule 'lualatex':  Reasons for rerun
Changed files or newly in use/created:
  newmain.aux
  newmain.tex
Category 'changed_user':
  newmain.tex

------------
Run number 1 of rule 'lualatex'
------------
------------
Running 'lualatex  -recorder  "newmain.tex"'
------------
This is LuaTeX, Version 1.18.0 (TeX Live 2024/OpenMandriva)
 restricted system commands enabled.

kpathsea: Running mktexfmt lualatex.fmt
mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
mktexfmt:   /usr/share/texmf-dist/web2c/fmtutil.cnf
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
mktexfmt:   /home/silvano/.texlive2013/texmf-config/web2c/fmtutil.cnf
mktexfmt [INFO]: writing formats under /home/silvano/.texlive2013/texmf-var/web2c
mktexfmt [INFO]: --- remaking lualatex with luahbtex
mktexfmt: running `luahbtex -ini   -jobname=lualatex -progname=lualatex lualatex.ini' ...
This is LuaHBTeX, Version 1.18.0 (TeX Live 2024/OpenMandriva)  (INITEX)
 restricted system commands enabled.
(/usr/share/texmf-dist/tex/latex/tex-ini-files/lualatex.ini
(/usr/share/texmf-dist/tex/generic/tex-ini-files/luatexconfig.tex
(/usr/share/texmf-dist/tex/generic/config/pdftexconfig.tex))
(/usr/share/texmf-dist/tex/latex/base/latex.ltx
(/usr/share/texmf-dist/tex/latex/base/texsys.cfg)
./texsys.aux found


\@currdir set to: ./.


Assuming \openin and \input
have the same search path.


Defining UNIX/DOS style filename parser.

catcodes, registers, parameters,
LaTeX2e <2024-11-01> patch level 1
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.ltx
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3-code.tex)) hacks,
document commands, templates, control, par, spacing, files, font encodings,
lengths, NFSS base, NFSS axes, NFSS tracing, NFSS declarative interface,
NFSS initialization,
====================================

Local config file fonttext.cfg used

====================================
(/usr/share/texmf-dist/tex/latex/base/fonttext.cfg
(/usr/share/texmf-dist/tex/latex/base/fonttext.ltx
=== Don't modify this file, use a .cfg file instead ===

(/usr/share/texmf-dist/tex/latex/base/omlenc.def)
(/usr/share/texmf-dist/tex/latex/base/omsenc.def)
(/usr/share/texmf-dist/tex/latex/base/ot1enc.def)
(/usr/share/texmf-dist/tex/latex/base/t1enc.def)
(/usr/share/texmf-dist/tex/latex/base/ts1enc.def)
(/usr/share/texmf-dist/tex/latex/base/tuenc.def)
(/usr/share/texmf-dist/tex/latex/base/tulmr.fd)
(/usr/share/texmf-dist/tex/latex/base/tulmss.fd)
(/usr/share/texmf-dist/tex/latex/base/tulmtt.fd)
(/usr/share/texmf-dist/tex/latex/lm/ts1lmr.fd)
(/usr/share/texmf-dist/tex/latex/base/t1cmr.fd)
(/usr/share/texmf-dist/tex/latex/base/ot1cmr.fd)
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf-dist/tex/latex/base/t1cmss.fd)
(/usr/share/texmf-dist/tex/latex/base/t1cmtt.fd)
(/usr/share/texmf-dist/tex/latex/base/ot1cmss.fd)
(/usr/share/texmf-dist/tex/latex/base/ot1cmtt.fd)
(/usr/share/texmf-dist/tex/latex/base/ts1cmss.fd)
(/usr/share/texmf-dist/tex/latex/base/ts1cmtt.fd)))
====================================

Local config file fontmath.cfg used

====================================
(/usr/share/texmf-dist/tex/latex/base/fontmath.cfg
(/usr/share/texmf-dist/tex/latex/base/fontmath.ltx
=== Don't modify this file, use a .cfg file instead ===

(/usr/share/texmf-dist/tex/latex/base/omlcmm.fd)
(/usr/share/texmf-dist/tex/latex/base/omscmsy.fd)
(/usr/share/texmf-dist/tex/latex/base/omxcmex.fd)
(/usr/share/texmf-dist/tex/latex/base/ucmr.fd)))
====================================

Local config file preload.cfg used

=====================================
(/usr/share/texmf-dist/tex/latex/base/preload.cfg
(/usr/share/texmf-dist/tex/latex/base/preload.ltx)) page nos., x-ref,
environments, center, verbatim, math definitions, boxes, title, sectioning,
contents, floats, footnotes, index, bibliography, output,
 Unicode character data,
(/usr/share/texmf-dist/tex/generic/unicode-data/load-unicode-data.tex
load-unicode-data.tex v1.17 (2023-09-18)
Reading Unicode data
# UnicodeData-15.1.0.txt
# Modified 2023-09-18 08:45:00 GMT [JAW]
)
===========================================
Local configuration file hyphen.cfg used
===========================================
(/usr/share/texmf-dist/tex/generic/babel/hyphen.cfg
(/usr/share/texmf-dist/tex/generic/babel/luababel.def)
(/usr/share/texmf-dist/tex/generic/hyphen/hyphen.tex))
No file latex2e-first-aid-for-external-files.ltx.

))
Beginning to dump on file lualatex.fmt
 (format=lualatex 2025.7.13)
24160 strings using 434172 bytes
1071279 memory locations dumped; current usage is 204&506318
22808 multiletter control sequences
\font\nullfont=nullfont
\font\OMX/cmex/m/n/10=cmex10
\font\tenln=line10
\font\tenlnw=linew10
\font\tencirc=lcircle10
\font\tencircw=lcirclew10
\font\OT1/cmr/m/n/5=cmr5
\font\OT1/cmr/m/n/7=cmr7
\font\OT1/cmr/m/n/10=cmr10
\font\OML/cmm/m/it/5=cmmi5
\font\OML/cmm/m/it/7=cmmi7
\font\OML/cmm/m/it/10=cmmi10
\font\OMS/cmsy/m/n/5=cmsy5
\font\OMS/cmsy/m/n/7=cmsy7
\font\OMS/cmsy/m/n/10=cmsy10
14 preloaded fonts
warning  (pdf backend): no pages of output.
Transcript written on lualatex.log.
mktexfmt [INFO]: log file copied to: /home/silvano/.texlive2013/texmf-var/web2c/luahbtex/lualatex.log
mktexfmt [INFO]: /home/silvano/.texlive2013/texmf-var/web2c/luahbtex/lualatex.fmt installed.
mktexfmt [INFO]: disabled formats: 3
mktexfmt [INFO]: successfully rebuilt formats: 1
mktexfmt [INFO]: not selected formats: 53
mktexfmt [INFO]: total formats: 57
mktexfmt [INFO]: exiting with status 0

---! lualatex.fmt was written by luahbtex
(Fatal format file error; I'm stymied)Latexmk: No log file was found, neither the expected one, 'newmain.log', nor one in '.'.
Latexmk: fls file doesn't appear to have been made.
Latexmk: Getting log file 'newmain.log'
Latexmk: Couldn't read log file 'newmain.log':
  No such file or directory
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  lualatex: Run of rule 'lualatex' gave a non-zero error code
----------------------
This message may duplicate earlier message.
Latexmk: Failure in processing file 'newmain.tex':
   *LaTeX didn't generate the expected log file 'newmain.log'
----------------------

Latexmk: Sometimes, the -f option can be used to get latexmk
  to try to force complete processing.
  But normally, you will need to correct the file(s) that caused the
  error, and then rerun latexmk.
  In some cases, it is best to clean out generated files before rerunning
  latexmk after you've corrected the files.

Anyway, I’ve managed to compile with lualatex. I’ll describe in detail what I’ve done, hence this will be a very long post, sorry.

Running kpsewhich -var-value TEXMFCONFIG it confirms that texlive is configured to use the $HOME/.texlive2013/texmf-config, hence still a sudo fmtutil-sys --all or sudo fmtutil-sys --byfmt lualatex is not solving the problem. The fmtutil-user is not available on my system, but fmtutil --user can be used with the TEXMF{VAR,CONFIG} env variables correctly defined.

The $HOME/.texlive2013/ path is not set by my user configuration, hence it’s forced by system configuration. And indeed:

❯ cat /usr/share/texmf-dist/web2c/texmf.cnf | grep texlive2013
TEXMFVAR = $HOME/.texlive2013/texmf-var
TEXMFCONFIG = $HOME/.texlive2013/texmf-config

Anyway it shoud be forced to use the /usr/share/texmf-dist/web2c/fmtutil.cnf existing file.

At this point, I commented out the two lines that are defining the TEXMFVAR and TEXMFCONFIG env variables, removed the $HOME/.texlive2013 folder and tried to recompile the LaTeX file with latexmk newmain.tex, getting the same error.

❯ lualatex -interaction=nonstopmode newmain.tex
This is LuaTeX, Version 1.18.0 (TeX Live 2024/OpenMandriva)
 restricted system commands enabled.

kpathsea: Running mktexfmt lualatex.fmt
mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
mktexfmt:   /usr/share/texmf-dist/web2c/fmtutil.cnf
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
mktexfmt:   /usr/share/texmf-dist/web2c/fmtutil.cnf
/usr/bin/mktexfmt: mkdir(/web2c/) failed for tree /web2c: Permission denied at /usr/share/tlpkg/TeXLive/TLUtils.pm line 1207.
I can't find the format file `lualatex.fmt'!

The problem now is with permissions and I need to use sudo one time to let lualatex create the files in the system directory. Running sudo lualatex -interaction=nonstopmode newmain.tex will generate the format file.
The final error (—! lualatex.fmt was written by luahbtex (Fatal format file error; I’m stymied)) is fine because it tried to compile the file but it was not finding the just compiled fmt.
Anyway, compiling again without sudo it’s not working, hence I tried to reinstall the lualatex binary from the OM repos (sudo dnf reinstall texlive-latex.bin) and compile again (sudo lualatex newmain.tex) with no success.

With this texlive installation, when executed as user, it tries to write in the system directoy instead to use the pre-compiled formats, causing the permission errors. This seems to end up to restore the lines we previously commented out in the /usr/share/texmf-dist/web2c/texmf.cnf.
But, in place to restore the texmf.cnf, I tried to set the env variables only for the compilation command. This tells to latexmk (and to lualatex) to use a user defined directoy for its temporary files and configuration files, without creating conflicts.
(See how here I created a $HOME/.texlive folder, very similar to the $HOME/.texlive2013: just naming convention at this point).

❯ env TEXMFVAR=~/.texlive/texmf-var TEXMFCONFIG=~/.texlive/texmf-config latexmk newmain.tex

    Rc files read:
      .latexmkrc
    Latexmk: This is Latexmk, John Collins, 7 Apr. 2024. Version 4.85.
    Latexmk: applying rule 'lualatex'...
    Rule 'lualatex':  Reasons for rerun
    Changed files or newly in use/created:
      newmain.aux
      newmain.tex
    Category 'changed_user':
      newmain.tex

    ------------
    Run number 1 of rule 'lualatex'
    ------------
    ------------
    Running 'lualatex  -recorder  "newmain.tex"'
    ------------

    kpathsea: Running mktexfmt lualatex.fmt
    mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
    mktexfmt:   /usr/share/texmf-dist/web2c/fmtutil.cnf
    mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
    mktexfmt:   /home/silvano/.texlive/texmf-config/web2c/fmtutil.cnf
    mktexfmt [INFO]: writing formats under /home/silvano/.texlive/texmf-var/web2c
    mktexfmt [INFO]: --- remaking lualatex with luahbtex
    mktexfmt: running `luahbtex -ini   -jobname=lualatex -progname=lualatex lualatex.ini' ...
    This is LuaHBTeX, Version 1.18.0 (TeX Live 2024/OpenMandriva)  (INITEX)
     restricted system commands enabled.
    (/usr/share/texmf-dist/tex/latex/tex-ini-files/lualatex.ini
    (/usr/share/texmf-dist/tex/generic/tex-ini-files/luatexconfig.tex
    (/usr/share/texmf-dist/tex/generic/config/pdftexconfig.tex))
    (/usr/share/texmf-dist/tex/latex/base/latex.ltx
    (/usr/share/texmf-dist/tex/latex/base/texsys.cfg)
    ./texsys.aux found


    \@currdir set to: ./.


    Assuming \openin and \input
    have the same search path.


    Defining UNIX/DOS style filename parser.

    catcodes, registers, parameters,
    LaTeX2e <2024-11-01> patch level 1
    (/usr/share/texmf-dist/tex/latex/l3kernel/expl3.ltx
    (/usr/share/texmf-dist/tex/latex/l3kernel/expl3-code.tex)) hacks,
    document commands, templates, control, par, spacing, files, font encodings,
    lengths, NFSS base, NFSS axes, NFSS tracing, NFSS declarative interface,
    NFSS initialization,
    ====================================

    Local config file fonttext.cfg used

    ====================================
    (/usr/share/texmf-dist/tex/latex/base/fonttext.cfg
    (/usr/share/texmf-dist/tex/latex/base/fonttext.ltx
    === Don't modify this file, use a .cfg file instead ===

    (/usr/share/texmf-dist/tex/latex/base/omlenc.def)
    (/usr/share/texmf-dist/tex/latex/base/omsenc.def)
    (/usr/share/texmf-dist/tex/latex/base/ot1enc.def)
    (/usr/share/texmf-dist/tex/latex/base/t1enc.def)
    (/usr/share/texmf-dist/tex/latex/base/ts1enc.def)
    (/usr/share/texmf-dist/tex/latex/base/tuenc.def)
    (/usr/share/texmf-dist/tex/latex/base/tulmr.fd)
    (/usr/share/texmf-dist/tex/latex/base/tulmss.fd)
    (/usr/share/texmf-dist/tex/latex/base/tulmtt.fd)
    (/usr/share/texmf-dist/tex/latex/lm/ts1lmr.fd)
    (/usr/share/texmf-dist/tex/latex/base/t1cmr.fd)
    (/usr/share/texmf-dist/tex/latex/base/ot1cmr.fd)
    (/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)
    (/usr/share/texmf-dist/tex/latex/base/t1cmss.fd)
    (/usr/share/texmf-dist/tex/latex/base/t1cmtt.fd)
    (/usr/share/texmf-dist/tex/latex/base/ot1cmss.fd)
    (/usr/share/texmf-dist/tex/latex/base/ot1cmtt.fd)
    (/usr/share/texmf-dist/tex/latex/base/ts1cmss.fd)
    (/usr/share/texmf-dist/tex/latex/base/ts1cmtt.fd)))
    ====================================

    Local config file fontmath.cfg used

    ====================================
    (/usr/share/texmf-dist/tex/latex/base/fontmath.cfg
    (/usr/share/texmf-dist/tex/latex/base/fontmath.ltx
    === Don't modify this file, use a .cfg file instead ===

    (/usr/share/texmf-dist/tex/latex/base/omlcmm.fd)
    (/usr/share/texmf-dist/tex/latex/base/omscmsy.fd)
    (/usr/share/texmf-dist/tex/latex/base/omxcmex.fd)
    (/usr/share/texmf-dist/tex/latex/base/ucmr.fd)))
    ====================================

    Local config file preload.cfg used

    =====================================
    (/usr/share/texmf-dist/tex/latex/base/preload.cfg
    (/usr/share/texmf-dist/tex/latex/base/preload.ltx)) page nos., x-ref,
    environments, center, verbatim, math definitions, boxes, title, sectioning,
    contents, floats, footnotes, index, bibliography, output,
     Unicode character data,
    (/usr/share/texmf-dist/tex/generic/unicode-data/load-unicode-data.tex
    load-unicode-data.tex v1.17 (2023-09-18)
    Reading Unicode data
    # UnicodeData-15.1.0.txt
    # Modified 2023-09-18 08:45:00 GMT [JAW]
    )
    ===========================================
    Local configuration file hyphen.cfg used
    ===========================================
    (/usr/share/texmf-dist/tex/generic/babel/hyphen.cfg
    (/usr/share/texmf-dist/tex/generic/babel/luababel.def)
    (/usr/share/texmf-dist/tex/generic/hyphen/hyphen.tex))
    No file latex2e-first-aid-for-external-files.ltx.

    ))
    Beginning to dump on file lualatex.fmt
     (format=lualatex 2025.7.14)
    24160 strings using 434172 bytes
    1071209 memory locations dumped; current usage is 204&506283
    22808 multiletter control sequences
    \font\nullfont=nullfont
    \font\OMX/cmex/m/n/10=cmex10
    \font\tenln=line10
    \font\tenlnw=linew10
    \font\tencirc=lcircle10
    \font\tencircw=lcirclew10
    \font\OT1/cmr/m/n/5=cmr5
    \font\OT1/cmr/m/n/7=cmr7
    \font\OT1/cmr/m/n/10=cmr10
    \font\OML/cmm/m/it/5=cmmi5
    \font\OML/cmm/m/it/7=cmmi7
    \font\OML/cmm/m/it/10=cmmi10
    \font\OMS/cmsy/m/n/5=cmsy5
    \font\OMS/cmsy/m/n/7=cmsy7
    \font\OMS/cmsy/m/n/10=cmsy10
    14 preloaded fonts
    warning  (pdf backend): no pages of output.
    Transcript written on lualatex.log.
    mktexfmt [INFO]: log file copied to: /home/silvano/.texlive/texmf-var/web2c/luahbtex/lualatex.log
    mktexfmt [INFO]: /home/silvano/.texlive/texmf-var/web2c/luahbtex/lualatex.fmt installed.
    mktexfmt [INFO]: disabled formats: 3
    mktexfmt [INFO]: successfully rebuilt formats: 1
    mktexfmt [INFO]: not selected formats: 53
    mktexfmt [INFO]: total formats: 57
    mktexfmt [INFO]:
    *************************************************************
    *                                                           *
    * WARNING: you are switching to fmtutil's per-user formats. *
    *         Please read the following warnings!               *
    *                                                           *
    *************************************************************

    You have run fmtutil-user (as opposed to fmtutil-sys) for the first time;
    this has created format files which are local to your personal account.

    From now on, any changes in system formats will *not* be automatically
    reflected in your files; furthermore, running fmtutil-sys will no longer
    have any effect for you.

    As a consequence, you yourself have to rerun fmtutil-user after any
    change in the system directories. For example, when one of the LaTeX or
    other format source files changes, which happens frequently.
    See https://tug.org/texlive/scripts-sys-user.html for details.

    If you want to undo this, remove the files mentioned above.

    Run mktexfmt --help for full documentation of fmtutil.
    mktexfmt [INFO]: exiting with status 0
    This is LuaTeX, Version 1.18.0 (TeX Live 2024/OpenMandriva)
     restricted system commands enabled.

    ---! lualatex.fmt was written by luahbtex
    (Fatal format file error; I'm stymied)Latexmk: Getting log file 'newmain.log'
    Latexmk: Errors, so I did not complete making targets
    Collected error summary (may duplicate other messages):
      lualatex: Run of rule 'lualatex' gave a non-zero error code

    Latexmk: No log file was found, neither the expected one, 'newmain.log', nor one in '.'.
    Latexmk: fls file doesn't appear to have been made.
    Latexmk: Couldn't read log file 'newmain.log':
      No such file or directory
    ----------------------
    This message may duplicate earlier message.
    Latexmk: Failure in processing file 'newmain.tex':
       *LaTeX didn't generate the expected log file 'newmain.log'
    ----------------------
    Latexmk: Sometimes, the -f option can be used to get latexmk
      to try to force complete processing.
      But normally, you will need to correct the file(s) that caused the
      error, and then rerun latexmk.
      In some cases, it is best to clean out generated files before rerunning
      latexmk after you've corrected the files.

The output is showing mktexfmt that is writing the fmt in the user directory (/home/silvano/.texlive/texmf-var/web2c) without permission errors. The fatal format file error is here because the fmt is created in the same compilation command.
At this point, a second execution of the same command should compile the document, but it gives the same issue we’re fighting from the beginning (we’re basically using the same configuration of the first install).

Here below there is how I modified the .latexmkrc to force lualatex to use the just generated fmt files (take care tu use absolute path and not the ~):

    7    + $lualatex = 'lualatex --fmt="/home/silvano/.texlive/texmf-var/web2c/lualatex.fmt" %O %S';
    8      $pdf_mode = 4;
    9      $dvi_mode = '0';
    10     $pdf_previewer = 'start okular'

Now, with the latexmk configuration explicitly pointing to the correct format file, I run the compilation command. This time, lualatex will have no choice but to use the format file we created.

❯ latexmk newmain.tex

    [CUT]
    This is LuaTeX, Version 1.18.0 (TeX Live 2024/OpenMandriva)
     restricted system commands enabled.
    I can't find the format file `/home/silvano/.texlive/texmf-var/web2c/lualatex.fmt'!
    Latexmk: Getting log file 'newmain.log'
    Latexmk: Errors, so I did not complete making targets
    Collected error summary (may duplicate other messages):
      lualatex: Run of rule 'lualatex' gave a non-zero error code

Okay, the error is still the same. This means that the problem is not just finding the file, but that lualatex insists on creating it every time, ignoring the existing one.
Let’s try to force format creation with the absolute path. This command will tell lualatex to create the format file exactly where we expect it to be.

In order to avoid any permissions of path problems, I perform the format creation inside the folder that must contain the file:

❯ cd /home/silvano/.texlive/texmf-var/web2c && lualatex -ini -jobname=lualatex -progname=lualatex lualatex.ini

   This is LuaTeX, Version 1.18.0 (TeX Live 2024/OpenMandriva)  (INITEX)
    restricted system commands enabled.

   [CUT]

   warning  (pdf backend): no pages of output.
   Transcript written on lualatex.log.

Finally. The format file has been successfully created. Now that the lualatex.fmt file exists in the user directory, and the compilation should run smoothly.
I go back to the original directory and re-run latexmk. This time, it will use the format we just created.

❯ cd /home/silvano/Documents/latextest/newmain && latexmk newmain.tex

   Rc files read:
     .latexmkrc
   Latexmk: This is Latexmk, John Collins, 7 Apr. 2024. Version 4.85.
   Latexmk: applying rule 'lualatex'...
   Rule 'lualatex':  Reasons for rerun
   Changed files or newly in use/created:
     newmain.aux
     newmain.tex
   Category 'changed_user':
     newmain.tex

   ------------
   Run number 1 of rule 'lualatex'
   ------------
   ------------
   Running 'lualatex --fmt="/home/silvano/.texlive/texmf-var/web2c/lualatex.fmt"  -recorder  "newmain.tex"'
   ------------
   This is LuaTeX, Version 1.18.0 (TeX Live 2024/OpenMandriva)
    restricted system commands enabled.
   (./newmain.tex
   LaTeX2e <2024-11-01> patch level 1
   L3 programming layer <2024-09-10>


   luaotfload | load : FATAL ERROR
   luaotfload | load :   × Failed to load "luaotfload" module "database".
   luaotfload | load :   × Error message:
   luaotfload | load :     × "...texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua:203: module 'lua-uni-case' not found:".
   luaotfload | load :     × "no field package.preload['lua-uni-case']".
   luaotfload | load :     × "[kpse lua searcher] file not found: 'lua-uni-case'".

   stack traceback:
     /usr/share/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:200: in upvalue 'loadmodule'
     /usr/share/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:275: in local 'initialize'
     /usr/share/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:330: in field 'main'
     [\directlua]:1: in main chunk

   Latexmk: Sometimes, the -f option can be used to get latexmk
     to try to force complete processing.
     But normally, you will need to correct the file(s) that caused the
     error, and then rerun latexmk.
     In some cases, it is best to clean out generated files before rerunning
     latexmk after you've corrected the files.
   Latexmk: Getting log file 'newmain.log'
   Latexmk: Examining 'newmain.fls'
   Latexmk: Examining 'newmain.log'
   Latexmk: Errors, so I did not complete making targets
   Collected error summary (may duplicate other messages):
     lualatex: Command for 'lualatex' gave return code 255
         Refer to 'newmain.log' and/or above output for details

This is a different problem. It means that lualatex is missing a fundamental Lua module, lua-uni-case.
This is not a configuration problem, but a problem of missing dependencies in the installation of TeX Live.
I search the package that provides the module:

❯ dnf provides '*/lua-uni-case.lua'
Last metadata expiration check: 0:37:26 ago on lun 14 lug 2025, 00:23:49.
texlive-lua-uni-algos-62204-1.noarch : Unicode algorithms for LuaTeX
Repo        : rolling-x86_64
Matched from:
Filename    : /usr/share/texmf-dist/tex/luatex/lua-uni-algos/lua-uni-case.lua

Indeed, in the system the package is not installed:

❯ rpm -qa | grep texlive-lua
texlive-lua-alt-getopt-56414-1.noarch
texlive-luatex.bin-20240312-10.x86_64
texlive-luatex-66967-1.noarch
texlive-luaxml-72858-1.noarch
texlive-luatextra-20747-2.noarch
texlive-luatexko-68243-1.noarch
texlive-luatexja-72546-1.noarch
texlive-luatexbase-52663-1.noarch
texlive-luasseq-65511-1.noarch
texlive-luaotfload-70234-1.noarch
texlive-luamplib-73137-1.noarch
texlive-lualibs-67994-1.noarch
texlive-lualatex-math-61464-1.noarch
texlive-lualatex-doc-de-30474-1.noarch
texlive-lualatex-doc-30473-1.noarch
texlive-luaintro-35490-1.noarch
texlive-luainputenc-20491-2.noarch
texlive-luaindex-25882-2.noarch
texlive-luacode-25193-2.noarch
texlive-luabidi-68432-1.noarch
texlive-luabibentry-55777-2.noarch
texlive-lua2dox-0.2-13.noarch
texlive-lua-visual-debug-65464-1.noarch
texlive-lua-check-hyphen-47527-2.noarch

So, I install the package:

❯ sudo dnf in texlive-lua-uni-algos

Now I can run again the compilation command:

latexmk -C && latexmk newmain.tex

    Rc files read:
      .latexmkrc
    Latexmk: This is Latexmk, John Collins, 7 Apr. 2024. Version 4.85.
    Latexmk: Doing main (small) clean up for 'newmain.tex'

    Rc files read:
      .latexmkrc
    Latexmk: This is Latexmk, John Collins, 7 Apr. 2024. Version 4.85.
    No existing .aux file, so I'll make a simple one, and require run of *latex.
    Latexmk: applying rule 'lualatex'...
    Rule 'lualatex':  Reasons for rerun
    Category 'other':
      Rerun of 'lualatex' forced or previously required:
        Reason or flag: 'Initial setup'

    ------------
    Run number 1 of rule 'lualatex'
    ------------
    ------------
    Running 'lualatex --fmt="/home/silvano/.texlive/texmf-var/web2c/lualatex.fmt"  -recorder  "newmain.tex"'
    ------------
    This is LuaTeX, Version 1.18.0 (TeX Live 2024/OpenMandriva)
     restricted system commands enabled.
    (./newmain.tex
    LaTeX2e <2024-11-01> patch level 1
    L3 programming layer <2024-09-10>
     (/usr/share/texmf-dist/tex/latex/base/article.cls
    Document Class: article 2024/06/29 v1.4n Standard LaTeX document class
    (/usr/share/texmf-dist/tex/latex/base/size11.clo
    luaotfload | db : Font names database not found, generating new one.
    luaotfload | db : This can take several minutes; please be patient.))
    (/usr/share/texmf-dist/tex/latex/microtype/microtype.sty
    (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
    (/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
    (/usr/share/texmf-dist/tex/latex/microtype/microtype-luatex.def)
    (/usr/share/texmf-dist/tex/latex/microtype/microtype.cfg))
    (/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
    (/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
    (/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
    (/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)

    ! LaTeX Error: File `luatex.def' not found.

    Type X to quit or <RETURN> to proceed,
    or enter new name. (Default extension: def)

    Enter file name:
    ! Emergency stop.
    <read *>

    l.107 ...ned{ver@\Gin@driver}{\input{\Gin@driver}}{}

     381 words of node memory still in use:
       2 hlist, 1 rule, 1 dir, 3 kern, 1 glyph, 3 attribute, 48 glue_spec, 3 attrib
    ute_list, 3 if_stack, 1 write nodes
       avail lists: 2:6,3:2,4:1,5:1,7:2,9:3
    !  ==> Fatal error occurred, no output PDF file produced!
    Transcript written on newmain.log.
    Latexmk: Missing input file 'luatex.def' (or dependence on it) from following:
      ! LaTeX Error: File `luatex.def' not found.
    Latexmk: Sometimes, the -f option can be used to get latexmk
      to try to force complete processing.
      But normally, you will need to correct the file(s) that caused the
      error, and then rerun latexmk.
      In some cases, it is best to clean out generated files before rerunning
      latexmk after you've corrected the files.
    Latexmk: Getting log file 'newmain.log'
    Latexmk: Examining 'newmain.fls'
    Latexmk: Examining 'newmain.log'
    Latexmk: Errors, so I did not complete making targets
    Collected error summary (may duplicate other messages):
      lualatex: Command for 'lualatex' gave return code 1
          Refer to 'newmain.log' and/or above output for details

Ok, another missing file: luatex.def. This is a graphics driver definition file for lualatex.

❯ dnf provides '*/luatex.def'
Last metadata expiration check: 0:45:35 ago on lun 14 lug 2025, 00:23:49.
texlive-graphics-def-70970-1.noarch : Colour and graphics option files
Repo        : rolling-x86_64
Matched from:
Filename    : /usr/share/texmf-dist/tex/latex/graphics-def/luatex.def

I need to install the texlive-graphics-def package:

❯ rpm -qa | grep "texlive-graphics"
texlive-graphics-71408-1.noarch
texlive-graphics-cfg-41448-1.noarch
texlive-graphics-pln-71575-1.noarch

❯ sudo dnf in texlive-graphics-def

At this point I can compile again the document with latexmk -C && latexmk newmain.tex and comes out that there is another issue.
Now the problem is no longer the TeX configuration, but the fonts. The font “Nimbus Mono” cannot be found.
The required font names are URW Bookman, URW Gothic, Nimbus Mono and are provided by the urw-fonts package that it’s already installed in the system:

❯ rpm -qa | grep urw-fonts
urw-fonts-2020.09.10-2.noarch

I tried to update the fonts cache with sudo fc-cache -f -v and compile again: the Nimbus font it’s still not found.
Ok, the problem could be the luaotfload font database (the engine that fontspec uses to find fonts) is out of date. I need to force its rebuilding.
This is done with the luaotfload-tool command. This command analyzes all the fonts that TeX can see and creates a database of them.
I run the command to update the luaotfload font database (luaotfload-tool --update --force), but this is not helping: even after updating the database, the font is not found.
This suggests that the font name “Nimbus Mono” in the TeX document does not exactly match the font name in the system.
Turns out that the font name is different, in the system it’s called “Nimbus Mono PS” (as the output of fc-list | grep -i "nimbus mono" confirms):

At this point, I change the font name in the newmain.tex file:

  22   - \setmonofont{Nimbus Mono}
  22   + \setmonofont{Nimbus Mono PS}

Now that the font name has been corrected, the compilation should finally work.

 ❯ latexmk -C && latexmk newmain.tex

    [CUT]

    Output written on newmain.pdf (1 page, 16282 bytes).
    Transcript written on newmain.log.
    Latexmk: Getting log file 'newmain.log'
    Latexmk: Examining 'newmain.fls'
    Latexmk: Examining 'newmain.log'
    Latexmk: Log file says output to 'newmain.pdf'
    Latexmk: All targets (newmain.pdf) are up-to-date

Et voilà!!! The compilation was successful and the newmain.pdf file was created.

I have not tried to restore the original configuration and try to simply install the missing dependencies (texlive-lua-uni-algos and texlive-graphics-def) and forcing the local generation of the format file (cd /home/silvano/.texlive/texmf-var/web2c && lualatex -ini -jobname=lualatex -progname=lualatex lualatex.ini), if you try in a VM with a fresh install let me know.
newmain.pdf (15,9 KB)

1 Like

What is the updated dependency list needed for the package texlive? I will get an Issue created to get the package updated.

Is this included in the package or a different one?

I don’t know. I only discovered those two missing dependencies for lualatex, hence I suppose are dependencies for texlive-latex.bin because it was not compiling even a very simple latex:

\documentclass{article}
\usepackage{luacode}

\begin{document}
A random number:
\begin{luacode}
tex.print(math.random())
\end{luacode}
\end{document}
❯ dnf deplist texlive
Last metadata expiration check: 2:15:55 ago on lun 14 lug 2025, 02:43:02.
package: texlive-20240312-10.x86_64
  dependency: ghostscript
   provider: ghostscript-10.05.0-1.x86_64
  dependency: rpmlib(CompressedFileNames) <= 3.0.4-1
  dependency: rpmlib(FileDigests) <= 4.6.0-1
  dependency: rpmlib(PayloadFilesHavePrefix) <= 4.0-1
  dependency: teckit >= 2.5.3-1
   provider: teckit-2.5.11-2.x86_64
  dependency: texlive-collection-latexextra
   provider: texlive-collection-latexextra-1:72971-1.noarch
  dependency: texlive-latex.bin
   provider: texlive-latex.bin-20240312-10.x86_64
  dependency: texlive-tlpkg
   provider: texlive-tlpkg-20230430-1.noarch
❯ dnf provides lualatex
Last metadata expiration check: 0:00:04 ago on lun 14 lug 2025, 05:02:02.
texlive-latex.bin-20240312-10.x86_64 : Binary files of latex
Repo        : @System
Matched from:
Filename    : /usr/bin/lualatex

Am I missing anything else?
To confirm, these are needed for the texlive package. The build process is fairly extensive for the package suite on this.

This thread has [Solved] in the title. Unless I missed it there is no post marked as having the solution. Could someone please mark the post that solved this issue?

[Forum] How to mark your topic as ‘resolved’

The “solve” was to install the binary from their website. So, I would agree it’s not solved.

Then I am removing the [Solved] from the title. No need to confuse people.

1 Like

Yes, confirm, these are the two dependencies I had to install.

Anyway, with this simple latex code:

# PDF-generating modes are:
# 1: pdflatex, as specified by $pdflatex variable (still largely in use)
# 2: postscript conversion, as specified by the $ps2pdf variable (useless)
# 3: dvi conversion, as specified by the $dvipdf variable (useless)
# 4: lualatex, as specified by the $lualatex variable (best)
# 5: xelatex, as specified by the $xelatex variable (second best)
$lualatex = 'lualatex --fmt="/home/silvano/.texlive/texmf-var/web2c/lualatex.fmt" %O %S';
$pdf_mode = 4;
$dvi_mode = '0';
$pdf_previewer = 'start okular'
\documentclass{article}
\usepackage{luacode}

\begin{document}
A random number:
\begin{luacode}
tex.print(math.random())
\end{luacode}
\end{document}

In my current texlive installation, I’m getting this curious error:

❯ latexmk -C && latexmk test.tex 
Rc files read:
  .latexmkrc
Latexmk: This is Latexmk, John Collins, 7 Apr. 2024. Version 4.85.
Latexmk: Doing main (small) clean up for 'test.tex'

Rc files read:
  .latexmkrc
Latexmk: This is Latexmk, John Collins, 7 Apr. 2024. Version 4.85.
No existing .aux file, so I'll make a simple one, and require run of *latex.
Latexmk: applying rule 'lualatex'...
Rule 'lualatex':  Reasons for rerun
Category 'other':
  Rerun of 'lualatex' forced or previously required:
    Reason or flag: 'Initial setup'

------------
Run number 1 of rule 'lualatex'
------------
------------
Running 'lualatex --fmt="/home/silvano/.texlive/texmf-var/web2c/lualatex.fmt"  -recorder  "test.tex"'
------------
This is LuaTeX, Version 1.18.0 (TeX Live 2024/OpenMandriva) 
 restricted system commands enabled.
(./test.tex
LaTeX2e <2024-11-01> patch level 1
L3 programming layer <2024-09-10>
 (/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2024/06/29 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo
luaotfload | db : Font names database not found, generating new one.
luaotfload | db : This can take several minutes; please be patient.))
(/usr/share/texmf-dist/tex/lualatex/luacode/luacode.sty
(/usr/share/texmf-dist/tex/generic/iftex/ifluatex.sty
(/usr/share/texmf-dist/tex/generic/iftex/iftex.sty))
(/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase.sty

! LaTeX Error: File `ctablestack.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: X

Latexmk: Getting log file 'test.log'
Latexmk: Examining 'test.fls'
Latexmk: Examining 'test.log'
Latexmk: Missing input file 'ctablestack.sty' (or dependence on it) from following:
  ! LaTeX Error: File `ctablestack.sty' not found.

and there is no package that provides `ctablestack.sty’. But this could be related to the way it’s written the .tex file.

I’m sorry, my fault, I was not aware of this.

The “Solved” to me was intended to compile XeLaTeX code with the dnf installation of texlive, but the discussion it’s now involving also LuaLaTeX.

That was an amazing bit of troubleshooting, and certainly more than I could have done, as my knowledge of LaTeX is not as extensive as yours. I went as far as installing the full scheme before reporting the problem and giving up. I agree; the “nuclear option” of installing without the package manager is less than ideal, but I had a huge LaTeX project at work, and I had to have it working.

Awesomely done, and thank you from the bottom of my heart. I can’t wait till the packages are fixed!

2 Likes

Thank you for your very kind words. Wow a big piece of documentation! Good luck!

No worries, my only concern is to not confuse other users.