Landin the pinned toolchain discuss source

Pinned toolchain

The bootstrap has one canonical Ada toolchain, recorded exactly, reproduced from a clean environment, and pinned by version rather than by distributor.

Canonical release

part pin
Ada language version Ada 2022 (-gnat2022)
compiler GNAT (GCC) 16.1.0, FSF build gnat-16.1.0-1
builder GPRbuild 26.0.0, build gprbuild-26.0.0-1
runtime profile full standard runtime; no restricted or zero-footprint profile
bootstrap dependencies none beyond the GNAT runtime

The bootstrap uses no Alire authority, no AUnit, no GNATCOLL and no SPARK. Alire's published FSF archives are one convenient way to obtain the pinned compiler; the pin is the compiler version, not the distributor.

External binding-generator frontend

The C binding generator, refine bindings (D820), asks an external Clang for a header's AST; Clang is not part of the Ada bootstrap and not a C or LLVM product backend. The Linux environments provide a Clang 19 as the external C11 header frontend and compiler for its generated C adapters. The selected target is x86_64-pc-linux-gnu on x86-64 and aarch64-unknown-linux-gnu on arm64, where the Linux arm64 jobs install the same package for arm64 and run compiler/tests/linux-arm64/bindings.py. The gate's bindings job installs Ubuntu 24.04's clang-19 package at exactly 1:19.1.1-1ubuntu1~24.04.2 (Clang 19.1.1), the version environments/pins.sh names as LANDIN_CLANG_UBUNTU, asserts the installed version, and takes the headers and root sysroot from the same release's libc6-dev. The local container's debian/stable channel gives 19.1.7, and bindings/test.py, which runs refine bindings, passes on both, the committed fixture's byte-for-byte regeneration included; the gate's is the version of record. The versioned package name prevents a moving default Clang major.

The Linux nix shell selects llvmPackages."19".clang, with glibc.dev, from the package set fixed by flake.lock. The Darwin shell deliberately gains no Linux C frontend or sysroot: Apple headers are not evidence about the selected Linux ABI. Validate that on a Linux host. No independent Clang archive is downloaded; each environment uses its package set's provenance, and the gate's is the exact package version above.

Native macOS environment

scripts/macos.sh validates the native arm64 bootstrap in both modes. GNAT and GPRbuild retain the canonical pins above. The Apple environment is recorded in environments/macos-arm64/policy.json:

part tested pin or bound
macOS major 26
macOS SDK 26.5 (build 25F70)
Apple Clang Apple clang version 21.0.0 (clang-2100.1.1.101)
Apple assembler (as --version) Apple clang version 21.0.0 (clang-2100.1.1.101)
Apple linker (ld -version_details) 1267
LLDB lldb-2100.0.17.203

The command records exact host/tool identities and checks native assembly, linking, execution and an LLDB stop/resume before building and running refine. The SDK is selected through xcrun --sdk macosx and passed as SDKROOT to the builds. These are host validation tools, not new bootstrap libraries. See environments/macos-arm64/README.md for the commands, expected historical Linux runtime-case refusal and bounded resource probes. A Linux container cannot supply this evidence, nor emitted Darwin source debugging, nor full hosted parity: all three need a Mac, which the gate's macos-26 jobs are.

External source debugger

scripts/debug.sh uses GDB and GNU binutils to inspect and run the emitted Linux x86-64 executable. They are external validation tools, not bootstrap dependencies. The local Linux image installs gdb from its package channel, and the Linux nix shell takes it from flake.lock's package set. The script uses GDB from the configured PATH (which can select the GDB bundled in the pinned toolchain), or LANDIN_GDB when explicitly set, and records that executable's version. The gate runs the sessions with release refine and the GDB the pinned GNAT bundles, separately from the emitted program's optimization policy.

The Windows debugger is LLDB from llvm-mingw's release 20261117 for Windows x86-64, llvm-mingw-20261117-ucrt-x86_64.zip, sha256 4d002e330a0f703625aa5ccbc37e96f8f824413e163bfc7336774aabd2c3a412, and for Windows arm64, llvm-mingw-20261117-ucrt-aarch64.zip, sha256 c7f56de1d7aca15196c19083a799205390397b8b87a825aec3485e1e4f3c2cdd, which environments/pins.sh names and the gate's Windows debugger jobs check before anything in them runs: lldb.exe and lldb-dap.exe, LLVM 23, which read a PDB with LLVM's own reader. It debugs and links nothing: the Windows link stays the Clang 19 and LLD the emission jobs use. A windows-arm64 link takes the MinGW-w64 import libraries from the arm64 archive's aarch64-w64-mingw32 directory, which Ubuntu does not package and nixpkgs' cache does not hold; the emission job and the Linux nix shell both take them from there. The arm64 runner's DAP session runs the Linux arm64 refine dap in WSL 1, in Ubuntu's arm64 base system 24.04.5, ubuntu-base-24.04.5-base-arm64.tar.gz, sha256 a91d5a93010193712d346d761372b7c9db6dfcf093893161c64ca107f05914f2, which the job checks before importing it.

The cross lane

Another Linux target's corpus runs on this host under QEMU's user emulation, linked by that target's cross driver: evidence about the emitted code, none about the pinned compiler on its own host. The Linux nix shell provides the lane from flake.lock's package set, QEMU 11.1.0 and the cross GCC 15.3.0, the versions environments/pins.sh names as LANDIN_CROSS_QEMU_NIX and LANDIN_CROSS_GCC_NIX; the shell refuses to build from a lock whose package set has others. Its drivers carry the triplet names refine asks for, and its multi-target GDB is gdb-multiarch, because the GDB the pinned GNAT bundles reads only its own architecture. The gate's rv64-qemu jobs install nix and run the flake's qemu-user, refusing any version but LANDIN_CROSS_QEMU_NIX, and link with Ubuntu 24.04's riscv64 cross packages, whose versions their logs print. Ubuntu's own qemu-user, 8.2.2, is not a substitute: it gives a riscv64 sigaction the sa_restorer word Linux's lacks, so rt_sigaction writes 32 bytes into a 24-byte record.

Archives and checksums

The releases below are the ones the pins name. Each GNAT and GPRbuild checksum in the bootstrap table has been verified against its archive before unpacking: the macOS rows on the development machine, the Linux x86-64 rows inside the pinned linux/amd64 image built by environments/images/contributor.Containerfile, which installs them through environments/pins.sh and so runs sha256sum -c before it unpacks anything, and the Linux arm64 rows by the gate's ubuntu-24.04-arm jobs, which do the same through environments/pins.sh. A host may build the same versions from source instead, as FreeBSD does (below).

Each archive installs its compiler driver under its own GNU triplet, which is the name refine asks for: x86_64-pc-linux-gnu-gcc on Linux x86-64 and aarch64-linux-gnu-gcc on Linux arm64. The arm64 archive also bundles its own as, ld and gdb, so the GDB sessions on that host use the pinned debugger as they do on x86-64.

Each Linux archive bundles its binutils too, GNU Binutils 2.46.1 in the x86-64 one, and the pin covers them. The Linux nix shell links and assembles with them: flake.nix wraps the archive's as, ld.bfd and the rest the way nixpkgs wraps its own binutils, so the store's glibc, start files and interpreter still reach the link, and ld --version in the shell names the archive's release. Before that, the shell's driver reached nixpkgs' binutils ld, which the pin did not cover, and which writes DT_RUNPATH where the archive's writes DT_RPATH. The shell also sets NIX_NO_SELF_RPATH, so a refine built there no longer carries the checkout's outputs/out/lib in its run path. What remains of the store in that run path is the pinned archive's own library directories and the store's glibc, which a compiler linked against the store's glibc needs. The macOS archive bundles no linker; every Darwin host links with Apple's.

platform archive sha256
macOS arm64 gnat-aarch64-darwin-16.1.0-1.tar.gz 657cf254323eb91f79768918e8bd8887d6da7ac6056732a38f21e2848267da18
macOS arm64 gprbuild-aarch64-darwin-26.0.0-1.tar.gz 6bf7d80c8a9702d851c5b992d7c72a07a9dbf13e8de9947b80927ea2667b6be8
Linux x86-64 gnat-x86_64-linux-16.1.0-1.tar.gz 9f74f58a827a2ad40dd84c72a413e75ea52888e0d8f7e252fba4d26762402703
Linux x86-64 gprbuild-x86_64-linux-26.0.0-1.tar.gz e3f27f2515ec04d963f6badade6595993b1c091ba15d1919a7c75aad1b7ed49b
Linux arm64 gnat-aarch64-linux-16.1.0-1.tar.gz 8e297497f2d6d6845920a363a277b6ef5bc454e48a66d0d606b89d71e31ee623
Linux arm64 gprbuild-aarch64-linux-26.0.0-1.tar.gz c125424447144944973d24de43a53b3e7008dbda306e0d540db07e635dea24e4

FreeBSD, built from source

GNAT-FSF-builds publishes no FreeBSD archive, and FreeBSD's packages carry GNAT 12 to 15 and a GPRbuild that moves with the ports, so a FreeBSD host builds the pinned versions from source, as the table above allows. environments/freebsd/gnat.py boots a fresh guest from the locked FreeBSD 14.4 image and runs environments/freebsd/gnat/build.sh there:

  • GCC 16.1.0 with Ada, from the GNU release tarball, patched with every files/patch-* of FreeBSD ports' lang/gcc16 at the commit environments/pins.sh names (environments/freebsd/gnat/patches/), and configured as the ports configure it, with binutils' as and ld. It is built once by the gnat14 package rather than bootstrapped in three stages, as the ports build each GNAT from the one before it: the compiler and runtime are the pinned version's, in a third of the time. gnat14 rather than gnat15, because gnat15 cannot build GCC on aarch64, and one recipe serves both architectures.
  • GPRbuild 26.0.0 with XML/Ada and the gprconfig knowledge base of the same tag, built by GPRbuild's own bootstrap script with the new GNAT and the one commit after the tag that GNAT 16 needs, 6421e350274b (environments/freebsd/gnat/gprbuild-6421e350274b.patch): 26.0.0 names a map's "<" that GNAT 16 refuses, and gnat14 lacks a unit 26.0.0 uses.

Every source is checked against its sha256 in environments/pins.sh before it reaches the guest. The result unpacks at /opt/landin, whose gnat-16.1.0 and gprbuild-26.0.0 are LANDIN_GNAT_HOME and LANDIN_GPRBUILD_HOME, and loads the gmp, mpfr, mpc and isl packages; gnat.py keeps it as one archive in ~/.cache/landin/freebsd named by a digest of the pins, the patches, the recipe and the release image, and the gate caches it under the same digest. On 16 processors in 16 GiB it took ten minutes; the archive is 111 MB. The arm64 archive is built the same way with --runner-ssh in a guest under KVM on an arm64 host, since no gate runner gives one KVM: ten minutes on 20 processors in 8 GiB, 104 MB.

source archive sha256
GNU gcc-16.1.0.tar.xz 50efb4d94c3397aff3b0d61a5abd748b4dd31d9d3f2ab7be05b171d36a510f79
AdaCore, tag v26.0.0 gprbuild-26.0.0.tar.gz 4699443c1a97a1527de44e6c3d3505fd95c3904a6533e67cd34c674c408f7d4f
AdaCore, tag v26.0.0 xmlada-26.0.0.tar.gz 26494e57233e8eff9f8339b1520b6dc8188b259a9fccfc808fb19ffe767813aa
AdaCore, tag v26.0.0 gprconfig_kb-26.0.0.tar.gz d6edeb941ab9df6b6a186180f17d9a89c57d25be1e0acd8a9237c38164d944de

Xtensa cross tools

ESP32 and ESP32-S3 use Espressif's esp-16.1.0_20260609 release. Both chip wrappers report GCC 16.1.0 and GNU binutils 2.46, with crosstool-NG esp-16.1.0_20260609 in their version response. The archive checksums below match the immutable ESP-IDF tool manifest. environments/pins.sh supplies them to the flake and the private embedded installer; the selected archive is verified before extraction.

platform archive sha256
Linux x86-64 xtensa-esp-elf-16.1.0_20260609-x86_64-linux-gnu.tar.xz f708752ebb35cab21f184b2574114ed1187619db0edb8a4ba913c06ca2fa675e
Linux arm64 xtensa-esp-elf-16.1.0_20260609-aarch64-linux-gnu.tar.xz 785ee242bfbdb3ac4e764e85d2f87109c7c5f3da57d742da9a7c58c0d0906149
macOS arm64 xtensa-esp-elf-16.1.0_20260609-aarch64-apple-darwin.tar.xz be4eb81c12c9bbf6ead79c758bfa81b8e6ec9a695372f946ac924c70c32f273d

Select xtensa-esp32-elf-* for xtensa-esp32 and xtensa-esp32s3-elf-* for xtensa-esp32s3. The wrappers load the matching xtensa_esp32 or xtensa_esp32s3 configuration plugin from their archive. The assembler receives --abi-windowed; the C driver receives -mabi=windowed. These chip configurations define the accepted instruction sets independently, including the S3's salt and saltu instructions.

The private Linux x86-64 installation also carries Espressif QEMU esp-develop-9.2.2-20260417 in its separate qemu-xtensa area. Its archive SHA256 is 0eecb2a34a5586c0e59110f77b9343b7b336e82fdb0e1a30e1dc1bab8a547e35, recorded with its URL in environments/cortex-m/tools.lock.json. qemu-system-xtensa selects -M esp32 or -M esp32s3; its version response is 9.2.2 (esp_develop_9.2.2_20260417). The installation record inventories the compiler, both chip plugins and the Xtensa emulator alongside the other embedded tools.

Editor grammar CLI

The structural editor grammar's CLI is not a compiler tool, but the gate fetches it, so it is pinned the same way: tree-sitter 0.26.9, the version highlight/tree-sitter/package.json names, as the release binary below. The gate fetches the Linux x86-64 binary; nix develop puts its own system's on PATH.

platform archive sha256
Linux x86-64 tree-sitter-linux-x64.gz 9ce82137caa65864e7ca8b869fd391cef88c9bd2a01c4371b9c4dd26c2585efb
Linux arm64 tree-sitter-linux-arm64.gz c8feeb32115958cb44442ca4d68f6d66cf7605dbd65681e62342181ebdd6db3b
macOS arm64 tree-sitter-macos-arm64.gz e46725b2417c085b0761948abc0cc240bff6a3ab5d2128e3ad0de467ded3388d

Workflow linter

The workflows are held to actionlint 1.7.12, the release binary its publisher builds, pinned the same way as the editor grammar's CLI: environments/pins.sh names the version, the release URL and the archive checksums below. scripts/actionlint.py runs it over every file under .github/workflows with .github/actionlint.yaml, which names the two runner labels GitHub does not host, landin-rig and RISE's ubuntu-24.04-riscv. It refuses an actionlint of another version. Its shellcheck pass runs the shellcheck pinned beside it, named to actionlint by its path, over every run: script, so the verdict does not depend on what a host's PATH holds; its pyflakes pass is turned off, since no step runs Python as its shell and pyflakes publishes no release binary to pin. The gate's scripts job runs python3 scripts/actionlint.py --install DIR, which fetches both Linux x86-64 archives and verifies each before unpacking it; nix develop puts its own system's on PATH. Outside the shell, a missing actionlint or shellcheck is refused with both routes.

platform archive sha256
Linux x86-64 actionlint_1.7.12_linux_amd64.tar.gz 8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8
Linux arm64 actionlint_1.7.12_linux_arm64.tar.gz 325e971b6ba9bfa504672e29be93c24981eeb1c07576d730e9f7c8805afff0c6
macOS arm64 actionlint_1.7.12_darwin_arm64.tar.gz aba9ced2dee8d27fecca3dc7feb1a7f9a52caefa1eb46f3271ea66b6e0e6953f

The shellcheck is 0.11.0, the static release binary its publisher builds. Its release publishes no checksum file, so the checksums below are the archives' own, taken when they were fetched from the release page; a new version is pinned the same way, by fetching each archive and recording its SHA-256.

platform archive sha256
Linux x86-64 shellcheck-v0.11.0.linux.x86_64.tar.xz 8c3be12b05d5c177a04c29e3c78ce89ac86f1595681cab149b65b97c4e227198
Linux arm64 shellcheck-v0.11.0.linux.aarch64.tar.xz 12b331c1d2db6b9eb13cfca64306b1b157a86eb69db83023e261eaa7e7c14588
macOS arm64 shellcheck-v0.11.0.darwin.aarch64.tar.xz 56affdd8de5527894dca6dc3d7e0a99a873b0f004d7aabc30ae407d3f48b0a79

The release jobs run the packaged Linux compiler on Alpine 3.24.4's minirootfs, a musl system with no glibc (scripts/static_check.py). The checksums are the ones Alpine's latest-releases.yaml for v3.24 publishes beside each archive; landin_fetch_alpine checks them before unpacking.

platform archive sha256
Linux x86-64 alpine-minirootfs-3.24.4-x86_64.tar.gz cdaa38cb8de3537967ee5b6c9b6cd00cc962da2b018e6eea48696bb274923012
Linux arm64 alpine-minirootfs-3.24.4-aarch64.tar.gz 4b14c18f7e90a063b61462ea1462a5732c154bf6adad594974fe6487cd98a8de

Warning and style policy

Set once, in compiler/ada/landin_common.gpr, and inherited by every project:

switch why
-gnat2022 the language version the bootstrap targets
-gnatwa every optional warning is on
-gnatwe warnings are errors; a compiler that tolerates its own warnings teaches nobody
-gnatyy standard style checks, including the 79-column limit
-gnatW8 sources are UTF-8
-fno-common no tentative definitions
-gno-record-gcc-switches no command line in each unit's debugging information: GPRbuild passes every compilation the names of temporary files under /tmp/GPR.PID/, so two builds of one tree differed there, and the gate requires its cached release build to be the clean one's byte for byte (docs/process.md)

Debug mode adds -O0 -g -gnata -gnatVa -fstack-check: assertions, contracts and validity checks are on while the compiler is being written. Release mode uses -O2 -g -gnatn and keeps debug information; the release workflow's scripts/package.sh --debug takes it out of the published compiler and publishes it beside the archive (D531).

A Linux release build links its executables statically, glibc and the GNAT runtime inside them, as position-independent executables (-static-pie), so the archive runs on any Linux, a musl or NixOS one among them. scripts/env.sh chooses the link as LANDIN_LINK, static for a Linux release and dynamic for a debug build and on Darwin, and landin_common.gpr's Linker package applies it; a bare gprbuild, as the flake's, links dynamically. Two rules come with it. The link adds -Wl,--fatal-warnings, so the warning glibc gives for a call that needs its own shared libraries at run time, as the name service and dlopen do, refuses the build rather than shipping a compiler that breaks on a host with another C library. And scripts/build.sh adds GPRbuild's -R: glibc's start of a static position-independent executable asserts that it names no run path, and kills it before main when it does. The link needs glibc's libc.a: Debian's and Ubuntu's libc6-dev hold it, Fedora's is glibc-static, and the flake's shell supplies its own.

Every unit of both projects is also compiled under compiler/ada/landin.adc, in both modes, as the projects' local configuration pragmas. It holds restrictions, never check suppression: each forbids a construct no unit uses, so a unit that starts using one is refused rather than silently paid for.

restriction why
No_Abort_Statements, Max_Asynchronous_Select_Nesting => 0 the compiler aborts no task, so finalizing a controlled object — every container reference and tampering lock — need not defer abort around itself
No_Tagged_Type_Registration nothing maps an external tag back to a type (no Ada.Tags.Internal_Tag, Descendant_Tag or class-wide stream input), so no tagged type enters the runtime's tag table during elaboration

Measured on 2026-10-16 when they were introduced, with the parser and syntax tree changes of the same round, checking hello-world fell by about a quarter. landin_common.gpr names the file, so the build counts it among the project files (scripts/build_identity.py finds every input from the project files) and editing it rebuilds from clean.

The shared library also compiles src/platform/landin_file_identity.c, src/platform/landin_tool_process.c, src/platform/landin_resource_usage.c and src/platform/landin_channel.c with the pinned toolchain's host C compiler and the host's system headers. These small POSIX adapters keep host-specific structures and wait/signal constants out of Ada; they do not inspect Landin target layout. Their switches are -std=c11 -Wall -Wextra -Werror -pedantic -fno-common -O2 -g -gno-record-gcc-switches in both modes: C warnings are errors too. The library project's Languages include C, so its C sources and headers are in the same source-checksum manifest as Ada, and editing an adapter cannot reuse stale objects. The adapters use only the host C runtime, already a GNAT runtime dependency; it adds no separately acquired library.

Before comparing that manifest, scripts/build_config.py asks the pinned GPRconfig to select the native Ada/C configuration. It records the configuration hash and the selected C driver's absolute path, binary hash and complete version response. It also records the selected GPRbuild executable's absolute path and binary hash, so replacing a local builder with one that prints the same version line still invalidates the build. Both project builds receive that same configuration snapshot, stored beside the per-mode build lock so cleaning objects cannot remove it. Changes to that identity force a clean rebuild in both ordinary and checksum modes; failed configuration or version probes preserve the previous successful build. An unchanged snapshot keeps its content and timestamp. This identifies the configured C driver, which need not be the bare gcc printed by the toolchain log. The wrappers own this native configuration and reject --config and --autoconf overrides; direct GPRbuild experimentation is outside their manifest contract. Configuration and version probes each have a ten-second limit.

Ada 2022 contracts (Pre, Post, Dynamic_Predicate) are load-bearing in debug builds, and debug is the default mode for that reason. Release mode drops those checks, so a rule that a package has to keep is written into its body as well: Landin.Source.Position_Of raises Compiler_Defect on an offset past the end whether assertions are on or not. Both modes are green, and a rule that only holds in one of them is not a rule the package keeps.

Reproducing

# Point at the pinned toolchain however this host provides it.
export LANDIN_GNAT_HOME=/path/to/gnat-16.1.0-1
export LANDIN_GPRBUILD_HOME=/path/to/gprbuild-26.0.0-1

./scripts/toolchain.sh    # record exactly what is about to be used
./scripts/clean.sh        # remove every artefact
./scripts/build.sh        # build refine and the test program
./scripts/test.sh         # build, then run the test program

On macOS replace the last command with ./scripts/dev-test.sh --host. Every selected case must pass. Run Linux workload/GDB checks on Linux and Darwin workload/LLDB checks natively on a Mac, LLDB from a terminal session; the unfiltered Linux harness's missing-tool refusal is not a successful current Mac test run.

Every command prints the toolchain identification first, so a captured log names its own compiler.

Keeping the records together

environments/pins.sh is the one place a version or a checksum is written. The container recipe, the CI manifest and the nix shell all read it, and check.py compares this file against it on a full run — including that flake.nix reads the pins rather than naming a version of its own. Several files naming a compiler version is several chances to be wrong, and the one that drifts is the one nobody reads.

Newer local toolchains

A newer GNAT may be used locally while the canonical one stays green. It is not evidence: a result that only reproduces on an unpinned compiler is not a result. Changing the pin is a recorded decision, not a side effect of an upgrade.

Darwin source debugging additionally pins dsymutil and dwarfdump to Apple LLVM version 21.0.0 in the native Mac policy. Their actual paths and binary hashes are retained with LLDB sessions and Mach-O debug artifacts.

External embedded environment tools

The Cortex-M lane assembles and links with GNAT's arm-elf archive from the release the host GNAT comes from, GCC 16.1.0 with GNU Binutils 2.46.1, whose driver is arm-eabi-gcc. environments/pins.sh pins it as LANDIN_GNAT_ARM_ELF_VERSION 16.1.0-1 with a checksum per host, which environments/cortex-m/setup.py and the nix shell read; its multilibs cover ARMv6-M through Armv8.1-M with MVE. Its GDB is built without Python, which the debugger sessions run, so QEMU and gdb-multiarch stay pinned in environments/cortex-m/tools.lock.json. The profile guide gives exact versions, options and reproduction on any glibc 2.38 Linux x86-64 host. None of them is an Ada bootstrap dependency.

refine itself looks for arm-eabi-gcc and then arm-none-eabi-gcc, the name Debian, Ubuntu, Fedora, Homebrew and Arm's own releases give the same bare-metal GCC (D532), so a distribution's links without a flag; the gate's outside-user-stock job links firmware with Ubuntu's.

platform archive sha256
Linux x86-64 gnat-arm-elf-linux64-x86_64-16.1.0-1.tar.gz 9e6bb6696de1b84e26a3fbeebd67d5e7c9aad28a6bdee4cb8e59328b6fd99078
Linux arm64 gnat-arm-elf-linux64-aarch64-16.1.0-1.tar.gz 6f09f8efe4f36cc4a8c1f9da1c554bca043722fd11bb8475dbe100f03543b2a3
macOS arm64 gnat-arm-elf-darwin-aarch64-16.1.0-1.tar.gz 10fc8bc6b6a67def53c2497e21b06289bfadf845a609f6a3679cad06c8bbf5d4

The RV32 target's lanes assemble and link with GNAT's riscv64-elf archive from the same release, GCC 16.1.0 with GNU Binutils 2.46.1, whose driver is riscv64-elf-gcc (D660). environments/pins.sh pins it as LANDIN_GNAT_RISCV64_ELF_VERSION 16.1.0-1 with a checksum per host, which the nix shell reads. Its multilibs include rv32im/ilp32, which -march=rv32imc_zicsr_zifencei -mabi=ilp32 selects, and rv32imac/ilp32. refine looks for riscv64-elf-gcc and then riscv64-unknown-elf-gcc, the name Debian's and Ubuntu's gcc-riscv64-unknown-elf gives the same bare-metal GCC. environments/cortex-m/setup.py installs the Linux x86-64 one for the RV32 emulator lanes, which run on Espressif's QEMU, locked with its libraries in environments/cortex-m/tools.lock.json (D695).

platform archive sha256
Linux x86-64 gnat-riscv64-elf-linux64-x86_64-16.1.0-1.tar.gz 01cb5e97d6b51ed21f677912bc09bd6caca430515d09c8feda171c17b4fa95db
Linux arm64 gnat-riscv64-elf-linux64-aarch64-16.1.0-1.tar.gz e08cbbf929ffcb9ca931ad41d7fd6d9a95a2ab46ad2830daf9e3a4ea11104a32
macOS arm64 gnat-riscv64-elf-darwin-aarch64-16.1.0-1.tar.gz c4b76df21e1518b9b3ba9a34a515ef951f8a1a333640df2d5f2382e5c23d6df3

Cortex-M emitted-code runtime

The Cortex-M backend's external execution harness uses the pinned arm-elf archive above. Generated arithmetic may require its GCC 16.1.0 thumb/v6-m/nofp/libgcc.a multilib. This is a target runtime dependency, not an Ada bootstrap dependency or a C backend. Each linked test records its archive hash, requested helpers, map members, ELF attributes and unresolved-symbol check. The target guide records provenance, calling conventions and the handoff to compiler-owned startup and the freestanding core.