folly icon indicating copy to clipboard operation
folly copied to clipboard

[regression in 2023.06.19.00] error: static_assert failed due to requirement 'formattable' "Cannot format an argument. ...

Open yurivict opened this issue 1 year ago • 3 comments

In file included from /wrkdirs/usr/ports/devel/folly/work/folly-2023.06.19.00/folly/futures/detail/Core.cpp:17:
In file included from /wrkdirs/usr/ports/devel/folly/work/folly-2023.06.19.00/folly/futures/detail/Core.h:27:
In file included from /wrkdirs/usr/ports/devel/folly/work/folly-2023.06.19.00/folly/Executor.h:25:
In file included from /wrkdirs/usr/ports/devel/folly/work/folly-2023.06.19.00/folly/Range.h:62:
In file included from /usr/local/include/fmt/format.h:48:
/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>, folly::futures::detail::DeferredExecutor::State &>' 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, folly::futures::detail::DeferredExecutor::State &, 0>' requested here
        data_{detail::make_arg<
                      ^

clang-15 FreeBSD 13.2

yurivict avatar Jun 20 '23 05:06 yurivict

I have the same problem on Ubuntu 22.04.2 LTS gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04.1)

dyumin avatar Jun 22 '23 11:06 dyumin

2023.06.26.00 still has the same problem.

yurivict avatar Jun 27 '23 06:06 yurivict

Should be fixed by https://github.com/facebook/folly/commit/e74fe5c99dd9d96b80b17f8396ce2568f2becb45. See #2018.

carlocab avatar Jun 27 '23 23:06 carlocab