Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928116 - dev-texlive/texlive-xetex-2023_p69452-r1 failes to build because building formats fails with "Undefined control sequence. __kernel_msg_info:nnxx"
Summary: dev-texlive/texlive-xetex-2023_p69452-r1 failes to build because building for...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
: 928151 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-29 10:00 UTC by Marius Stoica
Modified: 2024-04-11 07:04 UTC (History)
18 users (show)

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


Attachments
build.log (build.log,36.25 KB, text/x-log)
2024-03-29 10:01 UTC, Marius Stoica
Details
xelatex-dev.log (xelatex-dev.log,6.55 KB, text/plain)
2024-03-29 12:09 UTC, tka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Stoica 2024-03-29 10:00:18 UTC
$  sudo emerge -vuDN @world 

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 49.66 s (backtrack: 13/20).

[ebuild     U  ] dev-texlive/texlive-xetex-2023_p69452-r1::gentoo [2021-r1::gentoo] USE="X doc -source" 0 KiB
[ebuild  N     ] dev-texlive/texlive-langcjk-2023_p65824::gentoo  USE="-doc -source" 0 KiB
[ebuild     U  ] dev-texlive/texlive-latexextra-2023_p69752-r2::gentoo [2021::gentoo] USE="-doc -source" 0 KiB
[ebuild     U  ] app-text/texlive-2023::gentoo [2021-r1::gentoo] USE="X cjk extra graphics humanities luatex metapost png pstricks publishers science truetype xetex xml -context -games -music (-pdfannotextractor) -tex4ht -texi2html" L10N="ro -af -ar -as -bg -bn -br -ca -cs -cy -da -de -el -en -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -kn -ko -la -lo -lt -lv -ml -mn -mr -nb -nl -nn -no -or -pa -pl -pt -rm -ru -sa -sco -sk -sl -sq -sr -sv -ta -te -th -tk -tr -uk -vi -zh" 0 KiB

Total: 4 packages (3 upgrades, 1 new), Size of downloads: 0 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 4) dev-texlive/texlive-xetex-2023_p69452-r1::gentoo

...

Transcript written on xelatex.log.
fmtutil [INFO]: log file copied to: /var/tmp/portage/dev-texlive/texlive-xetex-2023_p69452-r1/work/texmf-var/web2c/xetex/xelatex.log
fmtutil [INFO]: /var/tmp/portage/dev-texlive/texlive-xetex-2023_p69452-r1/work/texmf-var/web2c/xetex/xelatex.fmt installed.
fmtutil [ERROR]: running `xetex -ini   -jobname=xelatex-dev -progname=xelatex-dev -etex xelatex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [INFO]: successfully rebuilt formats: 2
fmtutil [INFO]: failed to build: 1 (xetex/xelatex-dev)
fmtutil [INFO]: total formats: 3
fmtutil [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 fmtutil --help for full documentation of fmtutil.
fmtutil [INFO]: exiting with status 1
 * ERROR: dev-texlive/texlive-xetex-2023_p69452-r1::gentoo failed (compile phase):
 *   failed to build format texmf-dist/fmtutil/format.texlive-xetex.cnf
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 738:  Called texlive-module_src_compile
 *   environment, line 986:  Called die
 * The specific snippet of code:
 *               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}";
 * 
 * If you need support, post the output of `emerge --info '=dev-texlive/texlive-xetex-2023_p69452-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-texlive/texlive-xetex-2023_p69452-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-texlive/texlive-xetex-2023_p69452-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-texlive/texlive-xetex-2023_p69452-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-texlive/texlive-xetex-2023_p69452-r1/work'
 * S: '/var/tmp/portage/dev-texlive/texlive-xetex-2023_p69452-r1/work'



It also fails to build with USE="-X -doc"



$  emerge --info dev-texlive/texlive-xetex 
Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-13, glibc-2.39-r2, 6.1.83-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.1.83-gentoo-x86_64-Intel-R-_Core-TM-_i9-9900K_CPU_@_3.60GHz-with-glibc2.39
KiB Mem:    32817520 total,    499648 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 29 Mar 2024 05:30:00 +0000
Head commit of repository gentoo: 8324d445c3a4e65c2dab2721758e5c83c2c64f65
Timestamp of repository kde: Wed, 27 Mar 2024 22:03:15 +0000
Head commit of repository kde: e3b3cc1d86a474d14f1c942ee722349467c1855d

Head commit of repository supertux88: 850d17400e7c9d284a5157dabd797f20f4ebe34b

sh bash 5.2_p26
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.0::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.9.19::gentoo, 3.10.14::gentoo, 3.11.8_p1::gentoo
dev-lang/rust:             1.76.0-r1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.53.1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             11.4.1_p20240208::gentoo, 12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.7-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-max-age: 24

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    volatile: False

supertux88
    location: /var/db/repos/supertux88
    sync-type: git
    sync-uri: https://github.com/SuperTux88/gentoo-overlay
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE GPLv3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=x86-64 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=x86-64 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-march=x86-64 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 attica bluray branding bzip2 cairo caps cdda cdr cet cjk crypt cxx dbus designer dri dts dvb dvd dvdr elogind encode epub evdev exif ffmpeg flac fontconfig gdbm gif git gmp gpm gui iconv icu idn jpeg kde lcms libnotify libtirpc lm-sensors lm_sensors lzma mad man mng mp3 mp4 mpeg mpfr multilib ncurses nls nvenc ogg openexr opengl openmp pam pango pcre pdf pipewire png policykit ppds pulseaudio qml qt5 readline screencast sctp sdl seccomp sound spell split-usr sqlite ssl startup-notification svg syslog taglib telemetry test-rust theora threads tiff truetype udev udisks unicode upower usb vaapi vdpau verify-sig vim-syntax vorbis vulkan wayland webp wxwidgets x264 x265 xattr xcb xft xinerama xml xv xvid zlib zstd" ABI_X86="32 64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="BPF NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_10 python3_11" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-texlive/texlive-xetex-2021-r1::gentoo was built with the following:
USE="X doc -source" ABI_X86="(64)"


Reproducible: Always
Comment 1 Marius Stoica 2024-03-29 10:01:06 UTC
Created attachment 889000 [details]
build.log
Comment 2 tka 2024-03-29 12:09:01 UTC
Created attachment 889005 [details]
xelatex-dev.log

The problem is here:

! Undefined control sequence.
<argument> ... \NewHook }}\__kernel_msg_info:nnxx 
                                                  {ltcmd}{define-command}{\t...
l.4888 ...ok             { m }{ \hook_new:n {#1} }
                                                  
? 
! Emergency stop.
<argument> ... \NewHook }}\__kernel_msg_info:nnxx 
                                                  {ltcmd}{define-command}{\t...
l.4888 ...ok             { m }{ \hook_new:n {#1} }
                                                  
No pages of output.
Transcript written on xelatex-dev.log.
Comment 3 Florian Schmaus gentoo-dev 2024-03-29 14:03:05 UTC
Seems like the fix from #927084 was insufficient.
Comment 4 Mikael Hirki 2024-03-29 14:45:06 UTC
I noticed dev-texlive/texlive-xetex-2021-r1 was blocking dev-texlive/texlive-latexextra-2023_p69752-r2. So then I decided to unmerge the old texlive-xetex which allowed be to build the newer texlive-latexextra. After that, I was able to successfully build the newer texlive-xetex.

emerge -C dev-texlive/texlive-xetex
emerge -1 dev-texlive/texlive-latexextra
emerge -1 dev-texlive/texlive-xetex
Comment 5 Claus-Justus Heine 2024-03-29 15:59:34 UTC
(In reply to Mikael Hirki from comment #4)
> I noticed dev-texlive/texlive-xetex-2021-r1 was blocking
> dev-texlive/texlive-latexextra-2023_p69752-r2. So then I decided to unmerge
> the old texlive-xetex which allowed be to build the newer
> texlive-latexextra. After that, I was able to successfully build the newer
> texlive-xetex.
> 
> emerge -C dev-texlive/texlive-xetex
> emerge -1 dev-texlive/texlive-latexextra
> emerge -1 dev-texlive/texlive-xetex

I can confirm that installing the up-to-date version textlive-latexextra has solved this problem also for me.
Comment 6 Gary E. Miller 2024-03-29 21:41:08 UTC
#MeToo
Comment 7 Gonçalo Negrier Duarte 2024-03-30 00:32:42 UTC
(In reply to Claus-Justus Heine from comment #5)
> (In reply to Mikael Hirki from comment #4)
> > I noticed dev-texlive/texlive-xetex-2021-r1 was blocking
> > dev-texlive/texlive-latexextra-2023_p69752-r2. So then I decided to unmerge
> > the old texlive-xetex which allowed be to build the newer
> > texlive-latexextra. After that, I was able to successfully build the newer
> > texlive-xetex.
> > 
> > emerge -C dev-texlive/texlive-xetex
> > emerge -1 dev-texlive/texlive-latexextra
> > emerge -1 dev-texlive/texlive-xetex
> 
> I can confirm that installing the up-to-date version textlive-latexextra has
> solved this problem also for me.

Also solve for me. Might be needed to force latexextra to update frist on @world update (by adding as a BDEPEND).
Or really need manual intervation.
Comment 8 Andrey Grozin gentoo-dev 2024-03-30 10:30:54 UTC
*** Bug 928151 has been marked as a duplicate of this bug. ***
Comment 9 tka 2024-03-30 13:17:48 UTC
Adding BDEPEND=">=dev-texlive/texlive-latexextra-2023" to texlive-xetex-2023_p69452-r1.ebuild helped to complete the installation of the texlive 2023 packages.
Comment 10 Andrey Grozin gentoo-dev 2024-03-30 14:14:04 UTC
(In reply to tka from comment #9)
> Adding BDEPEND=">=dev-texlive/texlive-latexextra-2023" to
> texlive-xetex-2023_p69452-r1.ebuild helped to complete the installation of
> the texlive 2023 packages.
Thanks. This works.
Comment 11 Attila Tóth 2024-04-02 13:47:47 UTC
(In reply to Claus-Justus Heine from comment #5)
> (In reply to Mikael Hirki from comment #4)
> > I noticed dev-texlive/texlive-xetex-2021-r1 was blocking
> > dev-texlive/texlive-latexextra-2023_p69752-r2. So then I decided to unmerge
> > the old texlive-xetex which allowed be to build the newer
> > texlive-latexextra. After that, I was able to successfully build the newer
> > texlive-xetex.
> > 
> > emerge -C dev-texlive/texlive-xetex
> > emerge -1 dev-texlive/texlive-latexextra
> > emerge -1 dev-texlive/texlive-xetex
> 
> I can confirm that installing the up-to-date version textlive-latexextra has
> solved this problem also for me.

Thanks for the solution.
Comment 12 Florian Schmaus gentoo-dev 2024-04-02 14:20:25 UTC
(In reply to Andrey Grozin from comment #10)
> (In reply to tka from comment #9)
> > Adding BDEPEND=">=dev-texlive/texlive-latexextra-2023" to
> > texlive-xetex-2023_p69452-r1.ebuild helped to complete the installation of
> > the texlive 2023 packages.
> Thanks. This works.

Note that updating texlive-latexextra to the 2023 version, prior updating texlive-xetex, should have the same effect.
Comment 13 Andreas Sturmlechner gentoo-dev 2024-04-02 17:23:47 UTC
But that is only possible if you disable USE=xetex on app-text/texlive and unmerge dev-texlive/texlive-xetex prior to the upgrade, which you can't do anyway if you depend on dev-perl/Template-Plugin-Latex, so this bug is waiting for a solution.
Comment 14 Larry the Git Cow gentoo-dev 2024-04-02 18:47:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c370c6601aa0dfd5c2f18c9c4f808eb8332e6d0e

commit c370c6601aa0dfd5c2f18c9c4f808eb8332e6d0e
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2024-04-02 18:45:00 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2024-04-02 18:46:34 +0000

    dev-texlive/texlive-xetex: add strong blocker for <texlive-latexextra-2023
    
    Closes: https://bugs.gentoo.org/928116
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 dev-texlive/texlive-xetex/texlive-xetex-2023_p69452-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-03 07:55:37 UTC
The commit message would've benefitted from some detail on why this was the only option and why it's needed.