Skip to content

Build breaks with fmt-9.1.0: static_assert failed due to requirement 'formattable' "Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt" #44

@yurivict

Description

@yurivict
In file included from /wrkdirs/usr/ports/www/librtcdcpp/work/librtcdcpp-2fe92c38b48b6acf1217a8a812c2408310dec437/src/NiceWrapper.cpp:32:
In file included from /wrkdirs/usr/ports/www/librtcdcpp/work/librtcdcpp-2fe92c38b48b6acf1217a8a812c2408310dec437/include/rtcdcpp/NiceWrapper.hpp:35:
In file included from /wrkdirs/usr/ports/www/librtcdcpp/work/librtcdcpp-2fe92c38b48b6acf1217a8a812c2408310dec437/include/rtcdcpp/PeerConnection.hpp:33:
In file included from /wrkdirs/usr/ports/www/librtcdcpp/work/librtcdcpp-2fe92c38b48b6acf1217a8a812c2408310dec437/include/rtcdcpp/Logging.hpp:33:
In file included from /usr/local/include/spdlog/spdlog.h:12:
In file included from /usr/local/include/spdlog/common.h:45:
In file included from /usr/local/include/spdlog/fmt/fmt.h:31:
/usr/local/include/fmt/core.h:1756:3: error: static_assert failed due to requirement 'formattable' "Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt"
  static_assert(
  ^
/usr/local/include/fmt/core.h:1777:10: note: in instantiation of function template specialization 'fmt::detail::make_value<fmt::basic_format_context<fmt::appender, char>, rtcdcpp::RTCIceServer &>' requested here
  return make_value<Context>(val);
         ^
/usr/local/include/fmt/core.h:1899:23: note: in instantiation of function template specialization 'fmt::detail::make_arg<true, fmt::basic_format_context<fmt::appender, char>, fmt::detail::type::custom_type, rtcdcpp::RTCIceServer &, 0>' requested here
        data_{detail::make_arg<
                      ^
/usr/local/include/fmt/core.h:1918:10: note: in instantiation of function template specialization 'fmt::format_arg_store<fmt::basic_format_context<fmt::appender, char>, rtcdcpp::RTCIceServer>::format_arg_store<rtcdcpp::RTCIceServer &>' requested here
  return {FMT_FORWARD(args)...};
         ^
/usr/local/include/spdlog/logger.h:374:59: note: in instantiation of function template specialization 'fmt::make_format_args<fmt::basic_format_context<fmt::appender, char>, rtcdcpp::RTCIceServer &>' requested here
            fmt::vformat_to(fmt::appender(buf), fmt, fmt::make_format_args(std::forward<Args>(args)...));
                                                          ^
/usr/local/include/spdlog/logger.h:90:9: note: in instantiation of function template specialization 'spdlog::logger::log_<rtcdcpp::RTCIceServer &>' requested here
        log_(loc, lvl, fmt, std::forward<Args>(args)...);
        ^
/usr/local/include/spdlog/logger.h:96:9: note: in instantiation of function template specialization 'spdlog::logger::log<rtcdcpp::RTCIceServer &>' requested here
        log(source_loc{}, lvl, fmt, std::forward<Args>(args)...);
        ^
/usr/local/include/spdlog/logger.h:164:9: note: in instantiation of function template specialization 'spdlog::logger::log<rtcdcpp::RTCIceServer &>' requested here
        log(level::warn, fmt, std::forward<Args>(args)...);
        ^
/wrkdirs/usr/ports/www/librtcdcpp/work/librtcdcpp-2fe92c38b48b6acf1217a8a812c2408310dec437/src/NiceWrapper.cpp:174:15: note: in instantiation of function template specialization 'spdlog::logger::warn<rtcdcpp::RTCIceServer &>' requested here
      logger->warn("Failed to lookup host for server: {}", ice_server);
              ^

FreeBSD 13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions