[Pkg-matrix-maintainers] Bug#1092844: Logs of bug 1092844
Chen Shengqi
harry at debian.org
Mon Jan 13 16:38:12 GMT 2025
(Probably) related build logs:
[ 98%] Building CXX object CMakeFiles/matrix_client.dir/lib/structs/responses/public_rooms.cpp.o
/usr/bin/c++ -DFMT_SHARED -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -DSPDLOG_SHARED_LIB -I"/<<PKGBUILDDIR>>/mtxclient/include" -isystem "/<<PKGBUILDDIR>>/coeurl/include" -isystem /usr/include/p11-kit-1 -isystem /usr/include/mit-krb5 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wconversion -pipe -pedantic -fsized-deallocation -Wno-attributes -Wunreachable-code -std=c++20 -fPIC -pthread -DNOMINMAX -MD -MT CMakeFiles/matrix_client.dir/lib/structs/responses/public_rooms.cpp.o -MF CMakeFiles/matrix_client.dir/lib/structs/responses/public_rooms.cpp.o.d -o CMakeFiles/matrix_client.dir/lib/structs/responses/public_rooms.cpp.o -c "/<<PKGBUILDDIR>>/mtxclient/lib/structs/responses/public_rooms.cpp"
In file included from /usr/include/fmt/format.h:41,
from /usr/include/fmt/core.h:5,
from /usr/include/spdlog/fmt/fmt.h:28,
from /usr/include/spdlog/common.h:50,
from /<<PKGBUILDDIR>>/mtxclient/include/mtxclient/http/errors.hpp:8,
from /<<PKGBUILDDIR>>/mtxclient/include/mtxclient/http/client.hpp:19,
from /<<PKGBUILDDIR>>/mtxclient/lib/http/client.cpp:1:
/usr/include/fmt/base.h: In instantiation of ‘static void fmt::v11::detail::value<Context>::format_custom(void*, fmt::v11::parse_context<typename Context::char_type>&, Context&) [with T = std::optional<mtx::http::ClientError>; Formatter = fmt::v11::formatter<std::optional<mtx::http::ClientError> >; Context = fmt::v11::context; typename Context::char_type = char]’:
/usr/include/fmt/base.h:2220:19: required from ‘constexpr fmt::v11::detail::value<Context>::value(T&, fmt::v11::detail::custom_tag) [with T = const std::optional<mtx::http::ClientError>; typename std::enable_if<has_formatter<T, typename Context::char_type>(), int>::type <anonymous> = 0; Context = fmt::v11::context]’
2220 | custom.format = format_custom<value_type, formatter<value_type, char_type>>;
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/fmt/base.h:2200:65: required from ‘constexpr fmt::v11::detail::value<Context>::value(T&) [with T = const std::optional<mtx::http::ClientError>; typename std::enable_if<(fmt::v11::detail::use_formatter<T>::value || (!1)), int>::type <anonymous> = 0; Context = fmt::v11::context]’
2200 | FMT_CONSTEXPR20 FMT_INLINE value(T& x) : value(x, custom_tag()) {}
| ^
/usr/include/fmt/base.h:2773:20: required from ‘constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, NUM_NAMED_ARGS, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {const std::optional<mtx::http::ClientError>}; int NUM_ARGS = 1; int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 15]’
2773 | return {{args...}};
| ^
/usr/include/spdlog/logger.h:328:75: required from ‘void spdlog::logger::log_(spdlog::source_loc, spdlog::level::level_enum, spdlog::string_view_t, Args&& ...) [with Args = {const std::optional<mtx::http::ClientError>&}; spdlog::string_view_t = fmt::v11::basic_string_view<char>]’
328 | fmt::vformat_to(fmt::appender(buf), fmt, fmt::make_format_args(args...));
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/spdlog/logger.h:80:13: required from ‘void spdlog::logger::log(spdlog::source_loc, spdlog::level::level_enum, fmt::v11::format_string<T ...>, Args&& ...) [with Args = {const std::optional<mtx::http::ClientError>&}; fmt::v11::format_string<T ...> = fmt::v11::fstring<const std::optional<mtx::http::ClientError>&>]’
80 | log_(loc, lvl, details::to_string_view(fmt), std::forward<Args>(args)...);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/spdlog/logger.h:85:12: [ skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/include/c++/14/type_traits:2666:60: required from ‘struct std::__result_of_impl<false, false, mtx::http::Client::registration(const std::string&, const std::string&, mtx::http::UIAHandler, mtx::http::Callback<mtx::responses::Register>, const std::string&)::<lambda(const mtx::http::UIAHandler&, const nlohmann::json_abi_v3_11_3::json&)>::<lambda(auto:46&, mtx::http::RequestErr)>&, const mtx::responses::Register&, const std::optional<mtx::http::ClientError>&>’
2666 | using type = decltype(_S_test<_Functor, _ArgTypes...>(0));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/std_function.h:348:9: recursively required by substitution of ‘template<class _Result, class _Ret> struct std::__is_invocable_impl<_Result, _Ret, true, std::__void_t<typename _CTp::type> > [with _Result = std::__invoke_result<mtx::http::Client::registration(const std::string&, const std::string&, mtx::http::UIAHandler, mtx::http::Callback<mtx::responses::Register>, const std::string&)::<lambda(const mtx::http::UIAHandler&, const nlohmann::json_abi_v3_11_3::json&)>::<lambda(auto:46&, mtx::http::RequestErr)>&, const mtx::responses::Register&, const std::optional<mtx::http::ClientError>&>; _Ret = void]’
348 | struct _Callable
| ^~~~~~~~~
/usr/include/c++/14/bits/std_function.h:348:9: required from ‘struct std::function<void(const mtx::responses::Register&, const std::optional<mtx::http::ClientError>&)>::_Callable<mtx::http::Client::registration(const std::string&, const std::string&, mtx::http::UIAHandler, mtx::http::Callback<mtx::responses::Register>, const std::string&)::<lambda(const mtx::http::UIAHandler&, const nlohmann::json_abi_v3_11_3::json&)>::<lambda(auto:46&, mtx::http::RequestErr)>, mtx::http::Client::registration(const std::string&, const std::string&, mtx::http::UIAHandler, mtx::http::Callback<mtx::responses::Register>, const std::string&)::<lambda(const mtx::http::UIAHandler&, const nlohmann::json_abi_v3_11_3::json&)>::<lambda(auto:46&, mtx::http::RequestErr)>, std::__invoke_result<mtx::http::Client::registration(const std::string&, const std::string&, mtx::http::UIAHandler, mtx::http::Callback<mtx::responses::Register>, const std::string&)::<lambda(const mtx::http::UIAHandler&, const nlohmann::json_abi_v3_11_3::json&)>::<lambda(auto:46&, mtx::http::RequestErr)>&, const mtx::responses::Register&, const std::optional<mtx::http::ClientError>&> >’
/usr/include/c++/14/bits/std_function.h:353:41: required by substitution of ‘template<class _Res, class ... _ArgTypes> template<class _Cond, class _Tp> using std::function<_Res(_ArgTypes ...)>::_Requires = std::__enable_if_t<((bool)_Cond::value), _Tp> [with _Cond = std::function<void(const mtx::responses::Register&, const std::optional<mtx::http::ClientError>&)>::_Callable<mtx::http::Client::registration(const std::string&, const std::string&, mtx::http::UIAHandler, mtx::http::Callback<mtx::responses::Register>, const std::string&)::<lambda(const mtx::http::UIAHandler&, const nlohmann::json_abi_v3_11_3::json&)>::<lambda(auto:46&, mtx::http::RequestErr)>, mtx::http::Client::registration(const std::string&, const std::string&, mtx::http::UIAHandler, mtx::http::Callback<mtx::responses::Register>, const std::string&)::<lambda(const mtx::http::UIAHandler&, const nlohmann::json_abi_v3_11_3::json&)>::<lambda(auto:46&, mtx::http::RequestErr)>, std::__invoke_result<mtx::http::Client::registration(const std::string&, const std::string&, mtx::http::UIAHandler, mtx::http::Callback<mtx::responses::Register>, const std::string&)::<lambda(const mtx::http::UIAHandler&, const nlohmann::json_abi_v3_11_3::json&)>::<lambda(auto:46&, mtx::http::RequestErr)>&, const mtx::responses::Register&, const std::optional<mtx::http::ClientError>&> >; _Tp = void; _Res = void; _ArgTypes = {const mtx::responses::Register&, const std::optional<mtx::http::ClientError>&}]’
353 | using _Requires = __enable_if_t<_Cond::value, _Tp>;
| ^~~~~
/usr/include/c++/14/bits/std_function.h:434:9: required by substitution of ‘template<class _Functor, class _Constraints> std::function<void(const mtx::responses::Register&, const std::optional<mtx::http::ClientError>&)>::function(_Functor&&) [with _Functor = mtx::http::Client::registration(const std::string&, const std::string&, mtx::http::UIAHandler, mtx::http::Callback<mtx::responses::Register>, const std::string&)::<lambda(const mtx::http::UIAHandler&, const nlohmann::json_abi_v3_11_3::json&)>::<lambda(auto:46&, mtx::http::RequestErr)>; _Constraints = void]’
434 | typename _Constraints = _Requires<_Callable<_Functor>>>
| ^~~~~~~~
/<<PKGBUILDDIR>>/mtxclient/lib/http/client.cpp:1068:55: required from here
1068 | post<nlohmann::json, mtx::responses::Register>(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
1069 | "/client/v3/register",
| ~~~~~~~~~~~~~~~~~~~~~~
1070 | request,
| ~~~~~~~~
1071 | [this, cb, h](auto &r, RequestErr e) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1072 | if (e && e->status_code == 401) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1073 | mtx::utils::log::log()->debug("{}", e);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1074 | h.prompt(h, e->matrix_error.unauthorized);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1075 | } else {
| ~~~~~~~~
1076 | if (!e && !r.access_token.empty()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1077 | this->user_id_ = r.user_id;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1078 | this->device_id_ = r.device_id;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1079 | this->access_token_ = r.access_token;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1080 | }
| ~
1081 | cb(r, e);
| ~~~~~~~~~
1082 | }
| ~
1083 | },
| ~~
1084 | false);
| ~~~~~~
/usr/include/fmt/base.h:2240:29: error: passing ‘const fmt::v11::formatter<std::optional<mtx::http::ClientError> >’ as ‘this’ argument discards qualifiers [-fpermissive]
2240 | ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/mtxclient/include/mtxclient/http/errors.hpp:135:10: note: in call to ‘auto fmt::v11::formatter<std::optional<mtx::http::ClientError> >::format(std::optional<mtx::http::ClientError>, FormatContext&) [with FormatContext = fmt::v11::context]’
135 | auto format(std::optional<mtx::http::ClientError> c, FormatContext &ctx)
| ^~~~~~
make[4]: *** [CMakeFiles/matrix_client.dir/build.make:82: CMakeFiles/matrix_client.dir/lib/http/client.cpp.o] Error 1
--
Thanks,
Shengqi Chen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nheko_0.12.0+~0.10.0+~1.0.0+~0.3.1-3
Type: application/octet-stream
Size: 472445 bytes
Desc: nheko_0.12.0+~0.10.0+~1.0.0+~0.3.1-3
URL: <http://alioth-lists.debian.net/pipermail/pkg-matrix-maintainers/attachments/20250113/552cc372/attachment-0001.obj>
More information about the Pkg-matrix-maintainers
mailing list