Skip to content

[staging-next] rocmPackages.rocprofiler-sdk: fix build with fmt 12.2.0 - #551149

Merged
vcunat merged 1 commit into
NixOS:staging-nextfrom
whispersofthedawn:p/rocmPackages.rocprofiler-sdk
Aug 11, 2026
Merged

vcunat merged 1 commit into
NixOS:staging-nextfrom
whispersofthedawn:p/rocmPackages.rocprofiler-sdk

Conversation

@whispersofthedawn

@whispersofthedawn whispersofthedawn commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

fmt 12.2.0 changes the meaning of fmt/core.h so it no longer includes fmt::format, so this upstream commit switches to the correct header. this backports the relevant parts of an upstream commit as upstream has diverged significantly from 7.2.3: ROCm/rocm-systems@e2f5885. this is ugly and sucks but i don't know if there's a better way to do it. it's at least simple and trivially verifiable, though.

ref: #550199 (comment)
see similar-ish for rocprofiler-register: #550525

Things done

fmt 12.2.0 changes the meaning of fmt/core.h so it no longer includes
fmt::format, so this upstream commit switches to the correct header.
this backports the relevant parts of an upstream commit as upstream has
diverged significantly from 7.2.3:
ROCm/rocm-systems@e2f5885
@nixpkgs-ci
nixpkgs-ci Bot requested a review from a team August 10, 2026 13:52
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: rocm ROCm is an Advanced Micro Devices software stack for graphics processing unit programming. labels Aug 10, 2026
@vcunat

vcunat commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

🤔 I now glanced at the announcement. Maybe it's easier and cleaner to just build with -DFMT_DEPRECATED_HEAVY_CORE for now?

@whispersofthedawn

whispersofthedawn commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor Author

i don't think it's super worth it to deviate, it's mostly a simple fix for upstreams and packages in nixpkgs can always pin fmt_11 if they want to; we seem to keep a lot of versions of this package around. i haven't seen a ton of failures for it either so i don't think the whack-a-mole is too bad.

it's only messy here because i wanted to take the patch since upstream had a fix, but pinning fmt_11 would work (though I'd be happy to do that if folks prefer)

@whispersofthedawn

Copy link
Copy Markdown
Contributor Author

errr, wait, i misread the announcement; i thought that was a flag for fmt itself but i see that's a downstream thing. would you prefer adding that here? i don't particularly mind either.

@vcunat

vcunat commented Aug 10, 2026

Copy link
Copy Markdown
Member

I don't know. I just noticed, so I thought I'd post about it at least.

@vcunat
vcunat added this pull request to the merge queue Aug 11, 2026
Merged via the queue into NixOS:staging-next with commit 9764bdf Aug 11, 2026
28 checks passed
@whispersofthedawn
whispersofthedawn deleted the p/rocmPackages.rocprofiler-sdk branch August 11, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: rocm ROCm is an Advanced Micro Devices software stack for graphics processing unit programming. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants