Skip to content

Conversation

@b1ackviking
Copy link
Contributor

Summary

Changes to recipe: fmt/11.2.0 to fix build errors with clang 21 on macOS

Motivation

fmt/11.2.0 build fails with clang 21 + libc++-21 on macOS (installed from homebrew) as described in fmtlib/fmt#4520

Details

Applied patch from this commit: fmtlib/fmt@f434546


@CLAassistant
Copy link

CLAassistant commented Sep 16, 2025

CLA assistant check
All committers have signed the CLA.

@b1ackviking
Copy link
Contributor Author

b1ackviking commented Sep 16, 2025

It is possible that other fmt versions may require this patch to build with libc++-21 since it stopped providing malloc and free via transitive includes. I can not verify that at the moment.

UPD: I managed to check some other versions:

  • 11.1.1, 11.1.3, 11.1.4, 11.2.0 are affected with the same error, should I add the same patch to them?
  • <=11.1.0 build fails with another error 'call to consteval function XXX is not a constant expression', I am not sure if it's worth fixing here

@uilianries
Copy link
Member

@b1ackviking The fmt just released the version 12.0 with that proper fix: fmtlib/fmt#4477. Would it be enough to update your dependency to use fmt/12 instead? (Need a PR for a bump version first).

@b1ackviking
Copy link
Contributor Author

@uilianries Thanks for the info. Yes, I can switch my code to use 12.0.0, it works fine for me.

I have just opened a PR for adding 12.0.0 to CCI #28418

Should I close this one now?

@uilianries uilianries mentioned this pull request Sep 18, 2025
3 tasks
@uilianries
Copy link
Member

@b1ackviking Thank you for your quick action with that PR! Don't worry about this one, I marked your new PR to close this one once it's merged. Regards!

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

Successfully merging this pull request may close these issues.

3 participants