GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: compile against fmt 10 and 11 by melonakos · Pull Request #3722 · arrayfire/arrayfire

Conversation

@melonakos

@melonakos melonakos commented Sep 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

fmt 10 made formatter::format() const and fmt 11 moved fmt::join to ranges.h, so ArrayFire no longer builds against a system fmt on Arch, Homebrew, or recent Ubuntu:

error C2662: 'fmt::v11::formatter<arrayfire::common::Version,char,void>::format' ... cannot convert 'this' pointer from 'const formatter' to 'formatter &'

Every custom formatter's format() is now const, ranges.h is included where join is used, and the Version formatter combines its parsed flags into locals instead of mutating them, so {:Mm} still renders 1.2 rather than 1.2.0 (the patch on #3596 lost that, and the OpenCL backend uses it for -cl-std). The two debug headers that nothing includes also stop naming spdlog's bundled fmt directly. Built the CPU backend against fmt 11.2 / spdlog 1.15 and against the pinned fmt 8.1 / spdlog 1.9, and the CUDA backend against fmt 8; a standalone probe compiles the CUDA and debug formatter headers under both fmt versions with identical output. The OpenCL file was not built here. Fixes #3692 and #3596.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
melonakos added 2 commits September 10, 2026 16:28
@melonakos
build: compile against fmt 10 and 11
ac71690
fmt 10 made formatter::format() const and fmt 11 moved fmt::join to ranges.h, so ArrayFire no longer built against a system fmt (Arch, Homebrew, Ubuntu 24.10+). Make every custom formatter's format() const, include ranges.h where join is used, and turn the Version formatter's in-place flag mutation into locals so "{:Mm}" still renders 1.2 rather than 1.2.0. Output is unchanged under the pinned fmt 8. Fixes #3692 and #3596.
@melonakos
build: include spdlog's fmt wrapper in the debug headers
a367d46
debug.hpp and NodeIO.hpp included spdlog/fmt/bundled/format.h directly, which does not exist when spdlog is built against an external fmt. Nothing in src includes these headers today, but they now compile under both layouts.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Build] Error building ArrayFire with fmt 11.2.0

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@melonakos
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.