[Solved] 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.

https://forum.openmandriva.org/t/broken-texlive-installation/6699

https://forum.openmandriva.org/t/texlive-seems-to-be-broken/7230

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.