Repository navigation
gnat{,13,14,15,16}Packages: 25.0.0 -> 26.0.0, fix build - #521558
sempiternal-aurora wants to merge 2 commits into
Conversation
d4fdd4b to
aec8d19
Compare
aec8d19 to
5bfa280
Compare
|
Hi @NixOS/darwin-maintainers, hope you've had a wonderful day. I wanted to ping you because I've been trying to fix the gnat build issue on darwin, but haven't been able to solve it myself, and would like some outside help to see if there's anything I've missed. The Problem
Now, we need to use an externally built version of GCC to build gnat, as building ada support in gcc requires gcc built with ada support, thus we use the prebuilt binaries from the alire-project/GNAT-FSF-BUILDS project, packaged as I'm not quite sure why, but whenever this was tested locally on my machine, the following option was append to the gcc options list visible when Fixes I've triedAdding extra c flags to the cc-wrapper setting Adding I honestly don't know what else to try. I'm not as experienced with c building on darwin, especially with gcc, so I'm not sure what else to do to allow the external gcc to find the nixpkgs provided apple-sdk instead of the out of sandbox one provided by the xcode command line tools. Sorry if this is long/just a ramble, but if anyone has more suggestions for me to try I'd love the input. Thank you for any help you can give, and I hope you have a wonderful day! AppendixThe full configure options that the external gcc is built with are: |
Hi, you might want to check out my fix at #522847, which builds on master cc53fdd. It is currently stuck in the review process. |
|
Okay, the darwin problems will be mostly fixed with #522847, so I'll remove that stuff from here. I'll also split out the gnat-bootstrap15 changes into it's own PR, leaving this one just for the gnatPackages updates. |
7cc5299 to
b19ab4d
Compare
|
Current state,
|
b19ab4d to
4809759
Compare
|
Current state of this PR
|
4809759 to
1bb6c38
Compare
|
Managed to fix the gnatprove build failure. I had the final and prev arguments to overrideAttrs' closure argument backwards, so even though I thought I was getting gnatcoll 25, I was actually getting 26 ;-; Anyways, this means it should be ready for review now! |
1bb6c38 to
fbcc92c
Compare
|
with `gnat16Packages.gnatprove I get an info, that the knowledge base can't find the tool chain. IIRC there was a patch to the knowledge base in gprbuild to address nixos specifics. In all-packages.nix the gnatPackages is still at gnat13Packages, it could also be updated to be in line with the default gnat version. Othrewise I can compile, run and proof a small gpr ada/spark project with all gnat / gnatprove / gprbuild versions. |
Thanks for looking at this! It'll take me a few days to look into the gnatprove toolchain detection, but hopefully it'll be quick. For the gnat bump, I actually split it into a separate PR so it'll get the staging changes and properly work with the new |
Also fix gnatprove builds by pinning gpr2 versions
fbcc92c to
9cf51da
Compare
A general project to update the various gnat packages and fix their build. Also hopefully bump the default gnat version to match the default gcc version. Draft because there's still things to fix, including:
gnat15Packages.gnatprovedoesn't build right now. This is a regression, but I'm not sure why. Need to investigate.gnatfails building onx86_64-darwinwithout the apple xcode command line tools installed. (see cc-wrapper, gcc, gnat, gnat-bootstrap: fix GCC 13 and GNAT 13/14/15 builds on darwin #522847)--sysrootoverrides.x86_64-darwinright now, so need to fix that before testing can be doneThings done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.