Skip to content

gcc: update to 14.4 and 15.3, cleanup patches on darwin - #531338

Merged
vcunat merged 10 commits into
NixOS:stagingfrom
sempiternal-aurora:gcc-15.3
Jul 15, 2026
Merged

vcunat merged 10 commits into
NixOS:stagingfrom
sempiternal-aurora:gcc-15.3

Conversation

@sempiternal-aurora

@sempiternal-aurora sempiternal-aurora commented Jun 13, 2026 •

Copy link
Copy Markdown
Contributor

Standard gcc version bump, in all the places that I can find 15.2.0. Also updated the various minimal-bootstrap mpc versions to 1.4.1 where it works.

https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=15.3

Built on x86_64-linux: gcc, stdenv, gccNGPackages_15.gcc, minimal-bootstrap.gcc-latest, stdenv.minimal-bootstrap.test
Built on aarch64-linux: gcc, stdenv, gccNGPackages_15.gcc
Built on aarch64-darwin: gcc

Edit: some of the mirrors haven't synced the new files yet. I personally had to force the use of the ftp://ftp.fu-berlin.de to get the source.

Things done

@sempiternal-aurora sempiternal-aurora changed the title gcc, gccNGPackages_gcc.15.3.0, minimal-bootstrap.gcc-latest: 15.2.0 -> 15.3.0 gcc, gccNGPackages_15.gcc, minimal-bootstrap.gcc-latest: 15.2.0 -> 15.3.0 Jun 13, 2026
@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. labels Jun 13, 2026
@sempiternal-aurora
sempiternal-aurora force-pushed the gcc-15.3 branch 2 times, most recently from c47baf0 to b8e53be Compare June 13, 2026 13:12

@Gskartwii Gskartwii left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal-bootstrap diff LGTM, thanks!

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Jun 13, 2026
@sempiternal-aurora

Copy link
Copy Markdown
Contributor Author

Also, I have built python3Packages.numpy on all platforms, which requires gfortran to compile openblas.

@sempiternal-aurora sempiternal-aurora added the backport staging-26.05 Backport PR automatically label Jun 19, 2026
@emilazy emilazy mentioned this pull request Jun 26, 2026
3 of 14 tasks

@emilazy emilazy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ve updated the Darwin patches in #519065 so that we don’t have to vendor a fixup. Otherwise LGTM.

@sempiternal-aurora
sempiternal-aurora force-pushed the gcc-15.3 branch 2 times, most recently from d95ac56 to bbf8d90 Compare June 27, 2026 04:50
@sempiternal-aurora

Copy link
Copy Markdown
Contributor Author

Everything builds with the current revision. Tested building stdenv, stdenvNoCC, gcc, gccNGPackages_15.gcc, gfortran, and python3Packages.numpy on all aarch64-linux, aarch64-darwin, x86_64-linux. numpy fails to build on aarch64-darwin because of a patch failing to apply, but this is an unrelated error, and openblas still builds, which requires gfortran.

Note, all these changes were tested with --option substitute false, it seems that some builds are poisoned or something in the cache, so that it breaks with the error that caused #532074 to get reverted, especially on aarch64-linux.

@sempiternal-aurora sempiternal-aurora mentioned this pull request Jun 27, 2026
1 of 13 tasks
@Hythera Hythera mentioned this pull request Jun 28, 2026
2 of 13 tasks
@sempiternal-aurora sempiternal-aurora changed the title gcc, gccNGPackages_15.gcc, minimal-bootstrap.gcc-latest: 15.2.0 -> 15.3.0 gcc, gccNGPackages_15.gcc, minimal-bootstrap.gcc-latest, gnat-bootstrap: 15.2.0 -> 15.3.0 Jul 7, 2026
@sempiternal-aurora sempiternal-aurora changed the title gcc, gccNGPackages_15.gcc, minimal-bootstrap.gcc-latest, gnat-bootstrap: 15.2.0 -> 15.3.0 gcc: update to 14.4 and 15.3, cleanup patches on darwin Jul 7, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from philiptaron July 7, 2026 13:35
@nixpkgs-ci nixpkgs-ci Bot added the 6.topic: fetch Fetchers (e.g. fetchgit, fetchsvn, ...) label Jul 7, 2026
@ofborg ofborg Bot added the 6.topic: darwin Running or building packages on Darwin label Jul 8, 2026
@vcunat

vcunat commented Jul 14, 2026

Copy link
Copy Markdown
Member

gcc14 and gcc16 fail to build on current staging (for *-linux), so that makes merging this PR difficult. The logs go like

options.cc:27216:2: error: #error 0Wabsolute-value does not have a Var() flag

@sempiternal-aurora

Copy link
Copy Markdown
Contributor Author

gcc14 and gcc16 fail to build on current staging (for *-linux), so that makes merging this PR difficult. The logs go like

options.cc:27216:2: error: #error 0Wabsolute-value does not have a Var() flag

This same error occurs on darwin, but there gcc13 and gcc15 also fail with different errors, missing symbols. Just testing if all this is fixed by the gawk revert, but if not then I'll do a bisect when I have time.

emilazy added 2 commits July 15, 2026 16:21
I’m pretty sure these should no longer be required after the
toolchain update and SDK rework.
emilazy and others added 8 commits July 15, 2026 17:21
The upstream issue was fixed, the branch has changes relevant to
`x86_64-darwin` too, and you don’t really want to target Darwin
without these patches.

We reorder the deployment target patch after the patches, as they touch
the same file, and apply it on AArch64 for all versions (but for Darwin
targets rather than hosts, which should be the relevant case anyway).

Co-Authored-By: sempiternal-aurora <[email protected]>
Also update mpc at the same time, 1.3.1 -> 1.4.1
Add an extra one from https://gcc.gnu.org/mirrors.html, and comment out
old ones that don't seem to be keeping up with current releases
Merged via the queue into NixOS:staging with commit 86ce757 Jul 15, 2026
1 check failed
@nixpkgs-ci

nixpkgs-ci Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Backport failed for staging-26.05, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin staging-26.05
git worktree add -d .worktree/backport-531338-to-staging-26.05 origin/staging-26.05
cd .worktree/backport-531338-to-staging-26.05
git switch --create backport-531338-to-staging-26.05
git cherry-pick -x 400c70ff320a7ab096db446b7b285bed10b1f6ab 28aa84b9648a1c95e1ee9de77aa2afdd2b2c4406 a61ec3a1137ad29a5302366f792a0f4f275152a8 5e2a83fd87a0a371818e926a8ef3522b95d1d335 572ca369d1f34d887c59c69e43f1d9682420b723 4dcb3edca2e141e55346ae5aff956aa8101e8ad8 7cf1e2d7fdb64248cc5261e10f29fa8467c40d5b 268f6aa7fa687a99e92a3a0d39239d223ffddd36 a75ad61ad2a2e91417099edf7a0efec85698b6a4 48c7a43054e15a8dd477f964435a8452043783af

@vcunat

vcunat commented Aug 12, 2026

Copy link
Copy Markdown
Member

Too risky/complex to backport to 26.05?

@sempiternal-aurora

Copy link
Copy Markdown
Contributor Author

Too risky/complex to backport to 26.05?

#557566

@sempiternal-aurora sempiternal-aurora added the 8.has: port to stable This PR already has a backport to the stable release. label Aug 29, 2026
@sempiternal-aurora
sempiternal-aurora deleted the gcc-15.3 branch September 1, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: fetch Fetchers (e.g. fetchgit, fetchsvn, ...) 8.has: failed backport 8.has: package (update) This PR updates a package to a newer version 8.has: port to stable This PR already has a backport to the stable release. 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: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. backport staging-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants