Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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> _; | ^ #323

Open
sairahul-chalamalasetti opened this issue Jul 2, 2024 · 4 comments

Comments

@sairahul-chalamalasetti
Copy link

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

@fan982
Copy link

fan982 commented Jul 10, 2024

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

@tang-hi
Copy link

tang-hi commented Jul 19, 2024

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

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

@sairahul-chalamalasetti
Copy link
Author

sairahul-chalamalasetti commented Jul 19, 2024

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

@tang-hi
Copy link

tang-hi commented Jul 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants