Skip to content

gnat{,13,14,15,16}Packages: 25.0.0 -> 26.0.0, fix build - #521558

Closed
sempiternal-aurora wants to merge 2 commits into
NixOS:masterfrom
sempiternal-aurora:gnat-updates
Closed

sempiternal-aurora wants to merge 2 commits into
NixOS:masterfrom
sempiternal-aurora:gnat-updates

Conversation

@sempiternal-aurora

@sempiternal-aurora sempiternal-aurora commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

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.gnatprove doesn't build right now. This is a regression, but I'm not sure why. Need to investigate.
    • My current hypothesis is a mismatch between the gprbuild and gpr2 versions, but I'm still investigating
    • We need to use gpr2 v25 to build the fsf-15 branch, as the API changed
    • And we need gnatcoll 25 because of a mismatch of hashes between gpr2 and gnatcoll
  • gnat fails building on x86_64-darwin without 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)
    • This is because the precompiled gnat binaries we use set default sysroots that I can't seem to override
    • That, and the assembler doesn't support --sysroot overrides.
    • Need to figure out how to properly wrap the precompiled binary to make it find all the libraries.
  • upstream alire project provides prebuilt gnat13 and 14 binaries for aarch64-linux, but not gnat15. (see cc-wrapper, gcc, gnat, gnat-bootstrap: fix GCC 13 and GNAT 13/14/15 builds on darwin #522847)
    • Might be possible to download these and use them to bootstrap gnat on aarch64-linux
    • Testing shows that it has the same problem as x86_64-darwin right now, so need to fix that before testing can be done

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels May 18, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. and removed 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels May 18, 2026
@sempiternal-aurora

sempiternal-aurora commented May 20, 2026 •

Copy link
Copy Markdown
Contributor Author

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

gnat currently fails to build on darwin on hydra, or locally on machines that don't have the xcode command line tools installed. The reason for this is quite simple, the c/ada compiler used for these builds searches /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk or /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk for the macos sdk (apple-sdk) that it uses, where it finds libc and everything as I understand. The actual output of the command that fails (in hydra/local) is:

ld: library not found for -lSystem
collect2: error: ld returned 1 exit status

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 gnat-bootstrap in nixpkgs. The reason they use the two above directories (I believe) is because their builds are configured with the following option:

--with-specs='%{!sysroot=*:--sysroot=%:if-exists-else(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk)}'

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 -v is specified --sysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk, even when I pass a different --sysroot myself (usually pkgs.apple-sdk.sdkroot, I think this is the proper option?).

Fixes I've tried

Adding extra c flags to the cc-wrapper setting --sysroot had no effect, as it was just overridden by the spec provided path later in the arguments. Neither was it possible to set the --sysroot for the linker, as it (bintoolsDualAs) doesn't support --sysroot.

Adding -I${apple-sdk.sdkroot}/lib (or the same with -B) to the compiler flags fixed the immediate issue, but caused later builds to be unable to find basic headers like stdio.h:

test.c:1:10: fatal error: stdio.h: No such file or directory
    1 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.

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!

Appendix

The full configure options that the external gcc is built with are:

../src/configure --prefix=/Users/runner/work/GNAT-FSF-builds/GNAT-FSF-builds/sbx/aarch64-darwin/gcc/install --enable-languages=c,ada,c++ --enable-libstdcxx --enable-libstdcxx-threads --enable-libada --disable-nls --without-libiconv-prefix --disable-libstdcxx-pch --enable-lto --disable-multilib --disable-libcilkrts --with-build-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk --with-specs='%{!sysroot=*:--sysroot=%:if-exists-else(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk)}' --with-mpfr=/Users/runner/work/GNAT-FSF-builds/GNAT-FSF-builds/sbx/aarch64-darwin/mpfr/install --with-gmp=/Users/runner/work/GNAT-FSF-builds/GNAT-FSF-builds/sbx/aarch64-darwin/gmp/install --with-mpc=/Users/runner/work/GNAT-FSF-builds/GNAT-FSF-builds/sbx/aarch64-darwin/mpc/install --build=aarch64-apple-darwin23.6.0

@zinzilulo

zinzilulo commented May 23, 2026 •

Copy link
Copy Markdown
Contributor

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

gnat currently fails to build on darwin on hydra, or locally on machines that don't have the xcode command line tools installed. The reason for this is quite simple, the c/ada compiler used for these builds searches /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk or /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk for the macos sdk (apple-sdk) that it uses, where it finds libc and everything as I understand. The actual output of the command that fails (in hydra/local) is:

ld: library not found for -lSystem
collect2: error: ld returned 1 exit status

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 gnat-bootstrap in nixpkgs. The reason they use the two above directories (I believe) is because their builds are configured with the following option:

--with-specs='%{!sysroot=*:--sysroot=%:if-exists-else(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk)}'

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 -v is specified --sysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk, even when I pass a different --sysroot myself (usually pkgs.apple-sdk.sdkroot, I think this is the proper option?).

Fixes I've tried

Adding extra c flags to the cc-wrapper setting --sysroot had no effect, as it was just overridden by the spec provided path later in the arguments. Neither was it possible to set the --sysroot for the linker, as it (bintoolsDualAs) doesn't support --sysroot.

Adding -I${apple-sdk.sdkroot}/lib (or the same with -B) to the compiler flags fixed the immediate issue, but caused later builds to be unable to find basic headers like stdio.h:

test.c:1:10: fatal error: stdio.h: No such file or directory
    1 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.

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!

Appendix

The full configure options that the external gcc is built with are:

../src/configure --prefix=/Users/runner/work/GNAT-FSF-builds/GNAT-FSF-builds/sbx/aarch64-darwin/gcc/install --enable-languages=c,ada,c++ --enable-libstdcxx --enable-libstdcxx-threads --enable-libada --disable-nls --without-libiconv-prefix --disable-libstdcxx-pch --enable-lto --disable-multilib --disable-libcilkrts --with-build-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk --with-specs='%{!sysroot=*:--sysroot=%:if-exists-else(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk)}' --with-mpfr=/Users/runner/work/GNAT-FSF-builds/GNAT-FSF-builds/sbx/aarch64-darwin/mpfr/install --with-gmp=/Users/runner/work/GNAT-FSF-builds/GNAT-FSF-builds/sbx/aarch64-darwin/gmp/install --with-mpc=/Users/runner/work/GNAT-FSF-builds/GNAT-FSF-builds/sbx/aarch64-darwin/mpc/install --build=aarch64-apple-darwin23.6.0

Hi, you might want to check out my fix at #522847, which builds on master cc53fdd. It is currently stuck in the review process.

@sempiternal-aurora

Copy link
Copy Markdown
Contributor Author

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.

@sempiternal-aurora
sempiternal-aurora force-pushed the gnat-updates branch 9 times, most recently from 7cc5299 to b19ab4d Compare June 2, 2026 07:42
@sempiternal-aurora

Copy link
Copy Markdown
Contributor Author

Current state, gnat15Packages.gnatprove failure is related to mismatches between the gnatcoll and gpr2 versions I believe. Something to do with the file index hashes that gnatcoll provides. Will need more investigation.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 521558
Commit: b19ab4d54aaf43b94a07db07bf12353e8f242619


x86_64-linux

❌ 1 package failed to build:
  • gnat15Packages.gnatprove
✅ 98 packages built:
  • alire
  • florist
  • gnatPackages.gnatcoll-core (gnat13Packages.gnatcoll-core)
  • gnatPackages.gnatcoll-cpp (gnat13Packages.gnatcoll-cpp)
  • gnatPackages.gnatcoll-db2ada (gnat13Packages.gnatcoll-db2ada)
  • gnatPackages.gnatcoll-gmp (gnat13Packages.gnatcoll-gmp)
  • gnatPackages.gnatcoll-iconv (gnat13Packages.gnatcoll-iconv)
  • gnatPackages.gnatcoll-lzma (gnat13Packages.gnatcoll-lzma)
  • gnatPackages.gnatcoll-omp (gnat13Packages.gnatcoll-omp)
  • gnatPackages.gnatcoll-postgres (gnat13Packages.gnatcoll-postgres)
  • gnatPackages.gnatcoll-python3 (gnat13Packages.gnatcoll-python3)
  • gnatPackages.gnatcoll-readline (gnat13Packages.gnatcoll-readline)
  • gnatPackages.gnatcoll-sql (gnat13Packages.gnatcoll-sql)
  • gnatPackages.gnatcoll-sqlite (gnat13Packages.gnatcoll-sqlite)
  • gnatPackages.gnatcoll-syslog (gnat13Packages.gnatcoll-syslog)
  • gnatPackages.gnatcoll-xref (gnat13Packages.gnatcoll-xref)
  • gnatPackages.gnatcoll-zlib (gnat13Packages.gnatcoll-zlib)
  • gnatPackages.gnatinspect (gnat13Packages.gnatinspect)
  • gnatprove (gnatPackages.gnatprove)
  • gnatPackages.gpr2 (gnat13Packages.gpr2)
  • gprbuild (gnatPackages.gprbuild)
  • gnatPackages.gprbuild-boot (gnat13Packages.gprbuild-boot)
  • gnatPackages.sarif-ada (gnat13Packages.sarif-ada)
  • gnatPackages.vss-extra (gnat13Packages.vss-extra)
  • gnatPackages.vss-text (gnat13Packages.vss-text)
  • gnatPackages.xmlada (gnat13Packages.xmlada)
  • gnat14Packages.gnatcoll-core
  • gnat14Packages.gnatcoll-cpp
  • gnat14Packages.gnatcoll-db2ada
  • gnat14Packages.gnatcoll-gmp
  • gnat14Packages.gnatcoll-iconv
  • gnat14Packages.gnatcoll-lzma
  • gnat14Packages.gnatcoll-omp
  • gnat14Packages.gnatcoll-postgres
  • gnat14Packages.gnatcoll-python3
  • gnat14Packages.gnatcoll-readline
  • gnat14Packages.gnatcoll-sql
  • gnat14Packages.gnatcoll-sqlite
  • gnat14Packages.gnatcoll-syslog
  • gnat14Packages.gnatcoll-xref
  • gnat14Packages.gnatcoll-zlib
  • gnat14Packages.gnatinspect
  • gnat14Packages.gnatprove
  • gnat14Packages.gpr2
  • gnat14Packages.gprbuild
  • gnat14Packages.gprbuild-boot
  • gnat14Packages.sarif-ada
  • gnat14Packages.vss-extra
  • gnat14Packages.vss-text
  • gnat14Packages.xmlada
  • gnat15Packages.gnatcoll-core
  • gnat15Packages.gnatcoll-cpp
  • gnat15Packages.gnatcoll-db2ada
  • gnat15Packages.gnatcoll-gmp
  • gnat15Packages.gnatcoll-iconv
  • gnat15Packages.gnatcoll-lzma
  • gnat15Packages.gnatcoll-omp
  • gnat15Packages.gnatcoll-postgres
  • gnat15Packages.gnatcoll-python3
  • gnat15Packages.gnatcoll-readline
  • gnat15Packages.gnatcoll-sql
  • gnat15Packages.gnatcoll-sqlite
  • gnat15Packages.gnatcoll-syslog
  • gnat15Packages.gnatcoll-xref
  • gnat15Packages.gnatcoll-zlib
  • gnat15Packages.gnatinspect
  • gnat15Packages.gpr2
  • gnat15Packages.gprbuild
  • gnat15Packages.gprbuild-boot
  • gnat15Packages.sarif-ada
  • gnat15Packages.vss-extra
  • gnat15Packages.vss-text
  • gnat15Packages.xmlada
  • gnat16Packages.gnatcoll-core
  • gnat16Packages.gnatcoll-cpp
  • gnat16Packages.gnatcoll-db2ada
  • gnat16Packages.gnatcoll-gmp
  • gnat16Packages.gnatcoll-iconv
  • gnat16Packages.gnatcoll-lzma
  • gnat16Packages.gnatcoll-omp
  • gnat16Packages.gnatcoll-postgres
  • gnat16Packages.gnatcoll-python3
  • gnat16Packages.gnatcoll-readline
  • gnat16Packages.gnatcoll-sql
  • gnat16Packages.gnatcoll-sqlite
  • gnat16Packages.gnatcoll-syslog
  • gnat16Packages.gnatcoll-xref
  • gnat16Packages.gnatcoll-zlib
  • gnat16Packages.gnatinspect
  • gnat16Packages.gnatprove
  • gnat16Packages.gpr2
  • gnat16Packages.gprbuild
  • gnat16Packages.gprbuild-boot
  • gnat16Packages.sarif-ada
  • gnat16Packages.vss-extra
  • gnat16Packages.vss-text
  • gnat16Packages.xmlada
  • powerjoular

gnat15Packages.gnatprove
   [Ada]          string_utils.adb
   [Ada]          assumption_types.adb
   [Ada]          assumptions.adb
   [Ada]          assumptions-search.adb
   [Ada]          platform.adb
   [Ada]          print_table.adb
   [Ada]          report_database.adb
   [Ada]          spark2014vsn.adb
   [Ada]          vc_kinds.adb
   [Ada]          hash_cons.adb
gpr2-utils-hash.ads:31:41: warning: too many elements for type "Hash_Digest" defined at line 19 [enabled by default]
gpr2-utils-hash.ads:31:41: warning: expected 40 elements; found 64 elements [enabled by default]
gpr2-utils-hash.ads:31:41: warning: Constraint_Error will be raised at run time [enabled by default]

compilation of gnatprove.adb failed

gprbuild: *** compilation phase failed
make[1]: *** [Makefile.gnatprove:8: build] Error 4
make[1]: Leaving directory '/build/source'
make: *** [Makefile:194: gnatprove] Error 2

@sempiternal-aurora

Copy link
Copy Markdown
Contributor Author

Current state of this PR

nixpkgs-review result for #521558

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 521558
Commit: b19ab4d54aaf43b94a07db07bf12353e8f242619 (subsequent changes)
Merge: 5ab2e392f2e64fedffcd8d120306db6fd013345e

Logs: https://github.com/sempiternal-aurora/nixpkgs-review-gha/actions/runs/26808384520


x86_64-linux

❌ 1 package failed to build:
  • gnat15Packages.gnatprove
✅ 98 packages built:
  • alire
  • florist
  • gnatPackages.gnatcoll-core (gnat13Packages.gnatcoll-core)
  • gnatPackages.gnatcoll-cpp (gnat13Packages.gnatcoll-cpp)
  • gnatPackages.gnatcoll-db2ada (gnat13Packages.gnatcoll-db2ada)
  • gnatPackages.gnatcoll-gmp (gnat13Packages.gnatcoll-gmp)
  • gnatPackages.gnatcoll-iconv (gnat13Packages.gnatcoll-iconv)
  • gnatPackages.gnatcoll-lzma (gnat13Packages.gnatcoll-lzma)
  • gnatPackages.gnatcoll-omp (gnat13Packages.gnatcoll-omp)
  • gnatPackages.gnatcoll-postgres (gnat13Packages.gnatcoll-postgres)
  • gnatPackages.gnatcoll-python3 (gnat13Packages.gnatcoll-python3)
  • gnatPackages.gnatcoll-readline (gnat13Packages.gnatcoll-readline)
  • gnatPackages.gnatcoll-sql (gnat13Packages.gnatcoll-sql)
  • gnatPackages.gnatcoll-sqlite (gnat13Packages.gnatcoll-sqlite)
  • gnatPackages.gnatcoll-syslog (gnat13Packages.gnatcoll-syslog)
  • gnatPackages.gnatcoll-xref (gnat13Packages.gnatcoll-xref)
  • gnatPackages.gnatcoll-zlib (gnat13Packages.gnatcoll-zlib)
  • gnatPackages.gnatinspect (gnat13Packages.gnatinspect)
  • gnatprove (gnatPackages.gnatprove)
  • gnatPackages.gpr2 (gnat13Packages.gpr2)
  • gprbuild (gnatPackages.gprbuild)
  • gnatPackages.gprbuild-boot (gnat13Packages.gprbuild-boot)
  • gnatPackages.sarif-ada (gnat13Packages.sarif-ada)
  • gnatPackages.vss-extra (gnat13Packages.vss-extra)
  • gnatPackages.vss-text (gnat13Packages.vss-text)
  • gnatPackages.xmlada (gnat13Packages.xmlada)
  • gnat14Packages.gnatcoll-core
  • gnat14Packages.gnatcoll-cpp
  • gnat14Packages.gnatcoll-db2ada
  • gnat14Packages.gnatcoll-gmp
  • gnat14Packages.gnatcoll-iconv
  • gnat14Packages.gnatcoll-lzma
  • gnat14Packages.gnatcoll-omp
  • gnat14Packages.gnatcoll-postgres
  • gnat14Packages.gnatcoll-python3
  • gnat14Packages.gnatcoll-readline
  • gnat14Packages.gnatcoll-sql
  • gnat14Packages.gnatcoll-sqlite
  • gnat14Packages.gnatcoll-syslog
  • gnat14Packages.gnatcoll-xref
  • gnat14Packages.gnatcoll-zlib
  • gnat14Packages.gnatinspect
  • gnat14Packages.gnatprove
  • gnat14Packages.gpr2
  • gnat14Packages.gprbuild
  • gnat14Packages.gprbuild-boot
  • gnat14Packages.sarif-ada
  • gnat14Packages.vss-extra
  • gnat14Packages.vss-text
  • gnat14Packages.xmlada
  • gnat15Packages.gnatcoll-core
  • gnat15Packages.gnatcoll-cpp
  • gnat15Packages.gnatcoll-db2ada
  • gnat15Packages.gnatcoll-gmp
  • gnat15Packages.gnatcoll-iconv
  • gnat15Packages.gnatcoll-lzma
  • gnat15Packages.gnatcoll-omp
  • gnat15Packages.gnatcoll-postgres
  • gnat15Packages.gnatcoll-python3
  • gnat15Packages.gnatcoll-readline
  • gnat15Packages.gnatcoll-sql
  • gnat15Packages.gnatcoll-sqlite
  • gnat15Packages.gnatcoll-syslog
  • gnat15Packages.gnatcoll-xref
  • gnat15Packages.gnatcoll-zlib
  • gnat15Packages.gnatinspect
  • gnat15Packages.gpr2
  • gnat15Packages.gprbuild
  • gnat15Packages.gprbuild-boot
  • gnat15Packages.sarif-ada
  • gnat15Packages.vss-extra
  • gnat15Packages.vss-text
  • gnat15Packages.xmlada
  • gnat16Packages.gnatcoll-core
  • gnat16Packages.gnatcoll-cpp
  • gnat16Packages.gnatcoll-db2ada
  • gnat16Packages.gnatcoll-gmp
  • gnat16Packages.gnatcoll-iconv
  • gnat16Packages.gnatcoll-lzma
  • gnat16Packages.gnatcoll-omp
  • gnat16Packages.gnatcoll-postgres
  • gnat16Packages.gnatcoll-python3
  • gnat16Packages.gnatcoll-readline
  • gnat16Packages.gnatcoll-sql
  • gnat16Packages.gnatcoll-sqlite
  • gnat16Packages.gnatcoll-syslog
  • gnat16Packages.gnatcoll-xref
  • gnat16Packages.gnatcoll-zlib
  • gnat16Packages.gnatinspect
  • gnat16Packages.gnatprove
  • gnat16Packages.gpr2
  • gnat16Packages.gprbuild
  • gnat16Packages.gprbuild-boot
  • gnat16Packages.sarif-ada
  • gnat16Packages.vss-extra
  • gnat16Packages.vss-text
  • gnat16Packages.xmlada
  • powerjoular

gnat15Packages.gnatprove
   [Ada]          string_utils.adb
   [Ada]          assumption_types.adb
   [Ada]          assumptions.adb
   [Ada]          assumptions-search.adb
   [Ada]          platform.adb
   [Ada]          print_table.adb
   [Ada]          report_database.adb
   [Ada]          spark2014vsn.adb
   [Ada]          vc_kinds.adb
   [Ada]          hash_cons.adb
gpr2-utils-hash.ads:31:41: warning: too many elements for type "Hash_Digest" defined at line 19 [enabled by default]
gpr2-utils-hash.ads:31:41: warning: expected 40 elements; found 64 elements [enabled by default]
gpr2-utils-hash.ads:31:41: warning: Constraint_Error will be raised at run time [enabled by default]

compilation of gnatprove.adb failed

gprbuild: *** compilation phase failed
make[1]: *** [Makefile.gnatprove:8: build] Error 4
make[1]: Leaving directory '/build/source'
make: *** [Makefile:194: gnatprove] Error 2


aarch64-linux

❌ 1 package failed to build:
  • gnat15Packages.gnatprove
✅ 71 packages built:
  • gnat14Packages.gnatcoll-core
  • gnat14Packages.gnatcoll-cpp
  • gnat14Packages.gnatcoll-db2ada
  • gnat14Packages.gnatcoll-gmp
  • gnat14Packages.gnatcoll-iconv
  • gnat14Packages.gnatcoll-lzma
  • gnat14Packages.gnatcoll-omp
  • gnat14Packages.gnatcoll-postgres
  • gnat14Packages.gnatcoll-python3
  • gnat14Packages.gnatcoll-readline
  • gnat14Packages.gnatcoll-sql
  • gnat14Packages.gnatcoll-sqlite
  • gnat14Packages.gnatcoll-syslog
  • gnat14Packages.gnatcoll-xref
  • gnat14Packages.gnatcoll-zlib
  • gnat14Packages.gnatinspect
  • gnat14Packages.gnatprove
  • gnat14Packages.gpr2
  • gnat14Packages.gprbuild
  • gnat14Packages.gprbuild-boot
  • gnat14Packages.sarif-ada
  • gnat14Packages.vss-extra
  • gnat14Packages.vss-text
  • gnat14Packages.xmlada
  • gnat15Packages.gnatcoll-core
  • gnat15Packages.gnatcoll-cpp
  • gnat15Packages.gnatcoll-db2ada
  • gnat15Packages.gnatcoll-gmp
  • gnat15Packages.gnatcoll-iconv
  • gnat15Packages.gnatcoll-lzma
  • gnat15Packages.gnatcoll-omp
  • gnat15Packages.gnatcoll-postgres
  • gnat15Packages.gnatcoll-python3
  • gnat15Packages.gnatcoll-readline
  • gnat15Packages.gnatcoll-sql
  • gnat15Packages.gnatcoll-sqlite
  • gnat15Packages.gnatcoll-syslog
  • gnat15Packages.gnatcoll-xref
  • gnat15Packages.gnatcoll-zlib
  • gnat15Packages.gnatinspect
  • gnat15Packages.gpr2
  • gnat15Packages.gprbuild
  • gnat15Packages.gprbuild-boot
  • gnat15Packages.sarif-ada
  • gnat15Packages.vss-extra
  • gnat15Packages.vss-text
  • gnat15Packages.xmlada
  • gnat16Packages.gnatcoll-core
  • gnat16Packages.gnatcoll-cpp
  • gnat16Packages.gnatcoll-db2ada
  • gnat16Packages.gnatcoll-gmp
  • gnat16Packages.gnatcoll-iconv
  • gnat16Packages.gnatcoll-lzma
  • gnat16Packages.gnatcoll-omp
  • gnat16Packages.gnatcoll-postgres
  • gnat16Packages.gnatcoll-python3
  • gnat16Packages.gnatcoll-readline
  • gnat16Packages.gnatcoll-sql
  • gnat16Packages.gnatcoll-sqlite
  • gnat16Packages.gnatcoll-syslog
  • gnat16Packages.gnatcoll-xref
  • gnat16Packages.gnatcoll-zlib
  • gnat16Packages.gnatinspect
  • gnat16Packages.gnatprove
  • gnat16Packages.gpr2
  • gnat16Packages.gprbuild
  • gnat16Packages.gprbuild-boot
  • gnat16Packages.sarif-ada
  • gnat16Packages.vss-extra
  • gnat16Packages.vss-text
  • gnat16Packages.xmlada

gnat15Packages.gnatprove
   [Ada]          string_utils.adb
   [Ada]          assumption_types.adb
   [Ada]          assumptions.adb
   [Ada]          assumptions-search.adb
   [Ada]          platform.adb
   [Ada]          print_table.adb
   [Ada]          report_database.adb
   [Ada]          spark2014vsn.adb
   [Ada]          vc_kinds.adb
   [Ada]          hash_cons.adb
gpr2-utils-hash.ads:31:41: warning: too many elements for type "Hash_Digest" defined at line 19 [enabled by default]
gpr2-utils-hash.ads:31:41: warning: expected 40 elements; found 64 elements [enabled by default]
gpr2-utils-hash.ads:31:41: warning: Constraint_Error will be raised at run time [enabled by default]

compilation of gnatprove.adb failed

gprbuild: *** compilation phase failed
make[1]: *** [Makefile.gnatprove:8: build] Error 4
make[1]: Leaving directory '/build/source'
make: *** [Makefile:194: gnatprove] Error 2


x86_64-darwin (sandbox = relaxed)

❌ 97 packages failed to build:
  • alire
  • gnatPackages.gnatcoll-core (gnat13Packages.gnatcoll-core)
  • gnatPackages.gnatcoll-cpp (gnat13Packages.gnatcoll-cpp)
  • gnatPackages.gnatcoll-db2ada (gnat13Packages.gnatcoll-db2ada)
  • gnatPackages.gnatcoll-gmp (gnat13Packages.gnatcoll-gmp)
  • gnatPackages.gnatcoll-iconv (gnat13Packages.gnatcoll-iconv)
  • gnatPackages.gnatcoll-lzma (gnat13Packages.gnatcoll-lzma)
  • gnatPackages.gnatcoll-omp (gnat13Packages.gnatcoll-omp)
  • gnatPackages.gnatcoll-postgres (gnat13Packages.gnatcoll-postgres)
  • gnatPackages.gnatcoll-python3 (gnat13Packages.gnatcoll-python3)
  • gnatPackages.gnatcoll-readline (gnat13Packages.gnatcoll-readline)
  • gnatPackages.gnatcoll-sql (gnat13Packages.gnatcoll-sql)
  • gnatPackages.gnatcoll-sqlite (gnat13Packages.gnatcoll-sqlite)
  • gnatPackages.gnatcoll-syslog (gnat13Packages.gnatcoll-syslog)
  • gnatPackages.gnatcoll-xref (gnat13Packages.gnatcoll-xref)
  • gnatPackages.gnatcoll-zlib (gnat13Packages.gnatcoll-zlib)
  • gnatPackages.gnatinspect (gnat13Packages.gnatinspect)
  • gnatprove (gnatPackages.gnatprove)
  • gnatPackages.gpr2 (gnat13Packages.gpr2)
  • gprbuild (gnatPackages.gprbuild)
  • gnatPackages.gprbuild-boot (gnat13Packages.gprbuild-boot)
  • gnatPackages.sarif-ada (gnat13Packages.sarif-ada)
  • gnatPackages.vss-extra (gnat13Packages.vss-extra)
  • gnatPackages.vss-text (gnat13Packages.vss-text)
  • gnatPackages.xmlada (gnat13Packages.xmlada)
  • gnat14Packages.gnatcoll-core
  • gnat14Packages.gnatcoll-cpp
  • gnat14Packages.gnatcoll-db2ada
  • gnat14Packages.gnatcoll-gmp
  • gnat14Packages.gnatcoll-iconv
  • gnat14Packages.gnatcoll-lzma
  • gnat14Packages.gnatcoll-omp
  • gnat14Packages.gnatcoll-postgres
  • gnat14Packages.gnatcoll-python3
  • gnat14Packages.gnatcoll-readline
  • gnat14Packages.gnatcoll-sql
  • gnat14Packages.gnatcoll-sqlite
  • gnat14Packages.gnatcoll-syslog
  • gnat14Packages.gnatcoll-xref
  • gnat14Packages.gnatcoll-zlib
  • gnat14Packages.gnatinspect
  • gnat14Packages.gnatprove
  • gnat14Packages.gpr2
  • gnat14Packages.gprbuild
  • gnat14Packages.gprbuild-boot
  • gnat14Packages.sarif-ada
  • gnat14Packages.vss-extra
  • gnat14Packages.vss-text
  • gnat14Packages.xmlada
  • gnat15Packages.gnatcoll-core
  • gnat15Packages.gnatcoll-cpp
  • gnat15Packages.gnatcoll-db2ada
  • gnat15Packages.gnatcoll-gmp
  • gnat15Packages.gnatcoll-iconv
  • gnat15Packages.gnatcoll-lzma
  • gnat15Packages.gnatcoll-omp
  • gnat15Packages.gnatcoll-postgres
  • gnat15Packages.gnatcoll-python3
  • gnat15Packages.gnatcoll-readline
  • gnat15Packages.gnatcoll-sql
  • gnat15Packages.gnatcoll-sqlite
  • gnat15Packages.gnatcoll-syslog
  • gnat15Packages.gnatcoll-xref
  • gnat15Packages.gnatcoll-zlib
  • gnat15Packages.gnatinspect
  • gnat15Packages.gnatprove
  • gnat15Packages.gpr2
  • gnat15Packages.gprbuild
  • gnat15Packages.gprbuild-boot
  • gnat15Packages.sarif-ada
  • gnat15Packages.vss-extra
  • gnat15Packages.vss-text
  • gnat15Packages.xmlada
  • gnat16Packages.gnatcoll-core
  • gnat16Packages.gnatcoll-cpp
  • gnat16Packages.gnatcoll-db2ada
  • gnat16Packages.gnatcoll-gmp
  • gnat16Packages.gnatcoll-iconv
  • gnat16Packages.gnatcoll-lzma
  • gnat16Packages.gnatcoll-omp
  • gnat16Packages.gnatcoll-postgres
  • gnat16Packages.gnatcoll-python3
  • gnat16Packages.gnatcoll-readline
  • gnat16Packages.gnatcoll-sql
  • gnat16Packages.gnatcoll-sqlite
  • gnat16Packages.gnatcoll-syslog
  • gnat16Packages.gnatcoll-xref
  • gnat16Packages.gnatcoll-zlib
  • gnat16Packages.gnatinspect
  • gnat16Packages.gnatprove
  • gnat16Packages.gpr2
  • gnat16Packages.gprbuild
  • gnat16Packages.gprbuild-boot
  • gnat16Packages.sarif-ada
  • gnat16Packages.vss-extra
  • gnat16Packages.vss-text
  • gnat16Packages.xmlada

aarch64-darwin

✅ No rebuilds

@sempiternal-aurora

Copy link
Copy Markdown
Contributor Author

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!

@sempiternal-aurora
sempiternal-aurora marked this pull request as ready for review June 5, 2026 11:20
@heijligen

Copy link
Copy Markdown
Contributor

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.

~> gnatprove -P sort.gpr
kb: info: can't find a toolchain for the following configuration: language 'Ada', target 'x86_64-linux', default runtime

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.

@sempiternal-aurora

Copy link
Copy Markdown
Contributor Author

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.

~> gnatprove -P sort.gpr
kb: info: can't find a toolchain for the following configuration: language 'Ada', target 'x86_64-linux', default runtime

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 aarch64-darwin support (#522847).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants