this might help.
https://github.com/MusicPlayerDaemon/MPD/commit/f869593ac8913e52c711e974257bd6dc0d5dbf26
On 27/10/2023 19:01, Андрей Рабусов wrote:
Hi all,
I think the mpd's slackbuild (and the corresponding info file) needs to be
updated to match the latest mpd version, 0.23.14, due to the libfmt
update to version 10. I didn't get a reply from the maintainer, so
hopefully somebody else could quickly fix it.
The build error with the current mpd version, 0.23.9, is as follows:
[419/639] Compiling C++ object
src/decoder/plugins/libdecoder_plugins.a.p/FfmpegDecoderPlugin.cxx.o
FAILED:
src/decoder/plugins/libdecoder_plugins.a.p/FfmpegDecoderPlugin.cxx.o
ccache c++ -Isrc/decoder/plugins/libdecoder_plugins.a.p
-Isrc/decoder/plugins -I../src/decoder/plugins -Isrc -I../src -I. -I..
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/opus -I/usr/include/dbus-1.0
-I/usr/lib64/dbus-1.0/include -I/usr/include/SDL2
-fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch
-Wnon-virtual-dtor -Wextra -Wpedantic -std=c++17 -O3 -ffast-math
-ftree-vectorize -Wcast-qual -Wdouble-promotion -Wmissing-declarations
-Wshadow -Wunused -Wvla -Wwrite-strings -Wno-stringop-overflow
-fno-threadsafe-statics -fmerge-all-constants -Wcomma-subscript
-Wextra-semi -Wmismatched-tags -Woverloaded-virtual -Wsign-promo
-Wvolatile -Wvirtual-inheritance -Wno-non-virtual-dtor
-Wsuggest-override -fvisibility=hidden -ffunction-sections
-fdata-sections -D_GNU_SOURCE -O2 -fPIC -fPIC -DHAVE_UNIX -pthread
-D_REENTRANT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -MD -MQ
src/decoder/plugins/libdecoder_plugins.a.p/FfmpegDecoderPlugin.cxx.o
-MF
src/decoder/plugins/libdecoder_plugins.a.p/FfmpegDecoderPlugin.cxx.o.d
-o
src/decoder/plugins/libdecoder_plugins.a.p/FfmpegDecoderPlugin.cxx.o
-c ../src/decoder/plugins/FfmpegDecoderPlugin.cxx
In file included from ../src/Log.hxx:25,
from ../src/decoder/plugins/FfmpegDecoderPlugin.cxx:47:
/usr/include/fmt/core.h: In instantiation of ‘constexpr
fmt::v10::detail::value<Context> fmt::v10::detail::make_arg(T&) [with
bool PACKED = true; Context =
fmt::v10::basic_format_context<fmt::v10::appender, char>; T =
AVSampleFormat; typename std::enable_if<PACKED, int>::type <anonymous>
= 0]’:
/usr/include/fmt/core.h:1808:51: required from ‘constexpr
fmt::v10::format_arg_store<Context, Args>::format_arg_store(T& ...)
[with T = {const char*, AVSampleFormat}; Context =
fmt::v10::basic_format_context<fmt::v10::appender, char>; Args =
{const char*, AVSampleFormat}]’
/usr/include/fmt/core.h:1826:18: required from ‘constexpr
fmt::v10::format_arg_store<Context, typename std::remove_cv<typename
std::remove_reference<T>::type>::type ...>
fmt::v10::make_format_args(T& ...) [with Context =
fmt::v10::basic_format_context<fmt::v10::appender, char>; T = {const
char*, AVSampleFormat}]’
../src/Log.hxx:50:31: required from ‘void LogFmt(LogLevel, const
Domain&, const S&, Args&& ...) [with S = char [51]; Args = {const
char*&, AVSampleFormat&}]’
../src/Log.hxx:99:8: required from ‘void FmtError(const Domain&,
const S&, Args&& ...) [with S = char [51]; Args = {const char*&,
AVSampleFormat&}]’
../src/decoder/plugins/FfmpegDecoderPlugin.cxx:358:11: required from here
/usr/include/fmt/core.h:1576:63: error:
‘fmt::v10::detail::type_is_unformattable_for<AVSampleFormat, char>
_’ has incomplete type
1576 | type_is_unformattable_for<T, typename Context::char_type> _;
| ^
/usr/include/fmt/core.h:1580: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
1580 | formattable,
| ^~~~~~~~~~~
/usr/include/fmt/core.h:1580:7: note: formattable evaluates to false
Regards
Andrei
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/