[Bug 1176557] New: lualatex seem not to be configured correctly
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 Bug ID: 1176557 Summary: lualatex seem not to be configured correctly Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: gm.venekamp@quicknet.nl QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Using TW 20200909 I am getting an error when using lualatex. The sample document is: ``` \documentclass[a4paper]{article} \begin{document} \end{document} ``` When trying to compile I get the following error: ```
lualatex s.tex This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/TeX Live for SUSE Linux) restricted system commands enabled.
---! lualatex.fmt was written by luatex (Fatal format file error; I'm stymied) ``` After editing the file: ``` /etc/texmf/web2c/fmtutil.cnf ``` and taking a lucky guess at changing the config it now works for me. The three commented out lines below are the original lines in the config file and directly below are the lines that seem to fix my issue. However, I simply took an educated guess here. ``` # from latex-bin: latex pdftex language.dat -translate-file=cp227.tcx *latex.ini pdflatex pdftex language.dat -translate-file=cp227.tcx *pdflatex.ini #dvilualatex luatex language.dat,language.dat.lua dvilualatex.ini #lualatex luatex language.dat,language.dat.lua lualatex.ini #luajitlatex luajittex language.dat,language.dat.lua lualatex.ini dvilualatex lualatex language.dat,language.dat.lua dvilualatex.ini lualatex lualatex language.dat,language.dat.lua lualatex.ini luajitlatex luajitlatex language.dat,language.dat.lua lualatex.ini ``` Regards, Gerben -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 G.M. Venekamp <gm.venekamp@quicknet.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gm.venekamp@quicknet.nl -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 G.M. Venekamp <gm.venekamp@quicknet.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|lualatex seem not to be |lualatex seems not to be |configured correctly |configured correctly -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c1 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS Flags| |needinfo?(gm.venekamp@quick | |net.nl) --- Comment #1 from Dr. Werner Fink <werner@suse.com> --- Please run as root ln -sf luatex /usr/bin/lualatex and then retry -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c2 --- Comment #2 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- Current link: # ll /usr/bin/lualatex lrwxrwxrwx 1 root root 8 Aug 25 21:33 /usr/bin/lualatex -> luahbtex After reverting the changes done in: /etc/texmf/web2c/fmtutil.cnf and running fmtutil --byfmt lualatex.fmt and finally running: ln -sf luatex /usr/bin/lualatex as root # ll /usr/bin/lualatex lrwxrwxrwx 1 root root 6 Sep 19 07:47 /usr/bin/lualatex -> luatex the LaTeX document compiles. Thanks, Gerben -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c3 --- Comment #3 from Dr. Werner Fink <werner@suse.com> --- (In reply to G.M. Venekamp from comment #2)
Current link:
# ll /usr/bin/lualatex lrwxrwxrwx 1 root root 8 Aug 25 21:33 /usr/bin/lualatex -> luahbtex
After reverting the changes done in: /etc/texmf/web2c/fmtutil.cnf and running fmtutil --byfmt lualatex.fmt
About which changes you are talking about? ... Ohmm I'm not aware that there is set luahbtex as engine for lualatex. At least I do not see such a change in one of my patches
and finally running: ln -sf luatex /usr/bin/lualatex as root
# ll /usr/bin/lualatex lrwxrwxrwx 1 root root 6 Sep 19 07:47 /usr/bin/lualatex -> luatex
the LaTeX document compiles.
Thanks, Gerben
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c4 --- Comment #4 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- As stated in the opening comment, I eddited /etc/texmf/web2c/fmtutil.cnf. I did this because I found these lines: # from latex-bin: latex pdftex language.dat -translate-file=cp227.tcx *latex.ini pdflatex pdftex language.dat -translate-file=cp227.tcx *pdflatex.ini dvilualatex luatex language.dat,language.dat.lua dvilualatex.ini lualatex luatex language.dat,language.dat.lua lualatex.ini luajitlatex luajittex language.dat,language.dat.lua lualatex.ini The last three mention luatex as second word. Well actually the last line does not... But in the opening comment I refer to three lines and not two. Anyway, I took a leap of faith and changed those into: dvilualatex lualatex language.dat,language.dat.lua dvilualatex.ini lualatex lualatex language.dat,language.dat.lua lualatex.ini luajitlatex luajitlatex language.dat,language.dat.lua lualatex.ini Well, again, there's really only two lines: dvilualatex and lualatex. After running 'fmtutil --byfmt lualatex.fmt' as root and thereby regenerating what ever needs to regenerated, the lualatex command no-longer failed. That was my solution and I could continue. Actually, I was using beamer to create a presentation, but that is besides the point. Given your solution to a fix, I though it would be best to revert the changes I made to the /etc/texmf/web2c/fmtutil.cnf file and rerun the fmutil command as root again. Doing so caused the lualatex command to fail as it originally did. So, that gave me a reasonable starting point to test your suggestion. It only seemed fair to me to go back to the original state. After applying your solution, the lualatex finished without error as well. I just tested a quick and simple TeX document and that seems to run just fine. Running luatex yields in a readable pdf. To be clear this is your suggested fix. Hope this helps, Gerben -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c5 --- Comment #5 from G.M. Venekamp <gm.venekamp@quicknet.nl> ---
Ohmm I'm not aware that there is set luahbtex as engine for lualatex. At least I do not see such a change in one of my patches
This was what I found, before I changed it. # ll /usr/bin/lualatex lrwxrwxrwx 1 root root 8 Aug 25 21:33 /usr/bin/lualatex -> luahbtex Well, this I never touched myself before. It is what the packages themselves have installed. As far as I know, this is 'original'. Regards, Gerben -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c6 --- Comment #6 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- Oh, I see that the last sentence of comment #4 (https://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c4) is missing a word. 'To be clear this is your suggested fix.' should be 'To be clear this is with your suggested fix.' Regards, Gerben -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c7 --- Comment #7 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- I just finished a zypper dup and I am now on: # cat /etc/os-release NAME="openSUSE Tumbleweed" # VERSION="20200923" Testing a LaTeX document fails with the same error again. LC_ALL=C lualatex sram-for-u2connect.tex This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/TeX Live for SUSE Linux) restricted system commands enabled. ---! lualatex.fmt was written by luatex (Fatal format file error; I'm stymied) This is what I have after zypper dup:
ll /usr/bin/lualatex lrwxrwxrwx 1 root root 8 Sep 23 21:19 /usr/bin/lualatex -> luahbtex
Applying your suggested fix: # ln -sf luatex /usr/bin/lualatex The LaTeX document compiles again. LuaHBTeX is apparently something new and improves hte shaping of various scripts. Some info can be found here: https://www.latex-project.org/news/latex2e-news/ltnews31.pdf Regards, Gerben -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c8 --- Comment #8 from Dr. Werner Fink <werner@suse.com> --- (In reply to G.M. Venekamp from comment #7)
I just finished a zypper dup and I am now on:
# cat /etc/os-release NAME="openSUSE Tumbleweed" # VERSION="20200923"
Testing a LaTeX document fails with the same error again.
LC_ALL=C lualatex sram-for-u2connect.tex This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/TeX Live for SUSE Linux) restricted system commands enabled.
---! lualatex.fmt was written by luatex (Fatal format file error; I'm stymied)
This is what I have after zypper dup:
ll /usr/bin/lualatex lrwxrwxrwx 1 root root 8 Sep 23 21:19 /usr/bin/lualatex -> luahbtex
Applying your suggested fix:
# ln -sf luatex /usr/bin/lualatex
The LaTeX document compiles again.
LuaHBTeX is apparently something new and improves hte shaping of various scripts. Some info can be found here: https://www.latex-project.org/news/latex2e-news/ltnews31.pdf
Regards, Gerben
Yes upstream has switched to luahbtex as engine in fmtutil.cnf ... please run as root fmtutil-sys --refresh then try again to see if this does help as this should refresh the format files which then should be luahbtex based. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c9 --- Comment #9 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- I am guessing you would like me to undo the: ln -sf luatex /usr/bin/lualatex fix and restore it with ln -sf luahbtex /usr/bin/lualatex -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c10 --- Comment #10 from Dr. Werner Fink <werner@suse.com> --- (In reply to G.M. Venekamp from comment #9)
I am guessing you would like me to undo the:
ln -sf luatex /usr/bin/lualatex
fix and restore it with
ln -sf luahbtex /usr/bin/lualatex
Indeed this should be done also if fmtutil does not -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c11 --- Comment #11 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- Having restored the original link by: ln -sf luahbtex /usr/bin/lualatex ll /usr/bin/lualatex lrwxrwxrwx 1 root root 8 Sep 27 11:27 /usr/bin/lualatex -> luahbtex and executing: fmtutil-sys --refresh Unfortunately the error persists:
LC_ALL=C lualatex sram-for-u2connect.tex This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/TeX Live for SUSE Linux) restricted system commands enabled.
---! lualatex.fmt was written by luatex (Fatal format file error; I'm stymied) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c12 --- Comment #12 from Dr. Werner Fink <werner@suse.com> --- Hmm ... strange ... does there exist /etc/texmf/web2c/fmtutil.cnf.rpmnew file? If so you might compare and port changes from the rpmnew file to the already used file ... or simply move the rpmnew file to the final file. The next is to run (as root!) fmtutil-sys --byfmt lualatex 2>&1 | tee fmtutil.log and then attach this mtutil.log as well as /var/lib/texmf/web2c/luahbtex/lualatex.log -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c13 --- Comment #13 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- Yes it does: # ll /etc/texmf/web2c/fmtutil.cnf.rpmnew -rw-r--r-- 1 root root 5454 Apr 20 18:19 /etc/texmf/web2c/fmtutil.cnf.rpmnew I will attatch it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c14 --- Comment #14 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- Created attachment 841992 --> http://bugzilla.opensuse.org/attachment.cgi?id=841992&action=edit /etc/texmf/web2c/fmtutil.cnf.rpmnew -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c15 --- Comment #15 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- Replacing the existing fmtutil.cnf with fmtutil.cnf.rpmnew and running fmtutil-sys --byfmt lualatex, I can report the LaTeX document now compiles with lualatex. So, I guess that editing the fmtutil.cnf it will no-longer by replaced by an updated version in the rpm. Makes sense. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c16 --- Comment #16 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- Created attachment 841994 --> http://bugzilla.opensuse.org/attachment.cgi?id=841994&action=edit Output of command: fmtutil-sys --byfmt lualatex 2>&1 | tee fmtutil.log -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c17 --- Comment #17 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- Created attachment 841995 --> http://bugzilla.opensuse.org/attachment.cgi?id=841995&action=edit /var/lib/texmf/web2c/luahbtex/lualatex.log -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c18 --- Comment #18 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- Is there anything you would want me to do or check? The bug seems resolved for me and I could close the bug as being resolved. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176557 http://bugzilla.opensuse.org/show_bug.cgi?id=1176557#c20 G.M. Venekamp <gm.venekamp@quicknet.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #20 from G.M. Venekamp <gm.venekamp@quicknet.nl> --- The problem has been resolved for me. the lualatex command compiles documents again without problems. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com