Skip to content

gcc: 15 -> 16 - #537781

Merged
vcunat merged 4 commits into
NixOS:stagingfrom
whispersofthedawn:gcc16
Sep 22, 2026
Merged

vcunat merged 4 commits into
NixOS:stagingfrom
whispersofthedawn:gcc16

Conversation

@whispersofthedawn

@whispersofthedawn whispersofthedawn commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

changes: https://gcc.gnu.org/gcc-16/changes.html
porting guide: https://gcc.gnu.org/gcc-16/porting_to.html

see #537781 (comment) for a reasonably up-to-date triaging of current failures.

Things done

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation labels Jul 2, 2026
Comment thread doc/release-notes/rl-2611.section.md Resolved
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 2.status: merge conflict This PR has merge conflicts with the target branch labels Aug 28, 2026
@whispersofthedawn
whispersofthedawn force-pushed the gcc16 branch 2 times, most recently from 24f1097 to 41bbad1 Compare August 30, 2026 14:15
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 30, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Sep 4, 2026
@whispersofthedawn
whispersofthedawn force-pushed the gcc16 branch 2 times, most recently from ae9e57e to de820b4 Compare September 4, 2026 17:41
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Sep 4, 2026
@whispersofthedawn

whispersofthedawn commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor Author

with https://github.com/microsoft/onnxruntime/pull/31346#issuecomment-5688923246 from upstream, i can confirm we are now able to build onnxruntime with gcc 16, just by specifying this patch (i did so on top of wip-gcc-16). i'll wait a moment to see if upstream has a way they want to solve this, but this should be a path forward for us and solves the biggest remaining blocker :D

diff --git a/pkgs/by-name/on/onnxruntime/package.nix b/pkgs/by-name/on/onnxruntime/package.nix
index b1a972d4d2..1850f55e30 100644
--- a/pkgs/by-name/on/onnxruntime/package.nix
+++ b/pkgs/by-name/on/onnxruntime/package.nix
@@ -293,6 +293,7 @@
     (lib.cmakeBool "onnxruntime_USE_MIGRAPHX" rocmSupport)
     (lib.cmakeBool "onnxruntime_USE_COREML" coremlSupport)
     (lib.cmakeBool "onnxruntime_ENABLE_LTO" (!cudaSupport || cudaPackages.cudaOlder "12.8"))
+    (lib.cmakeFeature "CMAKE_CXX_FLAGS" "-D_GLIBCXX_USE_OLD_GENERATE_CANONICAL")
   ]
   ++ lib.optionals openvinoSupport [
     (lib.cmakeBool "onnxruntime_USE_OPENVINO" true)

@vcunat

vcunat commented Sep 21, 2026

Copy link
Copy Markdown
Member

So you think this is ready to be included in the upcoming staging-next iteration? We're tentatively planning to upgrade glibc by a year of development in the same iteration as well 😅

@whispersofthedawn

whispersofthedawn commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor Author

So you think this is ready to be included in the upcoming staging-next iteration? We're tentatively planning to upgrade glibc by a year of development in the same iteration as well 😅

i think so! the main work that remains is the whack-a-mole that will need to continue to fix the regressions in leaf packages/ones with a few reverse dependencies. if we want to have that happen, we're probably better off doing this on master, since we'll have more eyes on it helping out. this is especially true with the release of 26.11 coming in just two months, i think. i figure we should probably only delay if we want to push this until after branch off, but personally i think this is fine to get in.

@vcunat
vcunat added this pull request to the merge queue Sep 22, 2026
Merged via the queue into NixOS:staging with commit 15f3405 Sep 22, 2026
26 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Stdenv Sep 22, 2026
@whispersofthedawn
whispersofthedawn deleted the gcc16 branch September 22, 2026 11:03
@ryand56 ryand56 mentioned this pull request Sep 25, 2026
4 of 13 tasks
@trofi

trofi commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

liquidwar regressed in master. Proposed fix:

@ryan4yin ryan4yin mentioned this pull request Oct 5, 2026
4 of 13 tasks
@trofi

trofi commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

scd2html regressed in master. Proposed fix:

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

Labels

6.topic: stdenv Standard environment 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

Archived in project
Status: Done

Development

Successfully merging this pull request may close these issues.

9 participants