Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 797736 - dev-texlive/texlive-latex-2021: fails to build (failed to build format texmf-dist/fmtutil/format.texlive-latex.cnf)
Summary: dev-texlive/texlive-latex-2021: fails to build (failed to build format texmf-...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-23 07:26 UTC by Konstantin Agouros
Modified: 2023-11-27 21:08 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log of failed emerge (build.log,55.12 KB, application/octet-stream)
2021-06-23 07:26 UTC, Konstantin Agouros
Details
output emerge --info (emerge.info,6.11 KB, text/plain)
2021-06-23 07:31 UTC, Konstantin Agouros
Details
emerge --info (emerge-info.txt,7.10 KB, text/plain)
2021-08-28 22:42 UTC, Jean-Francois Ostiguy
Details
build.log (build.log,54.46 KB, text/x-log)
2021-08-28 22:42 UTC, Jean-Francois Ostiguy
Details
latex-live build log (texlive-latex-20231127.log,15.76 KB, text/x-log)
2023-11-27 20:48 UTC, EK
Details
environment info (info-20231127.log,5.62 KB, text/x-log)
2023-11-27 20:49 UTC, EK
Details
latexdiff build log (latexdiff-20231127.log,4.72 KB, text/x-log)
2023-11-27 20:49 UTC, EK
Details
texlive-basic build log (texlive-basic-20231127.log,33.01 KB, text/x-log)
2023-11-27 20:50 UTC, EK
Details
xetex build log (xetex-20231127.log,8.08 KB, text/x-log)
2023-11-27 20:50 UTC, EK
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Agouros 2021-06-23 07:26:14 UTC
Created attachment 717831 [details]
build log of failed emerge

I tried upgrading as well as unmerging and merging. See attached build.log
Comment 1 Konstantin Agouros 2021-06-23 07:31:01 UTC
Created attachment 717834 [details]
output emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-23 07:31:51 UTC
Not clear to me what the error is.. please include emerge --info, try without distcc, and possibly try perl-cleaner.

It may help to do a world upgrade with --keep-going too.

---
403423 words of font info for 27 preloaded fonts
14 hyphenation exceptions
Hyphenation trie of length 6081 has 183 ops out of 35111
  2 for language 1
  181 for language 0
0 words of pdfTeX memory
0 indirect objects
No pages of output.
Transcript written on pdflatex.log.
fmtutil [INFO]: log file copied to: /m2/portage/portage/dev-texlive/texlive-latex-2021/work/texmf-var/web2c/pdftex/pdflatex.log
fmtutil [INFO]: /m2/portage/portage/dev-texlive/texlive-latex-2021/work/texmf-var/web2c/pdftex/pdflatex.fmt installed.
fmtutil [ERROR]: running `pdftex -ini   -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [INFO]: successfully rebuilt formats: 4
fmtutil [INFO]: failed to build: 1 (pdftex/latex)
fmtutil [INFO]: total formats: 5
fmtutil [INFO]: exiting with status 1
 [31;01m*[0m ERROR: dev-texlive/texlive-latex-2021::gentoo failed (compile phase):
 [31;01m*[0m   failed to build format texmf-dist/fmtutil/format.texlive-latex.cnf
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line 127:  Called src_compile
 [31;01m*[0m   environment, line 558:  Called texlive-module_src_compile
 [31;01m*[0m   environment, line 770:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m               VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS $fmt_call --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build format ${i}";
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=dev-texlive/texlive-latex-2021::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-texlive/texlive-latex-2021::gentoo'`.
 [31;01m*[0m The complete build log is located at '/m2/portage/portage/dev-texlive/texlive-latex-2021/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/m2/portage/portage/dev-texlive/texlive-latex-2021/temp/environment'.
 [31;01m*[0m Working directory: '/m2/portage/portage/dev-texlive/texlive-latex-2021/work'
 [31;01m*[0m S: '/m2/portage/portage/dev-texlive/texlive-latex-2021/work'
Comment 3 Jean-Francois Ostiguy 2021-08-28 22:40:48 UTC
I am running into the exact same issue.  emerge --info and build.log are attached. 

Any suggestion for something else to try ?
Comment 4 Jean-Francois Ostiguy 2021-08-28 22:42:01 UTC
Created attachment 736552 [details]
emerge --info
Comment 5 Jean-Francois Ostiguy 2021-08-28 22:42:38 UTC
Created attachment 736555 [details]
build.log
Comment 6 Jean-Francois Ostiguy 2021-08-30 14:17:34 UTC
I managed a successful emerge with the following procedure 

(1) unmerge texlive and related packages
(2) umerge libkpathsea. 
(3) delete all leftover files under /etc/texmf.
(4) emerge texlive

It is not clear why I had to do this.
Comment 7 EK 2023-11-27 20:48:14 UTC
Created attachment 875842 [details]
latex-live build log
Comment 8 EK 2023-11-27 20:49:02 UTC
Created attachment 875843 [details]
environment info
Comment 9 EK 2023-11-27 20:49:46 UTC
Created attachment 875844 [details]
latexdiff build log
Comment 10 EK 2023-11-27 20:50:04 UTC
Created attachment 875845 [details]
texlive-basic build log
Comment 11 EK 2023-11-27 20:50:18 UTC
Created attachment 875846 [details]
xetex build log
Comment 12 EK 2023-11-27 20:58:23 UTC
Probably hit the same bug

The problem is that all the circumstances are not clear. Have tested on 3 installations, two of them were upgrades, one was fresh. The problem only appeared on one upgraded environment and didn't happen on fresh installation.

Full set of tex packages installed is:
app-text/texlive-2021-r1
app-text/texlive-core-2021-r7
dev-tex/bibtexu-3.71_p20210325
dev-tex/latex-beamer-3.70
dev-tex/latexdiff-1.3.1.1
dev-tex/latexmk-4.80
dev-texlive/texlive-basic-2021
dev-texlive/texlive-bibtexextra-2021
dev-texlive/texlive-fontsextra-2021
dev-texlive/texlive-fontsrecommended-2021
dev-texlive/texlive-fontutils-2021
dev-texlive/texlive-formatsextra-2021
dev-texlive/texlive-langczechslovak-2021
dev-texlive/texlive-langenglish-2021
dev-texlive/texlive-langeuropean-2021
dev-texlive/texlive-langfrench-2021
dev-texlive/texlive-langgerman-2021
dev-texlive/texlive-langitalian-2021
dev-texlive/texlive-langpolish-2021
dev-texlive/texlive-langspanish-2021
dev-texlive/texlive-latex-2021
dev-texlive/texlive-latexextra-2021
dev-texlive/texlive-latexrecommended-2021
dev-texlive/texlive-luatex-2021-r2
dev-texlive/texlive-mathscience-2021
dev-texlive/texlive-pictures-2021
dev-texlive/texlive-plaingeneric-2021
dev-texlive/texlive-pstricks-2021
dev-texlive/texlive-xetex-2021-r1

Among them following packages fail to emerge:
- dev-tex/latexdiff-1.3.3
- dev-texlive/texlive-basic-2021
- dev-texlive/texlive-latex-2021
- dev-texlive/texlive-langpolish-2021
- dev-texlive/texlive-luatex-2021-r2
- dev-texlive/texlive-langczechslovak-2021
- dev-texlive/texlive-mathscience-2021
- dev-texlive/texlive-latexextra-2021
- dev-texlive/texlive-xetex-2021-r1
- dev-texlive/texlive-formatsextra-2021

attached few build logs and environment details to this bug. 

The typical bug looks like:
========================
German Hyphenation Patterns (Traditional Orthography) `dehypht-x' 2021-02-26 (W
L))) (/usr/share/texmf-dist/tex/generic/dehyph-exptl/dehyphn-x-2021-02-26.tex
dehyph-exptl: using an 8-bit TeX engine.
(/usr/share/texmf-dist/tex/generic/dehyph-exptl/dehyphn-x-2021-02-26.pat
German Hyphenation Patterns (Reformed Orthography, 2006) `dehyphn-x' 2021-02-26
 (WL)))
(/usr/share/texmf-dist/tex/generic/dehyph-exptl/dehyphn-x-2021-02-26.tex
dehyph-exptl: using an 8-bit TeX engine.
(/usr/share/texmf-dist/tex/generic/dehyph-exptl/dehyphn-x-2021-02-26.pat
German Hyphenation Patterns (Reformed Orthography, 2006) `dehyphn-x' 2021-02-26
 (WL)))
! I can't find file `loadhyph-af.tex'.
\addlanguage ...me =#5 \uselanguage {#1}\input #2 
                                                  \if *#3*\else \input #3 \f...
l.37 ...nguage{afrikaans}{loadhyph-af.tex}{}{1}{2}
                                                  
(Press Enter to retry, or Control-D to exit)
Please type another input file name: 
! Emergency stop.
\addlanguage ...me =#5 \uselanguage {#1}\input #2 
                                                  \if *#3*\else \input #3 \f...
l.37 ...nguage{afrikaans}{loadhyph-af.tex}{}{1}{2}
                                                  
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on pdfetex.log.
========================
The language name depends on locale set generated, however.
Comment 13 Paul Zander 2023-11-27 21:08:43 UTC
Seems like it will be better with TexLive 2023 per https://bugs.gentoo.org/836779#c14

Soon(TM) in ::gentoo or test it now :)