Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830758 - net-misc/gerbera-1.9.2 - /.../core.h: error: static assertion failed: Cannot format an argument. To make type T formattable provid
Summary: net-misc/gerbera-1.9.2 - /.../core.h: error: static assertion failed: Cannot ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Tietz
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-01-08 09:36 UTC by Toralf Förster
Modified: 2022-03-16 23:09 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.29 KB, text/plain)
2022-01-08 09:36 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,219.00 KB, text/plain)
2022-01-08 09:36 UTC, Toralf Förster
Details
environment (environment,112.09 KB, text/plain)
2022-01-08 09:36 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,23.38 KB, application/x-bzip)
2022-01-08 09:36 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.43 KB, application/x-bzip)
2022-01-08 09:36 UTC, Toralf Förster
Details
net-misc:gerbera-1.9.2:20220108-074819.log (net-misc:gerbera-1.9.2:20220108-074819.log,21.58 KB, text/plain)
2022-01-08 09:36 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.65 KB, application/x-bzip)
2022-01-08 09:36 UTC, Toralf Förster
Details
Fix compilation problem (fix_formatter.patch,456 bytes, patch)
2022-01-08 12:01 UTC, Vadim Dyadkin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-01-08 09:36:46 UTC
too long lines were shrinked:

/usr/include/fmt/core.h:1855:77:   required from ‘constexpr fmt::v8::format_arg_store<Context, Args>::format_arg_store(T&& ...) [with T = {ScanMode&}; Context = fmt::v8::basic_format_context<fmt::v8::appender, char>; Args = {ScanMode}]’
/usr/include/fmt/core.h:1872:38:   required from ‘constexpr fmt::v8::format_arg_store<Context, typename std::remove_cv<typename std::remove_reference<Args>::type>::type ...> fmt::v8::make_format_args(Args&& ...) [with Context = fmt::v8::basic_format_context<fmt::v8::appender, char>; Args = {ScanMo
/usr/include/fmt/core.h:3119:44:   required from ‘std::string fmt::v8::format(fmt::v8::format_string<T ...>, T&& ...) [with T = {ScanMode&}; std::string = std::__cxx11::basic_string<char>; fmt::v8::format_string<T ...> = fmt::v8::basic_format_string<char, ScanMode&>]’
/var/tmp/portage/net-misc/gerbera-1.9.2/work/gerbera-1.9.2/src/content/autoscan.cc:130:5:   required from here
/usr/include/fmt/core.h:1728: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
 1728 |       formattable,
      |       ^~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4-20220106-060005

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-11.2.1 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.57.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 0583175a3505d83855b111c6554449a7587697c1
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Jan 8 06:51:47 2022 +0000

    2022-01-08 06:51:46 UTC

emerge -qpvO net-misc/gerbera
[ebuild   R   ] net-misc/gerbera-1.9.2  USE="exif exiv2 ffmpeg ffmpegthumbnailer javascript lastfm magic matroska mysql systemd -curl -debug -taglib"
Comment 1 Toralf Förster gentoo-dev 2022-01-08 09:36:47 UTC
Created attachment 761563 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-01-08 09:36:48 UTC
Created attachment 761564 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-01-08 09:36:49 UTC
Created attachment 761565 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-01-08 09:36:51 UTC
Created attachment 761566 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-01-08 09:36:52 UTC
Created attachment 761567 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-01-08 09:36:53 UTC
Created attachment 761568 [details]
net-misc:gerbera-1.9.2:20220108-074819.log
Comment 7 Toralf Förster gentoo-dev 2022-01-08 09:36:54 UTC
Created attachment 761569 [details]
temp.tar.bz2
Comment 8 Vadim Dyadkin 2022-01-08 12:01:56 UTC
Created attachment 761599 [details, diff]
Fix compilation problem

As I understand, it just tries to print (using exception mechanism) a value of the enum ScanMode, which does not provide an fmt implementation (jeezz..., this modern C++... instead of just printing 0 for Timed or 1 for INotify...). This patch solves the problem with compilation just removing the actual value from the format string, but it does not solve the issue.
Comment 9 Guillermo D. H. 2022-02-28 14:03:28 UTC
I believe that this commit to upstream's repository should fix the error:

https://github.com/gerbera/gerbera/commit/82d84ac5e62c23e717198fc7b2ef190ff95e70d1

The fix is contanined in the newly released Gerbera 1.10.0.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-16 23:09:04 UTC
(In reply to Guillermo D. H. from comment #9)
> I believe that this commit to upstream's repository should fix the error:
> 
> https://github.com/gerbera/gerbera/commit/
> 82d84ac5e62c23e717198fc7b2ef190ff95e70d1
> 
> The fix is contanined in the newly released Gerbera 1.10.0.

Thanks!

(In reply to Vadim Dyadkin from comment #8)
> Created attachment 761599 [details, diff] [details, diff]
> Fix compilation problem
> 
> As I understand, it just tries to print (using exception mechanism) a value
> of the enum ScanMode, which does not provide an fmt implementation
> (jeezz..., this modern C++... instead of just printing 0 for Timed or 1 for
> INotify...). This patch solves the problem with compilation just removing
> the actual value from the format string, but it does not solve the issue.

Thank you.