gcc/11: apply upstream fix 103910 so openjdk builds#212363
gcc/11: apply upstream fix 103910 so openjdk builds#212363vcunat merged 1 commit intostaging-nextfrom unknown repository
Conversation
vcunat
left a comment
There was a problem hiding this comment.
fetchurl won't have a stable hash in this case. This web generates the patch dynamically - there's even git version in the output. I'd most likely just add the file into nixpkgs git just as others. (fetchpatch is problematic during stdenv bootstrapping)
|
(On current |
Sorry about the slow reply. I'm back now and dealing with the backlog. |
|
Well, maybe this won't be important anymore, as gcc12 is becoming the default and shouldn't need this fix... |
Our openjdk derivations fail to build with `-march=opteron` (via either `NIX_CFLAGS_COMPILE` or `hostPlatform.gcc.arch`). This was fixed upstream in gcc12 but not carried back to gcc11: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=d243f4009d8071b734df16cd70f4c5d09a373769 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103910 Since gcc11 is still nixpkgs' primary compiler, this PR cherry-picks the fix out of gcc12. Unfortunately since `-march=` can be added after the `gcc11` derivation is built we can't apply this patch conditionally (which we don't usually do anyways).
|
OK, why not. |
|
Backport to staging-22.11, I guess? There gcc11 remains the default for |
|
Successfully created backport PR for |
Description of changes
Our openjdk derivations fail to build with
-march=opteron(via eitherNIX_CFLAGS_COMPILEorhostPlatform.gcc.arch). This was fixed upstream in gcc12 but not carried back to gcc11:https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=d243f4009d8071b734df16cd70f4c5d09a373769
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103910
Since gcc11 is still nixpkgs' primary compiler, this PR cherry-picks the fix out of gcc12.
Unfortunately since
-march=can be added after thegcc11derivation is built we can't apply this patch conditionally (which we don't usually do anyways).Things done
sandbox = trueset 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.shto update generated release notes