<div dir="ltr">Il giorno ven 15 mar 2024 alle ore 15:09 Vladimir Nikishkin <<a href="mailto:for_slackbuilds-users_mlist_2023-04-21@lockywolf.net">for_slackbuilds-users_mlist_2023-04-21@lockywolf.net</a>> ha scritto:<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello, everyone.<br>
<br>
spdlog has been recently updated, and now my coeurl build fails to build<br>
<br>
Does anybody know how to overcome this?<br>
<br>
[1/2] ccache c++ -Ilibcoeurl.so.0.3.p -I. -I.. -I../include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++17 -g -fPIC -pthread -DSPDLOG_SHARED_LIB -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -MD -MQ libcoeurl.so.0.3.p/lib_client.cpp.o -MF libcoeurl.so.0.3.p/lib_client.cpp.o.d -o libcoeurl.so.0.3.p/lib_client.cpp.o -c ../lib/client.cpp<br>
FAILED: libcoeurl.so.0.3.p/lib_client.cpp.o <br>
ccache c++ -Ilibcoeurl.so.0.3.p -I. -I.. -I../include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++17 -g -fPIC -pthread -DSPDLOG_SHARED_LIB -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -MD -MQ libcoeurl.so.0.3.p/lib_client.cpp.o -MF libcoeurl.so.0.3.p/lib_client.cpp.o.d -o libcoeurl.so.0.3.p/lib_client.cpp.o -c ../lib/client.cpp<br>
In file included from /usr/include/fmt/format.h:49,<br>
from /usr/include/fmt/ostream.h:21,<br>
from /usr/include/spdlog/fmt/ostr.h:20,<br>
from ../lib/client.cpp:1:<br>
/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 = CURLcode; typename std::enable_if<PACKED, int>::type <anonymous> = 0]’:<br>
/usr/include/fmt/core.h:1842:51: required from ‘constexpr fmt::v10::format_arg_store<Context, Args>::format_arg_store(T& ...) [with T = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, CURLcode, char [256], long int}; Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, CURLcode, char [256], long int}]’<br>
/usr/include/fmt/core.h:1860: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 = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, CURLcode, char [256], long int}]’<br>
/usr/include/spdlog/logger.h:374:75: required from ‘void spdlog::logger::log_(spdlog::source_loc, spdlog::level::level_enum, spdlog::string_view_t, Args&& ...) [with Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, CURLcode&, char (&)[256], long int&}; spdlog::string_view_t = fmt::v10::basic_string_view<char>]’<br>
/usr/include/spdlog/logger.h:90:13: required from ‘void spdlog::logger::log(spdlog::source_loc, spdlog::level::level_enum, fmt::v10::format_string<T ...>, Args&& ...) [with Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, CURLcode&, char (&)[256], long int&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, CURLcode&, char (&)[256], long int&>]’<br>
/usr/include/spdlog/logger.h:96:12: required from ‘void spdlog::logger::log(spdlog::level::level_enum, fmt::v10::format_string<T ...>, Args&& ...) [with Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, CURLcode&, char (&)[256], long int&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, CURLcode&, char (&)[256], long int&>]’<br>
/usr/include/spdlog/logger.h:146:12: required from ‘void spdlog::logger::trace(fmt::v10::format_string<T ...>, Args&& ...) [with Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, CURLcode&, char (&)[256], long int&}; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, CURLcode&, char (&)[256], long int&>]’<br>
../lib/client.cpp:358:27: required from here<br>
/usr/include/fmt/core.h:1600:63: error: ‘fmt::v10::detail::type_is_unformattable_for<CURLcode, char> _’ has incomplete type<br>
1600 | type_is_unformattable_for<T, typename Context::char_type> _;<br>
| ^<br>
/usr/include/fmt/core.h:1604:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: <a href="https://fmt.dev/latest/api.html#udt" rel="noreferrer" target="_blank">https://fmt.dev/latest/api.html#udt</a><br>
1604 | formattable,<br>
| ^~~~~~~~~~~<br>
/usr/include/fmt/core.h:1604:7: note: ‘formattable’ evaluates to false<br>
ninja: build stopped: subcommand failed.<br>
<br>
-- <br>
Your sincerely,<br>
Vladimir Nikishkin (MiEr, lockywolf)<br>
(Laptop)<br>
<br></blockquote><div><br></div><div style="font-size:x-small" class="gmail_default">Hi Vladimir,</div><div style="font-size:x-small" class="gmail_default"><br></div><div style="font-size:x-small" class="gmail_default">that happens because spdlog has been build against fmt >= 10.x: I found this patch in the archlinux repo that let coeurl build also in this situation</div><div style="font-size:x-small" class="gmail_default"><br></div><div style="font-size:x-small" class="gmail_default"><a href="https://nheko.im/nheko-reborn/coeurl/-/commit/831e2ee8e9cf08ea1ee9736cde8370f9d0312abc.patch">https://nheko.im/nheko-reborn/coeurl/-/commit/831e2ee8e9cf08ea1ee9736cde8370f9d0312abc.patch</a></div><div style="font-size:x-small" class="gmail_default"><br></div><div style="font-size:x-small" class="gmail_default">Matteo</div><div style="font-size:x-small" class="gmail_default"><br></div><div style="font-size:x-small" class="gmail_default">P.S. please use sane email addresses when you write to the mailing list, thanks in advance! ;-)<br></div></div></div>