gcc: backport cda41ce0 from gcc 11.1.0 if isPower64 && isMusl #170400
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes
A bug in libgcc, which manifests when building static binaries using musl-libc, was fixed in gcc 11.1.0. The fix has not been backported to gcc 10. This commit cherry-picks the commit from upstream and applies it in the case
(isPower64 && isMusl)
where it matters:https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=cda41ce0e8414aec59e6b9fbe645d96e6e8193e2
The big payoff here is that this now works:
... that, plus the bootstrap-files (#168199, merged) mean that people can now try out nixpkgs on powerpc64le without having to figure out which bazillion different packages from their host distribution are needed in order for nix to compile. They can just grab a statically-linked nix binary (maybe Hydra could build this?) and bootstrap using that.
Things done
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)