-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug
The clp-core-build-macos workflow is failing seemingly due to:
In file included from /Users/runner/work/clp/clp/components/core/src/clp/string_utils/../spdlog_with_specializations.hpp:4:
In file included from /usr/local/include/fmt/format.h:41:
/usr/local/include/fmt/base.h:1402:23: error: no matching member function for call to 'format'
ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
~~~^~~~~~
/usr/local/include/fmt/base.h:1383:21: note: in instantiation of function template specialization 'fmt::detail::value<fmt::context>::format_custom_arg<clp::ErrorCode, fmt::formatter<clp::ErrorCode>>' requested here
custom.format = format_custom_arg<
^
/usr/local/include/spdlog/logger.h:80:9: note: in instantiation of function template specialization 'spdlog::logger::log_<clp::ErrorCode &>' requested here
log_(loc, lvl, details::to_string_view(fmt), std::forward<Args>(args)...);
^
/Users/runner/work/clp/clp/components/core/src/clp/clp/FileDecompressor.cpp:21:13: note: in instantiation of function template specialization 'spdlog::logger::log<clp::ErrorCode &>' requested here
SPDLOG_ERROR("Failed to open encoded file, error_code={}", error_code);
^
/usr/local/include/spdlog/spdlog.h:333:31: note: expanded from macro 'SPDLOG_ERROR'
#define SPDLOG_ERROR(...) SPDLOG_LOGGER_ERROR(spdlog::default_logger_raw(), __VA_ARGS__)
^
/usr/local/include/spdlog/spdlog.h:332:9: note: expanded from macro 'SPDLOG_LOGGER_ERROR'
SPDLOG_LOGGER_CALL(logger, spdlog::level::err, __VA_ARGS__)
^
/usr/local/include/spdlog/spdlog.h:288:19: note: expanded from macro 'SPDLOG_LOGGER_CALL'
(logger)->log(spdlog::source_loc{__FILE__, __LINE__, SPDLOG_FUNCTION}, level, __VA_ARGS__)
^
/Users/runner/work/clp/clp/components/core/src/clp/string_utils/../spdlog_with_specializations.hpp:19:10: note: candidate function template not viable: 'this' argument has type 'const fmt::formatter<clp::ErrorCode>', but method is not marked const
auto format(clp::ErrorCode const& error_code, FormatContext& ctx) {
^
1 warning and 1 error generated.
This is likely because the fmt
version available from Homebrew changed from 10.2.1.1 to 11.0.2.
CLP version
Environment
- macOS 12
- fmt 11.0.2
Reproduction steps
Run the workflow.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working