gcc: if hostPlatform.isPower64, configure with "--with-long-double-64"#170402
Conversation
A bug in libgcc which manifests when building static binaries using musl-libc was fixed in gcc 11.1.0, but 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
Author
|
Alright, ::crosses fingers:: @ofborg build pkgsCross.powernv.pkgsStatic.nix_2_4 |
This was referenced Apr 26, 2022
This commit causes powerpc*-*-gnu to be configured with 64-bit `long double` (the same as ordinary `double`) rather than the nonstandard, non-IEEE "IBM double" format from AIX. Support for using only IEEE 128-bit doubles in glibc is not yet ready. This resolves a large number of package test failures caused by weird nonstandard floating-point semantics. There is a long comment included in gcc/common/platform-flags.nix explaining the situation and the reasoning.
Author
|
Getting gcc, mpfr, and glibc to play nice together with anything other than the nonstandard IBM doubles is a major struggle. I'm shelving this for now and will simply mark packages with |
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Update 2022-Apr-28: I think we have a working combination here, and
pkgsStaticnow interacts correctly with the rest of nixpkgs, the way it does on arm64 and x86, with no weird link failures. Still marked as draft while I finish rebuilding the world and use this for a while on my workstation.This PR builds on #169378 (first five commits) and #170400 (second-to-last commit). Only the final commit is unique to this PR.
Description of changes
This commit causes
powerpc*-*-gnuto be configured with 64-bitlong double(the same as ordinarydouble) rather than the nonstandard, non-IEEE "IBM double" format from AIX.This hopefully resolves a large number of package test failures caused by weird nonstandard floating-point semantics.
There is a rather long comment included in gcc/common/platform-flags.nix explaining the situation and the reasoning.
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/)