-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcc11: Update back to 11.3 on Darwin #196565
Conversation
No objection from me, but I won't do a proper review or testing of this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
url = "https://github.com/Homebrew/formula-patches/raw/8184603db1db7da12d0fbfa47e1329ba0e21558e/gcc/gcc-11.3.0-arm.diff"; | ||
sha256 = "sha256-sEClJ7BzXJccLm+V6LF9Ioe4o/aV3iJ4akvOVoPG5pA="; | ||
}) | ||
./libgcc-darwin-libemutls-no-shared.patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you've submitted this upstream, please include a link
Even though this is probably too late for 22.11, is it possible to get a jobset so we can test in the meantime? |
Yes, but I believe it's inconvenient for the current commits. They're in a place where even stdenv binaries are missing, and I'm not speaking of possible regressions that haven't been discovered there yet. Better do that with this pair of commits based on recent |
And I'm personally convinced that this PR would fall under that 22.11 freeze. The |
Builds in progress at https://hydra.nixos.org/jobset/nixpkgs/pr-196565-darwin-gcc11.3 |
Though I'm surprised that the testing branch is based on a commit from August (0f5230c). |
Oops, the local |
So, diffs in failures can be observed (after rebuilds progress) like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WFM on x86_64-darwin.
Let's put this on hold while we wait for clarifications from @Ericson2314 regarding the
|
It doesn't seem to be needed.
293a5a4
to
458a94d
Compare
In the interest of pushing this forward, let's remove the |
458a94d
to
ddb5ea3
Compare
I changed the patch URL as suggested and tested on |
It's been a week, and here are the results of the new eval:
There are a lot of timeouts with empty logs which I'm not sure how to fix. |
Those were issues in the builder machines; I can restart the builds. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
# On x86_64-darwin, building libgcc suffers from some different issues with 11.3.0. | ||
version = if stdenv.isDarwin then | ||
"${majorVersion}.2.0" else "${majorVersion}.3.0"; | ||
version = "${majorVersion}.3.0"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of manually setting majorVersion we should use lib.versions.major version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be done, but on all versions consistently... and it doesn't seem very related to this PR.
Description of changes
Update back to GCC 11.3 for Darwin, with the patchset used by Homebrew. Removed
libgcc
dependency fromgraphite2
as it does not appear to be needed (tested onaarch64-darwin
andx86_64-darwin
).Description of removed patch
#171792 downgraded gcc11 to 11.2 because it broke the standalone
libgcc
:Because we build the standalone
libgcc
with--disable-shared
,libemutls_s.o
is natually not built. I wrote a small patch to fix it.Ref: #137877
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes