Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 797577 - sci-astronomy/celestia: /usr/include/fmt/core.h:1579:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
Summary: sci-astronomy/celestia: /usr/include/fmt/core.h:1579:7: error: static asserti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Astronomy project
URL:
Whiteboard:
Keywords:
: 829692 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-22 13:19 UTC by Bernd
Modified: 2022-01-24 05:48 UTC (History)
5 users (show)

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


Attachments
celestia-1.7.0_pre20200316-r100:20210622-124928.log (celestia-1.7.0_pre20200316-r100:20210622-124928.log,107.94 KB, text/plain)
2021-06-22 13:20 UTC, Bernd
Details
celestia-1.7.0_pre20220107.ebuild (celestia-1.7.0_pre20220107.ebuild,3.02 KB, text/plain)
2022-01-07 23:27 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2021-06-22 13:19:06 UTC
When building against updated libfmt-8.0.0, using gcc-10 the build fails with

/usr/include/fmt/core.h: In instantiation of ‘fmt::v7::detail::value<Context> fmt::v7::detail::make_arg(const T&) [with bool IS_PACKED = true; Context = fmt::v7::basic_printf_context<fmt::v7::appender, char>; fmt::v7::detail::type <anonymous> = fmt::v7::detail::type::custom_type; T = std::experimental::filesystem::v1::__cxx11::path; typename std::enable_if<IS_PACKED, int>::type <anonymous> = 0]’:
/usr/include/fmt/core.h:1705:64:   required from ‘fmt::v7::format_arg_store<Context, Args>::format_arg_store(const Args& ...) [with Context = fmt::v7::basic_printf_context<fmt::v7::appender, char>; Args = {std::experimental::filesystem::v1::__cxx11::path}]’
/usr/include/fmt/core.h:1721:18:   required from ‘constexpr fmt::v7::format_arg_store<Context, Args ...> fmt::v7::make_format_args(const Args& ...) [with Context = fmt::v7::basic_printf_context<fmt::v7::appender, char>; Args = {std::experimental::filesystem::v1::__cxx11::path}]’
/usr/include/fmt/printf.h:646:70:   required from ‘int fmt::v7::fprintf(std::basic_ostream<Char>&, const S&, const T& ...) [with S = char*; T = {std::experimental::filesystem::v1::__cxx11::path}; Char = char]’
/var/tmp/portage/sci-astronomy/celestia-1.7.0_pre20200316-r100/work/Celestia-df508a0c597a3d96c1c039fa4a973e294021cfba/src/celengine/image.cpp:526:72:   required from here
/usr/include/fmt/core.h:1579:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
 1579 |       !std::is_same<decltype(arg), const unformattable&>::value,
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Some preceding warnings about deprecated declarations omitted here for readability.

Reproducible: Always




Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1/systemd, gcc-10.3.0, glibc-2.33-r1, 5.12.12-gentoo-0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.12.12-gentoo-0-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-glibc2.33
KiB Mem:    16290936 total,   1277792 free
KiB Swap:   16777208 total,  13691300 free
Head commit of repository guru: ff3290aea3b0410b80fc86af319c483672d9a8b1

Timestamp of repository sage-on-gentoo: Mon, 21 Jun 2021 02:51:22 +0000
Head commit of repository sage-on-gentoo: 66efc60875a816ed8ebf4ec13d9d14fe98ba90f2

Timestamp of repository torbrowser: Mon, 21 Jun 2021 14:10:42 +0000
Head commit of repository torbrowser: 87621189d9d966e05a5b954f71dea37adc076116

Head commit of repository cg: 8b0cc5ec3e6be752c95dbe18882ae7c7478b0856

Timestamp of repository gamerlay: Mon, 21 Jun 2021 14:10:26 +0000
Head commit of repository gamerlay: 72b2dab6038d14050c1782b62a86a977794cded8

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

Head commit of repository qt: 6b07c637679d2fda1a970c222bce541b12ddd280

Head commit of repository science: 3fa74080ea508757a591e2b96ec64d627582df3b

Head commit of repository enlightenment-live: c1a6c7ebf23d8391d4d5106e2ad2f753b496b8fb

Timestamp of repository fem-overlay: Mon, 21 Jun 2021 14:11:11 +0000
Head commit of repository fem-overlay: 812daf330e4af163715a06e3b603ecd6c8ad6451

Head commit of repository gentoo-git: 5b25ed65503b3bd9b701addb98b91dbf4656a5bc

Head commit of repository waebbl: 0e8cdad4ba94b0ef4b5ef1fb1e77b22a5168925f

Timestamp of repository gentoo: Tue, 22 Jun 2021 10:36:28 +0000
Head commit of repository gentoo: ec4db229521db964f3cccdbfe4f5aae10eaff23c

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
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_p10::gentoo, 3.8.10_p2::gentoo, 3.9.5_p2::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/cmake:           3.20.5::gentoo
dev-util/pkgconfig:       0.29.2::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:            8.5.0::gentoo, 10.3.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:

guru
    location: /mnt/data/code/github/portage-overlays/guru
    sync-type: git
    sync-uri: git@git.gentoo.org:repo/proj/guru.git
    masters: gentoo
    priority: -1000

sage-on-gentoo
    location: /mnt/data/code/github/portage-overlays/sage-on-gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/sage-on-gentoo.git
    masters: gentoo

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

cg
    location: /mnt/data/code/github/portage-overlays/cg
    sync-type: git
    sync-uri: https://github.com/waebbl/cg.git
    masters: gentoo
    priority: 30

gamerlay
    location: /var/db/repos/gamerlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gamerlay.git
    masters: gentoo
    priority: 30

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

qt
    location: /mnt/data/code/github/portage-overlays/qt
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/qt.git
    masters: gentoo
    priority: 60

science
    location: /mnt/data/code/github/portage-overlays/sci
    sync-type: git
    sync-uri: git://github.com/waebbl/sci.git
    masters: gentoo
    priority: 60

enlightenment-live
    location: /mnt/data/code/github/portage-overlays/enlightenment-live
    sync-type: git
    sync-uri: git://github.com/waebbl/enlightenment-live.git
    masters: gentoo
    priority: 61

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

gentoo-git
    location: /mnt/data/code/github/portage-overlays/gentoo-git
    sync-type: git
    sync-uri: https://github.com/waebbl/gentoo.git
    masters: gentoo
    priority: 99

waebbl
    location: /mnt/data/code/github/portage-overlays/waebbl
    sync-type: git
    sync-uri: https://github.com/waebbl/waebbl-gentoo.git
    masters: gentoo
    priority: 99

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: 100

Installed sets: @3D, @XWindow, @adm-tools, @android, @base, @benchmarking, @bgeedeps, @desktop, @dev-tools, @doc-tools, @docs, @emacs, @fonts, @fun, @games, @infinity, @kde, @keep, @kernel-dep, @langs, @lxqt-live, @media, @my_latex, @netz, @nvidia, @office, @python, @qt, @sci, @sec, @server, @steam, @themes, @vcs, @virt, @xfce, @zip
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--complete-graph --keep-going --fail-clean --buildpkg --buildpkg-exclude x11-drivers/nvidia-drivers --usepkg --autounmask=n"
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 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildsyspkg cgroup clean-logs config-protect-if-modified distlocks downgrade-backup ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check"
GENTOO_MIRRORS="https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/    https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/   https://mirror.netcologne.de/gentoo/    https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/"
INSTALL_MASK="/usr/share/locale -/usr/share/locale/de* -/usr/share/locale/en*"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
MAKEOPTS="-j2"
PKGDIR="/mnt/data/cache/binpkgs/desktop"
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 acl alsa amd64 branding bzip2 cli crypt dbus dri egl fortran gdbm gif gnome iconv ipv6 jpeg jpeg2k kde libglvnd libinput libtirpc multilib ncurses networkmanager nls nptl offensive ogg opengl openmp pam pcre pic png policykit postgres pulseaudio python qt5 readline seccomp sound split-usr ssl svg systemd tcpd tga theora threads tiff udev unicode vorbis wayland wifi x264 x265 xattr xpm zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel 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" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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" GRUB_PLATFORMS="pc multiboot qemu" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="de de-DE en en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LLVM_TARGETS="AArch64 ARM BPF NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access addition auth_basic auth_pam autoindex browser cache_purge charset dav dav_ext echo empty_gif fancyindex fastcgi flv geo geoip2 gunzip gzip headers_more image_filter javascript limit_conn limit_req map memc memcached metrics mp4 naxsi proxy push_stream realip referer rewrite scgi secure_link slowfs_cache split_clients ssi sticky stub_status sub upload_progress userid uwsgi xslt" NGINX_MODULES_STREAM="access geo geoip2 javascript limit_conn map return split_clients" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 sparc sparc64 x86_64" QEMU_USER_TARGETS="aarch64 aarch64_be arm armeb i386 sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby26" STEAMGAMES="witcher2" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nvidia vesa" 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, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

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

sci-astronomy/celestia-1.7.0_pre20200316-r100::gentoo was built with the following:
USE="glut nls qt5 theora -lua" ABI_X86="(64)" LUA_SINGLE_TARGET="lua5-1 -lua5-2 -lua5-3 -luajit"
CFLAGS="-O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check -fsigned-char"
CXXFLAGS="-O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check -fsigned-char"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg candy cgroup clean-logs config-protect-if-modified distlocks downgrade-backup ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 1 Bernd 2021-06-22 13:20:51 UTC
Created attachment 717654 [details]
celestia-1.7.0_pre20200316-r100:20210622-124928.log

build log
Comment 2 Bernd 2021-06-22 13:22:32 UTC
Although the error happens in the same file as bug #716532, it looks like a different issue to me.
Comment 3 Sven Eden 2021-06-29 08:59:44 UTC
sci-astronomy/celestia-1.7.0_pre20200316-r100 builds fine against (stable) dev-libs/libfmt-7.1.2 and (unstable) dev-libs/libfmt-7.1.3.

Celestia does *not* build against libfmt-8.0.0, but that is a new major version and celestia is simply not meant to build against it, yet.

Official Version of Celestia is 1.6.2, 1.7.0 is from git sources.

However, two days ago the following commit appeared that should make celestia build against libfmt-8.0.0:
https://github.com/CelestiaProject/Celestia/commit/05cb7196b5d4cf8b2009512b1a16c9afdc4fcf89
Comment 4 Sven Eden 2021-07-05 12:35:12 UTC
(In reply to Sven Eden from comment #3)
> However, two days ago the following commit appeared that should make
> celestia build against libfmt-8.0.0:
> https://github.com/CelestiaProject/Celestia/commit/
> 05cb7196b5d4cf8b2009512b1a16c9afdc4fcf89

The commit does not apply on its own, too many commits are missing in between. So maybe it is time to bump celestia to a more recent commit.
Comment 5 Pacho Ramos gentoo-dev 2022-01-07 22:11:40 UTC
*** Bug 829692 has been marked as a duplicate of this bug. ***
Comment 6 Pacho Ramos gentoo-dev 2022-01-07 23:27:17 UTC
Created attachment 761545 [details]
celestia-1.7.0_pre20220107.ebuild

still pending to compile and install data files (content subdir)

If you want to find inspiration, Mageia people managed to install it
http://sophie.zarb.org/rpms/ad48497e80883ead36f0416b8a87238d/files/5
Comment 7 Larry the Git Cow gentoo-dev 2022-01-22 11:52:09 UTC
The bug has been closed via the following commit(s):

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

commit 957ed5a914abc1c5323db49a2259a8b555519863
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2022-01-22 11:51:40 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2022-01-22 11:51:40 +0000

    sci-astronomy/celestia: New snapshot
    
    Closes: https://bugs.gentoo.org/716532
    Closes: https://bugs.gentoo.org/741070
    Closes: https://bugs.gentoo.org/797577
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 sci-astronomy/celestia/Manifest                    |   2 +
 .../celestia/celestia-1.7.0_pre20220120.ebuild     | 123 +++++++++++++++++++++
 2 files changed, 125 insertions(+)
Comment 8 Bernd 2022-01-24 05:48:19 UTC
Thanks, works for me.