Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 797406 - dev-libs/libfmt-8.0.0: error: ‘udl_arg’ in namespace ‘fmt::v7::detail’ does not name a template type (via media-video/mkvtoolnix-57.0.0)
Summary: dev-libs/libfmt-8.0.0: error: ‘udl_arg’ in namespace ‘fmt::v7::detail’ does n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-21 21:51 UTC by Kobboi
Modified: 2021-06-26 07:59 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,38.47 KB, text/x-log)
2021-06-21 21:53 UTC, Kobboi
Details
patch to fix issue (deleted)
2021-06-22 12:17 UTC, Jason A. Donenfeld
Details
patch to fix issue (2376.patch,1.76 KB, patch)
2021-06-22 12:51 UTC, Jason A. Donenfeld
Details | Diff
mkvtoolnix-51.0.0 build log (file_797406.txt,15.93 KB, text/plain)
2021-06-22 13:27 UTC, David Duchesne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2021-06-21 21:51:28 UTC
(...)
/usr/bin/xsltproc --nonet --maxdepth 10000 -o doc/man/mkvinfo.1 /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl doc/man/mkvinfo.xml
           CXX tests/unit/propedit/target_id_manager.cpp
x86_64-pc-linux-gnu-g++ -Wall -Wno-comment -Wfatal-errors -D_FILE_OFFSET_BITS=64 -DMTX_LOCALE_DIR=\"/usr/share/locale\" -DMTX_PKG_DATA_DIR=\"/usr/share/mkvtoolnix\" -DMTX_DOC_DIR=\"/usr/share/doc/mkvtoolnix-57.0.0\" -fstack-protector-strong -I/usr/include/dvdcss -I/usr/include/utf8cpp -fPIC -DQT_NO_KEYWORDS -std=c++17 -Wnon-virtual-dtor -Wextra -Wno-missing-field-initializers -Wunused -Wpedantic -Wno-maybe-uninitialized -Wlogical-op -Wno-extra-semi -Wmisleading-indentation -Wduplicated-cond -Wshadow-compatible-local -Wduplicated-branches -Wno-deprecated-copy -I/usr/include/qt5/QtCore -I/usr/include/qt5 -I/usr/include/qt5/QtGui -DQT_WIDGETS_LIB -I/usr/include/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtNetwork -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -I/usr/include/qt5/QtConcurrent -DQT_DBUS_LIB -I/usr/include/qt5/QtDBus -DQT_CORE_LIB -I/usr/include -O2 -march=znver3 -pipe -g -ggdb -I. -Ilib -Ilib/avilib-0.6.10 -Isrc -Ilib/jpcre2 -c -MMD -MF /var/tmp/portage/media-video/mkvtoolnix-57.0.0/work/mkvtoolnix-57.0.0/rake.d/dependency.d/tmp/tests_unit_propedit_target_id_manager_o.d -o tests/unit/propedit/target_id_manager.o -x c++ tests/unit/propedit/target_id_manager.cpp
 VERIFY-PO-FMT po/tr.po
        MSGFMT po/tr.po
/usr/bin/msgfmt -c -o po/tr.mo po/tr.po
Note: Writing mkvinfo.1
      XSLTPROC doc/man/zh_TW/mkvtoolnix-gui.xml
/usr/bin/xsltproc --nonet --maxdepth 10000 -o doc/man/zh_TW/mkvtoolnix-gui.1 /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl doc/man/zh_TW/mkvtoolnix-gui.xml
      XSLTPROC doc/man/mkvmerge.xml
/usr/bin/xsltproc --nonet --maxdepth 10000 -o doc/man/mkvmerge.1 /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl doc/man/mkvmerge.xml
 VERIFY-PO-FMT po/sv.po
        MSGFMT po/sv.po
/usr/bin/msgfmt -c -o po/sv.mo po/sv.po
Note: Writing mkvtoolnix-gui.1
          PO4A doc/man/mkvpropedit.xml (zh_TW)
/usr/bin/po4a-translate -M utf-8 -k 0 -f docbook -m doc/man/mkvpropedit.xml -p doc/man/po4a/po/zh_TW.po -l doc/man/zh_TW/mkvpropedit.xml
 VERIFY-PO-FMT po/sr_RS@latin.po
In file included from src/common/common.h:39,
                 from src/common/common_pch.h:1,
                 from src/extract/mkvextract.cpp:13:
/usr/include/fmt/format.h:2752:64: error: ‘udl_arg’ in namespace ‘fmt::v7::detail’ does not name a template type
 2752 | stexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
      |                                                             ^~~~~~~

compilation terminated due to -Wfatal-errors.
In file included from src/common/common.h:39,
                 from src/common/common_pch.h:1,
                 from src/mpegparser/MPEGVideoBuffer.cpp:23:
/usr/include/fmt/format.h:2752:64: error: ‘udl_arg’ in namespace ‘fmt::v7::detail’ does not name a template type
 2752 | stexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
      |                                                             ^~~~~~~

compilation terminated due to -Wfatal-errors.
        MSGFMT po/sr_RS@latin.po
/usr/bin/msgfmt -c -o po/sr_RS@latin.mo po/sr_RS@latin.po
           CXX tests/unit/util.cpp
x86_64-pc-linux-gnu-g++ -Wall -Wno-comment -Wfatal-errors -D_FILE_OFFSET_BITS=64 -DMTX_LOCALE_DIR=\"/usr/share/locale\" -DMTX_PKG_DATA_DIR=\"/usr/share/mkvtoolnix\" -DMTX_DOC_DIR=\"/usr/share/doc/mkvtoolnix-57.0.0\" -fstack-protector-strong -I/usr/include/dvdcss -I/usr/include/utf8cpp -fPIC -DQT_NO_KEYWORDS -std=c++17 -Wnon-virtual-dtor -Wextra -Wno-missing-field-initializers -Wunused -Wpedantic -Wno-maybe-uninitialized -Wlogical-op -Wno-extra-semi -Wmisleading-indentation -Wduplicated-cond -Wshadow-compatible-local -Wduplicated-branches -Wno-deprecated-copy -I/usr/include/qt5/QtCore -I/usr/include/qt5 -I/usr/include/qt5/QtGui -DQT_WIDGETS_LIB -I/usr/include/qt5/QtWidgets -DQT_MULTIMEDIA_LIB -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtNetwork -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -I/usr/include/qt5/QtConcurrent -DQT_DBUS_LIB -I/usr/include/qt5/QtDBus -DQT_CORE_LIB -I/usr/include -O2 -march=znver3 -pipe -g -ggdb -I. -Ilib -Ilib/avilib-0.6.10 -Isrc -Ilib/jpcre2 -c -MMD -MF /var/tmp/portage/media-video/mkvtoolnix-57.0.0/work/mkvtoolnix-57.0.0/rake.d/dependency.d/tmp/tests_unit_util_o.d -o tests/unit/util.o -x c++ tests/unit/util.cpp
 VERIFY-PO-FMT po/sr_RS.po
In file included from src/common/common.h:39,
                 from src/common/common_pch.h:1,
                 from src/propedit/propedit.cpp:11:
/usr/include/fmt/format.h:2752:64: error: ‘udl_arg’ in namespace ‘fmt::v7::detail’ does not name a template type
 2752 | stexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
      |                                                             ^~~~~~~

compilation terminated due to -Wfatal-errors.
In file included from src/common/common.h:39,
                 from src/common/common_pch.h:1,
                 from tests/unit/propedit/attachment_target.cpp:1:
/usr/include/fmt/format.h:2752:64: error: ‘udl_arg’ in namespace ‘fmt::v7::detail’ does not name a template type
 2752 | stexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
      |                                                             ^~~~~~~

compilation terminated due to -Wfatal-errors.


Reproducible: Always
Comment 1 Kobboi 2021-06-21 21:51:47 UTC
Portage 3.0.20 (python 3.9.5-final-0, !../../var/db/repos/kobboi-linux/profiles/kobboi/tanagra, gcc-11.1.0, glibc-2.33-r1, 5.12.12-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.12.12-gentoo-dist-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.33
KiB Mem:   131927752 total, 123196944 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 21 Jun 2021 21:30:01 +0000
Head commit of repository gentoo: 0610c01ba9cfbc8e1f77ddfdd7c8ed77d59a06c4
Timestamp of repository brother-overlay: Mon, 21 Jun 2021 14:10:56 +0000
Head commit of repository brother-overlay: cf6a684fd3e17d1bc0bafb8cee297073204f2471

Head commit of repository kobboi-linux: cf3de80aabfe8bbadfd26382a57e94ab1c7af3d2

Timestamp of repository steam-overlay: Mon, 21 Jun 2021 14:10:41 +0000
Head commit of repository steam-overlay: 795dafa684d73781e520181c7649c1351d6cc594

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.3 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          2.7.18_p11::gentoo, 3.8.10_p2::gentoo, 3.9.5_p2::gentoo, 3.10.0_beta3::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/ccache:          4.3-r2::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r1::gentoo
sys-devel/gcc:            11.1.0-r1::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

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

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo

kobboi-linux
    location: /var/db/repos/kobboi-linux
    sync-type: git
    sync-uri: https://github.com/kobboi/kobboi-linux
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

Installed sets: @kobboi-all-packages, @kobboi-machine-tanagra
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver3 -pipe -g -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
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="-O2 -march=znver3 -pipe -g -ggdb"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -march=znver3 -pipe -g -ggdb"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=znver3 -pipe -g -ggdb"
GENTOO_MIRRORS="ftp://kobboi-linux:*password*@10.8.0.1/2020.11"
INSTALL_MASK="/usr/src/debug /usr/lib/debug"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="ftp://kobboi-linux:*password*@10.8.0.1/2020.11/packages"
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"
USE="X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth bzip2 cairo cdda cdr cli colord crypt cups dbus dist-kernel djvu dri dts dvd dvdr eds egl emboss encode evo exif facedetect ffmpeg flac fluidsynth fortran frei0r gdbm gif glade gles gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle gui iconv icu introspection ipv6 jpeg ladspa lcms libass libglvnd libnotify libsecret libtirpc lv2 lz4 lzma lzo mad midi mng modemmanager mono mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl ogg opencv opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba screencast sdl seccomp smartcard smp spell split-usr ssl startup-notification svg sysprof systemd tcpd tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="vesa radeon nvidia intel amdgpu dummy fbdev nouveau radeonsi v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 2 Kobboi 2021-06-21 21:53:26 UTC
Created attachment 717525 [details]
build.log
Comment 3 Ross Hayward 2021-06-22 11:58:16 UTC
Mask the upgrade of libfmt to dev-libs/libfmt-8.0.0

mkvtoolnix will compile against dev-libs/libfmt-7.1.3
Comment 4 Jason A. Donenfeld gentoo-dev 2021-06-22 12:17:43 UTC
Created attachment 717645 [details]
patch to fix issue

This patch will fix the issue.
Comment 5 Jason A. Donenfeld gentoo-dev 2021-06-22 12:46:24 UTC
I posted a better fix for libfmt though here: https://patch-diff.githubusercontent.com/raw/fmtlib/fmt/pull/2376.patch
Comment 6 Jason A. Donenfeld gentoo-dev 2021-06-22 12:49:26 UTC
This is indeed a libfmt issue. Craig - can you add https://patch-diff.githubusercontent.com/raw/fmtlib/fmt/pull/2376.patch to the ebuild?
Comment 7 Jason A. Donenfeld gentoo-dev 2021-06-22 12:50:10 UTC
The content of attachment 717645 [details] has been deleted for the following reason:

fixes wrong package
Comment 8 Jason A. Donenfeld gentoo-dev 2021-06-22 12:51:13 UTC
Created attachment 717648 [details, diff]
patch to fix issue
Comment 9 David Duchesne 2021-06-22 13:27:22 UTC
Created attachment 717657 [details]
mkvtoolnix-51.0.0 build log

mkvtoolnix-51.0.0 (current stable) is also affected. (see log attached)
Comment 10 David Duchesne 2021-06-22 13:29:54 UTC
(In reply to David Duchesne from comment #9)
> Created attachment 717657 [details]
> mkvtoolnix-51.0.0 build log
> 
> mkvtoolnix-51.0.0 (current stable) is also affected. (see log attached)
Oops, I see this bug report is about libfmt only, please ignore as it is a libfmt issue from what I understand.
Comment 11 Craig Andrews gentoo-dev 2021-06-22 14:42:27 UTC
Thank you for submitting a PR to upstream with a fix for this issue! https://github.com/fmtlib/fmt/pull/2376
Comment 12 Larry the Git Cow gentoo-dev 2021-06-22 14:44:30 UTC
The bug has been closed via the following commit(s):

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

commit e88caaf664d63a663bc1843fc5742ca1c2c4215a
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2021-06-22 14:41:54 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2021-06-22 14:44:25 +0000

    dev-libs/libfmt: do not use UDL types when UDL not used
    
    Closes: https://bugs.gentoo.org/797406
    See: https://github.com/fmtlib/fmt/pull/2376
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 .../libfmt/files/libfmt-8.0.0-no-udl-define.patch  | 56 ++++++++++++++++++++++
 dev-libs/libfmt/libfmt-8.0.0-r1.ebuild             | 40 ++++++++++++++++
 2 files changed, 96 insertions(+)