Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 797619 - media-tv/kodi-19.1 - /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/StringUtils.h:98:32: error: no matching function for call to ‘format(const wstring&, const wchar_t*&)’
Summary: media-tv/kodi-19.1 - /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL: https://github.com/xbmc/xbmc/issues/1...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-22 16:43 UTC by Bernd
Modified: 2021-06-25 13:35 UTC (History)
2 users (show)

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


Attachments
kodi-19.1:20210622-154057.log.xz (kodi-19.1:20210622-154057.log.xz,70.81 KB, application/octet-stream)
2021-06-22 16:45 UTC, Bernd
Details
emerge-info-kodi-19.1.txt (emerge-info-kodi-19.1.txt,12.19 KB, text/plain)
2021-06-22 16:45 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2021-06-22 16:43:51 UTC
This happens when rebuild against updated libfmt-8.0.0 with gcc-10. The error is

FAILED: build/utils/CMakeFiles/utils.dir/HTMLUtil.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++  -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1 -I/var/tmp/portage/medi
a-tv/kodi-19.1/work/xbmc-19.1/lib -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc -I/var/tmp/portage
/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/platform/linux -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xb
mc/cores/VideoPlayer -Ibuild -Ibuild/include -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/platfor
m/posix -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/python3.9 -I/usr/include/libxml2 
-Ibuild/cores/RetroPlayer/messages -I/usr/include/freetype2 -I/usr/include/fribidi -Ibuild/libdvd/include -I/u
sr/include/lzo -I/usr/include/libdrm  -O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -
fstack-check -DNDEBUG -Wall -DTARGET_POSIX -DTARGET_LINUX -D_GNU_SOURCE -DHAVE_LINUX_UDMABUF=1 -DHAVE_LINUX_DM
A_HEAP=1 -DHAVE_LINUX_DMA_BUF=1 -DHAVE_MKOSTEMP=1 -DHAVE_LINUX_MEMFD=1 -DHAVE_STATX=1 -DHAVE_SSE=1 -DHAVE_SSE2
=1 -DHAVE_SSE3=1 -DHAVE_SSSE3=1 -DHAVE_SSE4_1=1 -DHAVE_SSE4_2=1 -DHAVE_AVX=1 -D__STDC_CONSTANT_MACROS -D_FILE_
OFFSET_BITS=64 -DHAS_POSIX_NETWORK -DHAS_LINUX_NETWORK -DHAS_BUILTIN_SYNC_ADD_AND_FETCH=1 -DHAS_BUILTIN_SYNC_S
UB_AND_FETCH=1 -DHAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP=1 -DHAVE_INOTIFY=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_LOCALT
IME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_INTTYPES_H=1 -DHAS_ALSA=1 -DHAS_DBUS=1 -DHAS_ISO9660PP=1 -DHAVE_LCMS2=1 -DHAS
_WEB_SERVER=1 -DHAS_WEB_INTERFACE=1 -DHAS_PULSEAUDIO=1 -DHAS_PYTHON=1 -DHAVE_LIBUDEV=1 -DHAS_UDFREAD=1 -DHAVE_
LIBXSLT=1 -DHAVE_LIBVA=1 -DHAS_GLX=1 -DHAVE_LIBVDPAU=1 -DFFMPEG_VER_SHA=\"undef\" -I/usr/include/fribidi -DSPD
LOG_FMT_EXTERNAL -DSPDLOG_DEBUG_ON -DSPDLOG_NO_ATOMIC_LEVELS -DSPDLOG_ENABLE_PATTERN_PADDING -DHAS_EGL=1 -DHAV
E_X11=1 -DHAVE_LIBXRANDR=1 -DHAVE_HDR_OUTPUT_METADATA=1 -DHAS_GL=1 -DHAS_UPNP=1 -DHAS_DVD_DRIVE -DHAS_CDDA_RIP
PER -DBIN_INSTALL_PATH=\"/usr/lib64/kodi\" -DINSTALL_PATH=\"/usr/share/kodi\" -msse2 -std=c++14 -MD -MT build/
utils/CMakeFiles/utils.dir/HTMLUtil.cpp.o -MF build/utils/CMakeFiles/utils.dir/HTMLUtil.cpp.o.d -o build/utils
/CMakeFiles/utils.dir/HTMLUtil.cpp.o -c /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/HTMLUtil
.cpp
In file included from /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/HTMLUtil.cpp:11:
/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/StringUtils.h: In instantiation of ‘static std::wstring StringUtils::Format(const wstring&, Args&& ...) [with Args = {const wchar_t*}; std::wstring = std::__cxx11::basic_string<wchar_t>]’:
/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/HTMLUtil.cpp:221:55:   required from here
/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/StringUtils.h:98:32: error: no matching function for call to ‘format(const wstring&, const wchar_t*&)’
   98 |     auto result = ::fmt::format(fmt, EnumToInt(std::forward<Args>(args))...);
      |                   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/fmt/format.h:44,
                 from /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/StringUtils.h:34,
                 from /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/HTMLUtil.cpp:11:
/usr/include/fmt/core.h:2889:17: note: candidate: ‘std::string fmt::v7::format(fmt::v7::format_string<T ...>, T&& ...) [with T = {const wchar_t*&}; std::string = std::__cxx11::basic_string<char>; fmt::v7::format_string<T ...> = fmt::v7::basic_format_string<char, const wchar_t*&>]’
 2889 | FMT_INLINE auto format(format_string<T...> fmt, T&&... args) -> std::string {
      |                 ^~~~~~
/usr/include/fmt/core.h:2889:44: note:   no known conversion for argument 1 from ‘const wstring’ {aka ‘const std::__cxx11::basic_string<wchar_t>’} to ‘fmt::v7::format_string<const wchar_t*&>’ {aka ‘fmt::v7::basic_format_string<char, const wchar_t*&>’}
 2889 | FMT_INLINE auto format(format_string<T...> fmt, T&&... args) -> std::string {
      |                        ~~~~~~~~~~~~~~~~~~~~^~~
In file included from /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/StringUtils.h:34,
                 from /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/HTMLUtil.cpp:11:
/usr/include/fmt/format.h:2781:13: note: candidate: ‘template<class Locale, class ... T, typename std::enable_if<fmt::v7::detail::is_locale<Locale>::value, int>::type <anonymous> > std::string fmt::v7::format(const Locale&, fmt::v7::format_string<T ...>, T&& ...)’
 2781 | inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args)
      |             ^~~~~~
/usr/include/fmt/format.h:2781:13: note:   template argument deduction/substitution failed:
In file included from /usr/include/fmt/format.h:44,
                 from /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/StringUtils.h:34,
                 from /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/HTMLUtil.cpp:11:
/usr/include/fmt/format.h:2780:11: error: no type named ‘type’ in ‘struct std::enable_if<false, int>’
 2780 |           FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
      |           ^~~~~~~~~~~~~

Reproducible: Always

Steps to Reproduce:
1. emerge =libfmt-8.0.0
2. emerge kodi
3.


Expected Results:  
Kodi is missing a proper SLOT operator on it dependency of libfmt, so the rebuild is not automatically triggered, but shown in the @preserved_rebuild set.

emerge info as attachment due to comment size restriction.
Comment 1 Bernd 2021-06-22 16:45:20 UTC
Created attachment 717690 [details]
kodi-19.1:20210622-154057.log.xz

build log
Comment 2 Bernd 2021-06-22 16:45:53 UTC
Created attachment 717693 [details]
emerge-info-kodi-19.1.txt

output of emerge --info kodi
Comment 3 PhobosK 2021-06-22 17:08:19 UTC
Same error goes for kodi-9999

This is because of the new dev-libs/libfmt-8.0.0-r1 that broke a lot of apps :(
Comment 4 Craig Andrews gentoo-dev 2021-06-23 01:07:35 UTC
Reported upstream at https://github.com/xbmc/xbmc/issues/19897
Comment 5 Cănărău Constantin 2021-06-23 10:16:08 UTC
Naive patch, according to upstream info:

--- a/xbmc/utils/StringUtils.h.orig	2021-05-08 19:20:52.000000000 +0300
+++ b/xbmc/utils/StringUtils.h	2021-06-23 12:13:32.597007968 +0300
@@ -32,6 +32,7 @@
 #define FMT_DEPRECATED
 #endif
 #include <fmt/format.h>
+#include <fmt/xchar.h>
 
 #if FMT_VERSION >= 40000
 #include <fmt/printf.h>

Tested on Raspberry Pi 4B aarch64 with:
[ebuild   R    ] dev-libs/libfmt-8.0.0-r1:0/8::gentoo  USE="-test" 0 KiB
[ebuild   R    ] media-tv/kodi-19.1::gentoo  USE="X alsa bluetooth caps cec css dav1d dbus gles lcms optical power-control pulseaudio (system-ffmpeg) udev udisks upower xslt -airplay -bluray -eventclients -gbm -libusb -lirc -mariadb -mysql -nfs -raspberry-pi -samba -test -udf -upnp -vaapi (-vdpau) -wayland -webserver -zeroconf" CPU_FLAGS_ARM="(-neon)" PYTHON_SINGLE_TARGET="python3_9 -python3_8" 0 KiB
Comment 6 Craig Andrews gentoo-dev 2021-06-23 14:48:53 UTC
Can you please submit this as a PR to kodi at https://github.com/xbmc/xbmc ?

Also, does that patch also work when compiling against libmt 7?
Comment 7 Craig Andrews gentoo-dev 2021-06-24 01:07:27 UTC
(In reply to Craig Andrews from comment #6)
> Can you please submit this as a PR to kodi at https://github.com/xbmc/xbmc ?
> 
> Also, does that patch also work when compiling against libmt 7?

I submitted the PR: https://github.com/xbmc/xbmc/pull/19900
Comment 8 Cănărău Constantin 2021-06-24 14:24:29 UTC
(In reply to Craig Andrews from comment #6)
> Can you please submit this as a PR to kodi at https://github.com/xbmc/xbmc ?
> 
> Also, does that patch also work when compiling against libmt 7?

Sorry for the delay, busy working days.
I tested only against libfmt 8. I will test against 7, it will take a while on Pi.
Comment 9 Cănărău Constantin 2021-06-24 14:34:32 UTC
No, kodi fails early:
 
emerge -O1 -j1 =libfmt-7.1.3 dev-libs/spdlog kodi

[21/1417] /usr/lib/distcc/bin/aarch64-unknown-linux-gnu-g++  -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1 -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/lib -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/platform/linux -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/cores/VideoPlayer -Ibuild -Ibuild/include -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/platform/posix -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/python3.9 -I/usr/include/libxml2 -Ibuild/cores/RetroPlayer/messages -I/usr/include/freetype2 -I/usr/include/fribidi -Ibuild/libdvd/include -I/usr/include/lzo -I/usr/include/libdrm  -march=armv8-a+crc -mcpu=cortex-a72+crc -Ofast -pipe -w -fomit-frame-pointer -fgraphite-identity -floop-nest-optimize -funsafe-math-optimizations -fipa-pta -fno-semantic-interposition -fno-plt -flto=auto -flto-compression-level=9 -fdevirtualize-at-ltrans -DNDEBUG -Wall -D__STDC_CONSTANT_MACROS -D_FILE_OFFSET_BITS=64 -DHAS_POSIX_NETWORK -DHAS_LINUX_NETWORK -DHAS_BUILTIN_SYNC_ADD_AND_FETCH=1 -DHAS_BUILTIN_SYNC_SUB_AND_FETCH=1 -DHAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP=1 -DHAVE_INOTIFY=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 "-DHAVE_INTTYPES_H=1 -DTARGET_POSIX" -DTARGET_LINUX -D_GNU_SOURCE -DHAVE_LINUX_UDMABUF=1 -DHAVE_LINUX_DMA_HEAP=1 -DHAVE_LINUX_DMA_BUF=1 -DHAVE_MKOSTEMP=1 -DHAVE_LINUX_MEMFD=1 -DHAVE_STATX=1 -std=c++14 -MD -MT CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o -MF CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o.d -o CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o -c build/xbmc/CompileInfo.cpp
FAILED: CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o 
/usr/lib/distcc/bin/aarch64-unknown-linux-gnu-g++  -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1 -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/lib -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/platform/linux -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/cores/VideoPlayer -Ibuild -Ibuild/include -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/platform/posix -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/python3.9 -I/usr/include/libxml2 -Ibuild/cores/RetroPlayer/messages -I/usr/include/freetype2 -I/usr/include/fribidi -Ibuild/libdvd/include -I/usr/include/lzo -I/usr/include/libdrm  -march=armv8-a+crc -mcpu=cortex-a72+crc -Ofast -pipe -w -fomit-frame-pointer -fgraphite-identity -floop-nest-optimize -funsafe-math-optimizations -fipa-pta -fno-semantic-interposition -fno-plt -flto=auto -flto-compression-level=9 -fdevirtualize-at-ltrans -DNDEBUG -Wall -D__STDC_CONSTANT_MACROS -D_FILE_OFFSET_BITS=64 -DHAS_POSIX_NETWORK -DHAS_LINUX_NETWORK -DHAS_BUILTIN_SYNC_ADD_AND_FETCH=1 -DHAS_BUILTIN_SYNC_SUB_AND_FETCH=1 -DHAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP=1 -DHAVE_INOTIFY=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 "-DHAVE_INTTYPES_H=1 -DTARGET_POSIX" -DTARGET_LINUX -D_GNU_SOURCE -DHAVE_LINUX_UDMABUF=1 -DHAVE_LINUX_DMA_HEAP=1 -DHAVE_LINUX_DMA_BUF=1 -DHAVE_MKOSTEMP=1 -DHAVE_LINUX_MEMFD=1 -DHAVE_STATX=1 -std=c++14 -MD -MT CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o -MF CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o.d -o CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o -c build/xbmc/CompileInfo.cpp
In file included from build/xbmc/CompileInfo.cpp:11:
/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/StringUtils.h:35:10: fatal error: fmt/xchar.h: No such file or directory
   35 | #include <fmt/xchar.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
distcc[173] ERROR: compile build/xbmc/CompileInfo.cpp on 192.168.78.254/16 failed
distcc[173] (dcc_build_somewhere) Warning: remote compilation of 'build/xbmc/CompileInfo.cpp' failed, retrying locally
distcc[173] Warning: failed to distribute build/xbmc/CompileInfo.cpp to 192.168.78.254/16, running locally instead
In file included from build/xbmc/CompileInfo.cpp:11:
/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/StringUtils.h:35:10: fatal error: fmt/xchar.h: No such file or directory
   35 | #include <fmt/xchar.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
distcc[173] ERROR: compile build/xbmc/CompileInfo.cpp on localhost failed



equery f libfmt | grep xchar
return nothing

I presume it need something like
#if FMT_VERSION >= 80
#include <fmt/xchar.h>
#endif
Comment 10 Jonathan Heaney 2021-06-25 09:50:13 UTC
(In reply to Cănărău Constantin from comment #9)
> No, kodi fails early:
>  
> emerge -O1 -j1 =libfmt-7.1.3 dev-libs/spdlog kodi
> 
> [21/1417] /usr/lib/distcc/bin/aarch64-unknown-linux-gnu-g++ 
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/lib
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/platform/linux
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/cores/VideoPlayer
> -Ibuild -Ibuild/include
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/platform/posix
> -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
> -I/usr/include/python3.9 -I/usr/include/libxml2
> -Ibuild/cores/RetroPlayer/messages -I/usr/include/freetype2
> -I/usr/include/fribidi -Ibuild/libdvd/include -I/usr/include/lzo
> -I/usr/include/libdrm  -march=armv8-a+crc -mcpu=cortex-a72+crc -Ofast -pipe
> -w -fomit-frame-pointer -fgraphite-identity -floop-nest-optimize
> -funsafe-math-optimizations -fipa-pta -fno-semantic-interposition -fno-plt
> -flto=auto -flto-compression-level=9 -fdevirtualize-at-ltrans -DNDEBUG -Wall
> -D__STDC_CONSTANT_MACROS -D_FILE_OFFSET_BITS=64 -DHAS_POSIX_NETWORK
> -DHAS_LINUX_NETWORK -DHAS_BUILTIN_SYNC_ADD_AND_FETCH=1
> -DHAS_BUILTIN_SYNC_SUB_AND_FETCH=1 -DHAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP=1
> -DHAVE_INOTIFY=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_LOCALTIME_R=1
> -DHAVE_GMTIME_R=1 "-DHAVE_INTTYPES_H=1 -DTARGET_POSIX" -DTARGET_LINUX
> -D_GNU_SOURCE -DHAVE_LINUX_UDMABUF=1 -DHAVE_LINUX_DMA_HEAP=1
> -DHAVE_LINUX_DMA_BUF=1 -DHAVE_MKOSTEMP=1 -DHAVE_LINUX_MEMFD=1 -DHAVE_STATX=1
> -std=c++14 -MD -MT CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o
> -MF CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o.d -o
> CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o -c
> build/xbmc/CompileInfo.cpp
> FAILED: CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o 
> /usr/lib/distcc/bin/aarch64-unknown-linux-gnu-g++ 
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/lib
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/platform/linux
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/cores/VideoPlayer
> -Ibuild -Ibuild/include
> -I/var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/platform/posix
> -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
> -I/usr/include/python3.9 -I/usr/include/libxml2
> -Ibuild/cores/RetroPlayer/messages -I/usr/include/freetype2
> -I/usr/include/fribidi -Ibuild/libdvd/include -I/usr/include/lzo
> -I/usr/include/libdrm  -march=armv8-a+crc -mcpu=cortex-a72+crc -Ofast -pipe
> -w -fomit-frame-pointer -fgraphite-identity -floop-nest-optimize
> -funsafe-math-optimizations -fipa-pta -fno-semantic-interposition -fno-plt
> -flto=auto -flto-compression-level=9 -fdevirtualize-at-ltrans -DNDEBUG -Wall
> -D__STDC_CONSTANT_MACROS -D_FILE_OFFSET_BITS=64 -DHAS_POSIX_NETWORK
> -DHAS_LINUX_NETWORK -DHAS_BUILTIN_SYNC_ADD_AND_FETCH=1
> -DHAS_BUILTIN_SYNC_SUB_AND_FETCH=1 -DHAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP=1
> -DHAVE_INOTIFY=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_LOCALTIME_R=1
> -DHAVE_GMTIME_R=1 "-DHAVE_INTTYPES_H=1 -DTARGET_POSIX" -DTARGET_LINUX
> -D_GNU_SOURCE -DHAVE_LINUX_UDMABUF=1 -DHAVE_LINUX_DMA_HEAP=1
> -DHAVE_LINUX_DMA_BUF=1 -DHAVE_MKOSTEMP=1 -DHAVE_LINUX_MEMFD=1 -DHAVE_STATX=1
> -std=c++14 -MD -MT CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o
> -MF CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o.d -o
> CMakeFiles/compileinfo.dir/build/xbmc/CompileInfo.cpp.o -c
> build/xbmc/CompileInfo.cpp
> In file included from build/xbmc/CompileInfo.cpp:11:
> /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/StringUtils.h:
> 35:10: fatal error: fmt/xchar.h: No such file or directory
>    35 | #include <fmt/xchar.h>
>       |          ^~~~~~~~~~~~~
> compilation terminated.
> distcc[173] ERROR: compile build/xbmc/CompileInfo.cpp on 192.168.78.254/16
> failed
> distcc[173] (dcc_build_somewhere) Warning: remote compilation of
> 'build/xbmc/CompileInfo.cpp' failed, retrying locally
> distcc[173] Warning: failed to distribute build/xbmc/CompileInfo.cpp to
> 192.168.78.254/16, running locally instead
> In file included from build/xbmc/CompileInfo.cpp:11:
> /var/tmp/portage/media-tv/kodi-19.1/work/xbmc-19.1/xbmc/utils/StringUtils.h:
> 35:10: fatal error: fmt/xchar.h: No such file or directory
>    35 | #include <fmt/xchar.h>
>       |          ^~~~~~~~~~~~~
> compilation terminated.
> distcc[173] ERROR: compile build/xbmc/CompileInfo.cpp on localhost failed
> 
> 
> 
> equery f libfmt | grep xchar
> return nothing
> 
> I presume it need something like
> #if FMT_VERSION >= 80
> #include <fmt/xchar.h>
> #endif

Built for me here. libfmt-8.0.0-r1, gcc-11.1.0-r1 on ~amd64
Comment 11 Larry the Git Cow gentoo-dev 2021-06-25 13:35:04 UTC
The bug has been closed via the following commit(s):

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

commit 0e9e4120aff7a0bc400e9823f0ca24c08c97abd4
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2021-06-25 13:34:34 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2021-06-25 13:35:00 +0000

    media-tv/kodi: support fmt 8
    
    Closes: https://bugs.gentoo.org/797619
    See: https://github.com/xbmc/xbmc/pull/19904
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 media-tv/kodi/files/kodi-19.1-fmt-8.patch | 28 ++++++++++++++++++++++++++++
 media-tv/kodi/kodi-19.1.ebuild            |  4 ++++
 2 files changed, 32 insertions(+)