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

2.27.0 build failure with libfmt10: error: 'current_zone' is not a member of 'std::chrono' #5428

Open
barracuda156 opened this issue Jan 19, 2025 · 2 comments

Comments

@barracuda156
Copy link
Contributor

@teo-tsirpanis
This is probably an issue of limited impact, but the code added in 956fecc cannot be compiled with libfmt < 11 and GCC using _GLIBCXX_USE_CXX11_ABI=0.
In particular, v. 2.27.0 won’t build in MacPorts on systems using libstdc++.

For details, see: fmtlib/fmt#4160

libfmt upstream added a workaround in branch 11, but apparently it has not been backported. At least the build of TileDB failed for me now.

P. S. Switching to libfmt11 could work, but may not be trivial, due to number of ports depending on spdlog and libfmt (which are used by TileDB build). Say, if I rebuild spdlog with libfmt11 instead of libfmt10 (current default in MacPorts), that may break unknown number of dependents, and all of them must be rebuilt.

@teo-tsirpanis
Copy link
Member

Would patching libfmt10 in MacPorts to backport fmtlib/fmt@538d877 solve this?

@barracuda156
Copy link
Contributor Author

@teo-tsirpanis Yes, it would, but the upstream fix for libfmt11 does not apply, and from a quick look at the header, the code is quite different in libfmt10, so it should be modified to match the syntax and not merely rebased.

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

2 participants