-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 in CMake build on MacOS with Clang #4173
Comments
What clang version do you use? Could you provide a godbolt repro? |
Clang version is 14.0.0.14000029. The error does not come from my own code, but from fmt's |
clang 14 should support |
My understanding: Apple clang is similar to but not the same as clang, and the version numbers while similar are apple's own. Ie. just because it works in llvm's clang 14 doesn't mean it will work in appleclang 14, as evidenced Currently the Lines 396 to 398 in 891c9a7
so we could expand it to rule out appleclang 14. I happen to have a macbook with apple clang: @Khrysys you should be able to get round this error by defining add_compile_definitions(DFMT_USE_BITINT=0)
add_subdirectory(fmt) As I'm not certain if you can use |
This seems like this should just be an easy, couple line PR then. I'll add that definition and see what happens when I get back home. |
I think we can bump clang requirement to 15. It's a very niche feature anyway. |
For appleclang, fixes issue fmtlib#4173
I'm building a library that extensively uses fmt for it's debugging and error system, and on MacOS the build fails with the following error in my actions builds. The project uses C++20 and adds fmt as a subdirectory. It appears to be a clang specific problem.
The error then seems to cascade down and cause many other errors in the file, but it appears to be centered around this one. I'm sure it's probably some error on my end, but multiple separate pieces have this error, so I'm not sure where it comes from.
The text was updated successfully, but these errors were encountered: