CacheLib icon indicating copy to clipboard operation
CacheLib copied to clipboard

Build is failing with error: ‘fmt::v10::detail::type_is_unformattable_for<const facebook::cachelib::navy::Status, char> _’ has incomplete type 1600 | type_is_unformattable_for<T, typename Context::char_type> _; | ^

Open sairahul-chalamalasetti opened this issue 1 year ago • 4 comments

Describe the bug While building the cachelib with ./contrib/build.sh -j -T the build is failing with below error

error: ‘fmt::v10::detail::type_is_unformattable_for<const facebook::cachelib::navy::Status, char> _’ has incomplete type 1600 | type_is_unformattable_for<T, typename Context::char_type> _; | ^

To Reproduce Steps to reproduce the behavior: Clone the cachelib and run "./contrib/build.sh -j -T "

Expected behavior The build the failing with already defined above error

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Ubuntu 22:04.4 LTS Kernel: 6.9.0-060900-generic g++ version: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

sairahul-chalamalasetti avatar Jul 02 '24 06:07 sairahul-chalamalasetti

I have meet the same error, waiting for a solution.

fan982 avatar Jul 10 '24 13:07 fan982

Put the code below in cachelib/navy/common/Types.h. It works for me.

inline auto format_as(Status status) {
  return fmt::underlying(status);
}

tang-hi avatar Jul 19 '24 16:07 tang-hi

This fix helped to build on Kernel 6.9. Can this be merged to the repository ?

sairahul-chalamalasetti avatar Jul 19 '24 19:07 sairahul-chalamalasetti

I will try to raise a PR to merge it into the repo later

tang-hi avatar Jul 20 '24 12:07 tang-hi

This should be fixed now.

pbhandar2 avatar Jan 16 '25 18:01 pbhandar2