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

error: ‘template<class T, class ... Args> fmt::v11::basic_string_view<Char> spdlog::details::to_string_view’ redeclared as different kind of entity #3302

Closed
KarlStraussberger opened this issue Dec 26, 2024 · 2 comments

Comments

@KarlStraussberger
Copy link

Occurs when building gerbera with fmt 11.1

https://github.com/gerbera/gerbera/actions/runs/12498488888

In file included from /build/spdlog-1.15.0/include/spdlog/logger.h:17, 
     from /build/spdlog-1.15.0/include/spdlog/async_logger.h:17, 
     from /build/spdlog-1.15.0/include/spdlog/async.h:17, 
     from /build/spdlog-1.15.0/src/stdout_sinks.cpp:10: 
/build/spdlog-1.15.0/include/spdlog/common.h:369:1: warning: inline variables are only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 
369 | inline fmt::basic_string_view<T> to_string_view(fmt::basic_format_string<T, Args...> fmt) { 
| ^~~~~~

/build/spdlog-1.15.0/include/spdlog/common.h:369:54: error: ‘template<class T, class ... Args> fmt::v11::basic_string_view<Char> spdlog::details::to_string_view’ redeclared as different kind of entity
  369 | inline fmt::basic_string_view<T> to_string_view(fmt::basic_format_string<T, Args...> fmt) {
      |                                                      ^~~~~~~~~~~~~~~~~~~

Seems some compiler selection is broken.

I'm not quite sure that it's spdlog that's causing the issue because it worked well with fmt 11.0.2.

Originally posted by @vitaut in fmtlib/fmt#4275 (comment)

@KarlStraussberger KarlStraussberger changed the title error: ‘template<class T, class ... Args> fmt::v11::basic_string_view<Char> spdlog::details::to_string_view’ redeclared as different kind of entity (Issue #4275) These are spdlog, not {fmt} functions. Please report to https://github.com/gabime/spdlog. error: ‘template<class T, class ... Args> fmt::v11::basic_string_view<Char> spdlog::details::to_string_view’ redeclared as different kind of entity Dec 26, 2024
@tt4g
Copy link
Contributor

tt4g commented Dec 27, 2024

Maybe already fixed (#3301).

@KarlStraussberger
Copy link
Author

Works. Thank you.

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