Repository navigation
Conversation
There was a problem hiding this comment.
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.
Sometimes it is not possible to cherry-pick exactly the same patch.
This most frequently happens when resolving merge conflicts.
The range-diff will help to review the resolution of conflicts.
If you need to merge this PR despite the warnings, please dismiss this review shortly before merging.
Warning
Difference between e3325b5 and original 481208b may warrant inspection.
Show diff
@@ Metadata
## Commit message ##
cc-wrapper, gcc, gnat, gnat-bootstrap: fix GCC 13 and GNAT 13/14/15 builds on darwin
+ (cherry picked from commit 481208bdff2dc2f61d4f4fde51e6bd2a939f7d68)
+
## pkgs/build-support/cc-wrapper/default.nix ##
@@
+ nixSupport ? { },
isGNU ? false,
isClang ? cc.isClang or false,
- isFlang ? cc.isFlang or false,
+ isAlireGNAT ? false,
isZig ? cc.isZig or false,
isArocc ? cc.isArocc or false,
@@ pkgs/build-support/cc-wrapper/default.nix: stdenvNoCC.mkDerivation {
+ # Injecting CFlags and LDFlags causes duplicate rpath at linking
+ # stage for Alire GNAT. Skip adding flags here.
+ + optionalString (!nativeTools && !isArocc && !isAlireGNAT) ''
- ccLDFlags=()
- ccCFlags=()
++ ccLDFlags=()
++ ccCFlags=()
if [ -e "${cc_solib}/lib64" -a ! -L "${cc_solib}/lib64" ]; then
+ ccLDFlags+=" -L${cc_solib}/lib64"
+ ccCFlags+=" -B${cc_solib}/lib64"
@@ pkgs/build-support/cc-wrapper/default.nix: stdenvNoCC.mkDerivation {
touch "$out/nix-support/gnat-cflags"
touch "$out/nix-support/gnat-ldflags"
basePath=$(echo $cc/lib/*/*/*)
-- ccCFlags+=("-B$basePath" "-I$basePath/adainclude")
+- ccCFlags+=" -B$basePath -I$basePath/adainclude"
gnatCFlags="-I$basePath/adainclude -I$basePath/adalib"
echo "$gnatCFlags" >> $out/nix-support/gnat-cflags
@@ pkgs/development/compilers/gcc/common/dependencies.nix: in
texinfo
which
- gettext
- autoconf269
]
+ ++ optionals (!is13) [ gettext ]
++ optionals (perl != null) [ perl ]
@@ pkgs/development/compilers/gcc/default.nix
}:
@@ pkgs/development/compilers/gcc/default.nix: let
- majorVersion = versions.major version;
+ is14 = majorVersion == "14";
is13 = majorVersion == "13";
+ appleSdk = if langAda && !is13 then apple-sdk_15 else apple-sdk_14;
@@ pkgs/development/compilers/gcc/default.nix: let
- apple-sdk
+ apple-sdk_14
+ apple-sdk_15
- autoconf269
binutils
buildPackages
+ cargo
@@ pkgs/development/compilers/gcc/default.nix: let
gnat-bootstrap
gnused
@@ pkgs/top-level/all-packages.nix: with pkgs;
- && stdenv.buildPlatform.isx86_64
then
- overrideCC stdenv gnat-bootstrap14
-+ overrideCC gccStdenv gnat-bootstrap14
- else
- stdenv;
- }
-@@ pkgs/top-level/all-packages.nix: with pkgs;
- stdenv.hostPlatform == stdenv.targetPlatform
- && stdenv.buildPlatform == stdenv.hostPlatform
- && stdenv.buildPlatform.isDarwin
-- && stdenv.buildPlatform.isx86_64
- then
-- overrideCC stdenv gnat-bootstrap14
+ overrideCC gccStdenv gnat-bootstrap14
else
stdenv;
Hint: The full diffs are also available in the runner logs with slightly better highlighting.
…uilds on darwin (cherry picked from commit 481208b)
zinzilulo
force-pushed
the
backport-522847-to-staging-25.11
branch
from
May 28, 2026 12:49
f7efd14 to
e3325b5
Compare
5 of 14 tasks
Contributor
Author
|
Closed as it breaks gnat13 on x86_64/aarch64-linux and x86_64-darwin. |
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.
Backport of #522847.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.