Benjamin-Loison / latex2e

The LaTeX2e kernel
https://www.latex-project.org/
LaTeX Project Public License v1.3c
0 stars 0 forks source link

`pdflatex.fmt made by different executable version, strings are different (Fatal format file error; I'm stymied)` #8

Closed Benjamin-Loison closed 8 months ago

Benjamin-Loison commented 8 months ago

On Termux:

pdflatex test.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Termux) (preloaded format=pdflatex)
 restricted \write18 enabled.
---! /data/data/com.termux/files/usr/share/texlive/texmf-var/web2c/pdftex/pdflatex.fmt made by different executable version, strings are different
(Fatal format file error; I'm stymied)

With test.tex:

\documentclass{article}

\begin{document}

        Test.

\end{document}

Weird as I remember having successfully ran pdflatex on another .tex if I remember correctly.

According to history | grep -i tex my memory is incorrect.

pkg uninstall texlive-bin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  harfbuzz-icu liblua52 libpaper lz4 teckit zziplib
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  texlive-bin texlive-installer
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 44.9 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 57173 files and directories currently installed.)
Removing texlive-installer (20230313) ...
Removing texlive-bin (20230313-3) ...
dpkg: warning: while removing texlive-bin, directory '/data/data/com.termux/files/usr/bin/texlive' not empty so not removed
Processing triggers for man (1.14.6-1) ...
update
Hit:1 https://mirror.sunred.org/termux/termux-main stable InRelease
Hit:2 https://mirror.sunred.org/termux/termux-root root InRelease
Hit:3 https://mirror.sunred.org/termux/termux-x11 x11 InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  harfbuzz-icu liblua52 libpaper lz4 teckit zziplib
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  harfbuzz-icu liblua52 libpaper lz4 teckit zziplib
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 4452 kB disk space will be freed.
(Reading database ... 56444 files and directories currently installed.)
Removing harfbuzz-icu (7.3.0-1) ...
Removing liblua52 (5.2.4-8) ...
Removing libpaper (2.2.5) ...
Removing lz4 (1.9.4) ...
Removing teckit (2.5.12) ...
Removing zziplib (0.13.74) ...
Processing triggers for man (1.14.6-1) ...
pkg install texlive-bin
Checking availability of current mirror:
[*] https://mirror.sunred.org/termux/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  harfbuzz-icu liblua52 libpaper lz4 teckit
  texlive-installer zziplib
The following NEW packages will be installed:
  harfbuzz-icu liblua52 libpaper lz4 teckit
  texlive-bin texlive-installer zziplib
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 160 kB/11.4 MB of archives.
After this operation, 49.4 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://mirror.sunred.org/termux/termux-main stable/main aarch64 liblua52 aarch64 5.2.4-8 [74.7 kB]
Get:2 https://mirror.sunred.org/termux/termux-main stable/main aarch64 lz4 aarch64 1.9.4 [85.6 kB]
Fetched 160 kB in 1s (301 kB/s)
Selecting previously unselected package harfbuzz-icu.
(Reading database ... 56335 files and directories currently installed.)
Preparing to unpack .../0-harfbuzz-icu_7.3.0-1_aarch64.deb ...
Unpacking harfbuzz-icu (7.3.0-1) ...
Selecting previously unselected package liblua52.
Preparing to unpack .../1-liblua52_5.2.4-8_aarch64.deb ...
Unpacking liblua52 (5.2.4-8) ...
Selecting previously unselected package libpaper.
Preparing to unpack .../2-libpaper_2.2.5_aarch64.deb ...
Unpacking libpaper (2.2.5) ...
Selecting previously unselected package lz4.
Preparing to unpack .../3-lz4_1.9.4_aarch64.deb ...
Unpacking lz4 (1.9.4) ...
Selecting previously unselected package teckit.
Preparing to unpack .../4-teckit_2.5.12_aarch64.deb ...
Unpacking teckit (2.5.12) ...
Selecting previously unselected package zziplib.
Preparing to unpack .../5-zziplib_0.13.74_aarch64.deb ...
Unpacking zziplib (0.13.74) ...
Selecting previously unselected package texlive-bin.
Preparing to unpack .../6-texlive-bin_20230313-3_aarch64.deb ...
Unpacking texlive-bin (20230313-3) ...
Selecting previously unselected package texlive-installer.
Preparing to unpack .../7-texlive-installer_20230313_all.deb ...
Unpacking texlive-installer (20230313) ...
Setting up harfbuzz-icu (7.3.0-1) ...
Setting up teckit (2.5.12) ...
Setting up libpaper (2.2.5) ...
Setting up lz4 (1.9.4) ...
Setting up liblua52 (5.2.4-8) ...
Setting up zziplib (0.13.74) ...
Setting up texlive-bin (20230313-3) ...
Setting up texlive-installer (20230313) ...

[*] You can now run the texlive installer by running

      termux-install-tl

    It forwards extra arguments to the install-tl script.
Processing triggers for man (1.14.6-1) ...
termux-install-tl
You will now be shown texlive's install-tl text gui.
You can customize settings, but you have to use the
default TEXDIR and custom binaries or else texlive
is unable to find and run the binaries.

Press 'c' to continue

[*] Loading...

Loading https://mirrors.ircam.fr/pub/CTAN/systems/texlive/tlnet/tlpkg/texlive.tlpdb

=============================================================================
/data/data/com.termux/files/usr/opt/texlive/install-tl/install-tl: The TeX Live versions of the local installation
and the repository being accessed are not compatible:
      local: 2023
 repository: 2024
Perhaps you need to use a different CTAN mirror?
(For more, see the output of install-tl --help, especially the
 -repository option.  Online via https://tug.org/texlive/doc.)
=============================================================================

Still have this issue.

Brief outline of the bug

Minimal example showing the bug

\RequirePackage{latexbug}       % <--should be always the first line (see CONTRIBUTING)!
\documentclass{article}

  % Any preamble code goes here

\begin{document}

  % Demonstration of issue here

\end{document}

Log file (required) and possibly PDF file

Benjamin-Loison commented 8 months ago

https://github.com/termux/termux-packages/issues/10405#issuecomment-2002515050

termux-install-tl -repository https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2023/tlnet-final/

termux-install-tl.txt

Note that on interruption it restarts from the beginning it seems.

Benjamin-Loison commented 8 months ago

Running again completely termux-install-tl solved the issue.

termux-install-tl.txt