polysolve icon indicating copy to clipboard operation
polysolve copied to clipboard

Incompatibility with `libfmt10`? `error: 'fmt::v10::detail::type_is_unformattable_for<cppoptlib::Status, char> _' has incomplete type`

Open barracuda156 opened this issue 7 months ago • 4 comments

Is something wrong on my side or libfmt10 is unsupported?

/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_polysolve/polysolve/work/polysolve-73d98008631b8ae1617131cb4896f784ae2ec5fe/src/polysolve/nonlinear/Solver.cpp:511:21:   required from here
/opt/local/include/libfmt10/fmt/core.h:1576:63: error: 'fmt::v10::detail::type_is_unformattable_for<cppoptlib::Status, char> _' has incomplete type
 1576 |     type_is_unformattable_for<T, typename Context::char_type> _;
      |                                                               ^
/opt/local/include/libfmt10/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,
      |       ^~~~~~~~~~~
/opt/local/include/libfmt10/fmt/core.h:1580:7: note: 'formattable' evaluates to false

May be related to using outdated cppoptlib: https://github.com/polyfem/polysolve/issues/63

barracuda156 avatar Jan 04 '24 08:01 barracuda156