Skip to content

[Backport staging-26.05] cc-wrapper, gcc, gnat, gnat-bootstrap: fix GCC 13 and GNAT 13/14/15 builds on darwin - #525192

Closed
zinzilulo wants to merge 2 commits into
NixOS:staging-26.05from
zinzilulo:backport-522847-to-staging-26.05
Closed

zinzilulo wants to merge 2 commits into
NixOS:staging-26.05from
zinzilulo:backport-522847-to-staging-26.05

Conversation

@zinzilulo

Copy link
Copy Markdown
Contributor

Backport of #522847.

Things done

@nixpkgs-ci nixpkgs-ci Bot added 12.first-time contribution This PR is the author's first one; please be gentle! 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. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 4.workflow: backport This targets a stable branch labels May 28, 2026
@sempiternal-aurora

Copy link
Copy Markdown
Contributor

Just to check, you have built them from this staging branch? I just can't run the builds myself now to check, but if everything builds on your machine this PR should be good. We branched off so recently that the diff applies sanely, so if it builds, I'm happy.

@zinzilulo

Copy link
Copy Markdown
Contributor Author

Just to check, you have built them from this staging branch? I just can't run the builds myself now to check, but if everything builds on your machine this PR should be good. We branched off so recently that the diff applies sanely, so if it builds, I'm happy.

All of the packages I tested build successfully, so should be safe to merge.

@sempiternal-aurora sempiternal-aurora 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.

LGTM, changes aren't visibly different from the unstable branch, and as it builds I'm happy

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels May 28, 2026
@sempiternal-aurora

Copy link
Copy Markdown
Contributor

Ah, I just noted a regression with this patchset, gnat13 fails to build on linux platforms. The patch added to fix the trampoline abi for gnat13 only applies atop the iains darwin patches, not cleanly to the linux patchset. Will post a PR soon with these changes, but we likely can't merge this until that is merged into staging

@zinzilulo

zinzilulo commented May 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Ah, I just noted a regression with this patchset, gnat13 fails to build on linux platforms. The patch added to fix the trampoline abi for gnat13 only applies atop the iains darwin patches, not cleanly to the linux patchset. Will post a PR soon with these changes, but we likely can't merge this until that is merged into staging

Sorry about the oversight. I’ve added a commit to check the target platform.

@zinzilulo zinzilulo closed this May 28, 2026
@zinzilulo zinzilulo reopened this May 28, 2026

@nixpkgs-commit-check nixpkgs-commit-check Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This report is automatically generated by the PR / Check / cherry-pick CI workflow.

Some of the commits in this PR require the author's and reviewer's attention.

Please follow the backporting guidelines and cherry-pick with the -x flag.
This requires changes to the unstable master and staging branches first, before backporting them.

Occasionally, commits are not cherry-picked at all, for example when updating minor versions of packages which have already advanced to the next major on unstable.
These commits can optionally be marked with a Not-cherry-picked-because: <reason> footer.

If you need to merge this PR despite the warnings, please dismiss this review shortly before merging.

Warning

Couldn't locate the cherry-picked commit's hash in the commit message of 50af030.

Hint: The full diffs are also available in the runner logs with slightly better highlighting.

@zinzilulo
zinzilulo marked this pull request as draft May 28, 2026 15:40
@zinzilulo

Copy link
Copy Markdown
Contributor Author

Ah, I just noted a regression with this patchset, gnat13 fails to build on linux platforms. The patch added to fix the trampoline abi for gnat13 only applies atop the iains darwin patches, not cleanly to the linux patchset. Will post a PR soon with these changes, but we likely can't merge this until that is merged into staging

Sorry about the oversight. I’ve added a commit to check the target platform.

Since I don’t have access to x86_64 machines, could you help confirm that there are no other regressions on Linux and Darwin platforms?

@sempiternal-aurora

sempiternal-aurora commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

Ah, I just noted a regression with this patchset, gnat13 fails to build on linux platforms. The patch added to fix the trampoline abi for gnat13 only applies atop the iains darwin patches, not cleanly to the linux patchset. Will post a PR soon with these changes, but we likely can't merge this until that is merged into staging

Sorry about the oversight. I’ve added a commit to check the target platform.

Since I don’t have access to x86_64 machines, could you help confirm that there are no other regressions on Linux and Darwin platforms?

For darwin, you can actually just pass --option system x86_64-darwin, and as long as you have rosetta installed, it'll just run the build as if you had an intel mac. However, if you could instead wait until #525243 hits staging, then you can git cherry-pick -x that commit and not cause issues. We want to avoid having commits that aren't in staging in the different stable staging branches as much as possible.

But yes, happy to confirm that nothing breaks eval when everything is up for it.

@zinzilulo

Copy link
Copy Markdown
Contributor Author

Ah, I just noted a regression with this patchset, gnat13 fails to build on linux platforms. The patch added to fix the trampoline abi for gnat13 only applies atop the iains darwin patches, not cleanly to the linux patchset. Will post a PR soon with these changes, but we likely can't merge this until that is merged into staging

Sorry about the oversight. I’ve added a commit to check the target platform.

Since I don’t have access to x86_64 machines, could you help confirm that there are no other regressions on Linux and Darwin platforms?

For darwin, you can actually just pass --option system x86_64-darwin, and as long as you have rosetta installed, it'll just run the build as if you had an intel mac. However, if you could instead wait until #525243 hits staging, then you can git cherry-pick -x that commit and not cause issues. We want to avoid having commits that aren't in staging in the different stable staging branches as much as possible.

But yes, happy to confirm that nothing breaks eval when everything is up for it.

Glad it works, I'll close this PR then.

@zinzilulo zinzilulo closed this May 28, 2026
@zinzilulo
zinzilulo deleted the backport-522847-to-staging-26.05 branch June 2, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 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.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants