Landin the environments discuss source

Development and validation environments

.github/workflows/gate.yml is what runs now: every target on every push, unless the push meets one of its two reuse conditions, identical-tree reuse or an explanatory edit, which the gate reference states; document and script checks always run. Canonical hosting is GitHub; git.sr.ht is a mirror. The exact-revision native acceptance approved every revision through 0.2.0 and no longer runs; scripts/ci/ has been removed, and the passages below that describe it, and the SourceHut gate results they cite, are historical.

Native macOS arm64 remains a development and gate environment. Use ./scripts/dev-test.sh --host for compiler-host feedback; the gate runs darwin-host, darwin-host-release, whose last step is the LLDB sessions, and darwin-parity on the GitHub-hosted macos-26 image. See the native Mac guide for current development commands.

Embedded firmware and freestanding library consumers run on Linux x86-64 through environments/cortex-m/run.py. A full gate run splits its lanes into three cortex-m jobs, cortex-m-programs, cortex-m-corpus and cortex-m-rv32, which keep separate QEMU CPU and synthetic device evidence. Mac --host checks compiler behavior for Cortex-M and executes no embedded workload.

FreeBSD x86-64 and arm64 run in system VMs on Linux. Each has separate recurring runtime, native guest LLDB and C ABI verdicts. Linux x86-64 emits and inspects hashed payloads against a checksum-locked FreeBSD 14.4 sysroot. The same hosted job boots a fresh VM from the locked 14.4 image and executes them, amd64 under KVM and arm64 under emulation; the evidence records the actual guest version and CPU probes.

RV64 Linux LP64D runs in the gate's rv64-qemu jobs: the release compiler's whole test program with linux-rv64 as its lane on ubuntu-24.04, linked by Ubuntu's riscv64 cross packages and run under the flake's pinned QEMU user emulation, the emulator's own failures listed in compiler/tests/cross-lanes.json. That is evidence about the emitted code, none about RV64 hardware. Its physical lanes, cross-emitted for the RISE service's runners with the sole label ubuntu-24.04-riscv, with separate recurring runtime, native GDB, C ABI and ISA-level verdicts that retain hardware identity and transcripts, are suspended from the gate until they are dependable. See the RV64 evidence guide.

GitHub Actions runners

Linux and Darwin jobs run on GitHub-hosted images for every event, in the gate, the called determinism workflow and the links, Pages and release workflows: ubuntu-24.04 for Linux x86-64, ubuntu-24.04-arm for Linux arm64 and macos-26 with DEVELOPER_DIR set to Xcode 26.6 for Darwin, which environments/macos-arm64/policy.json records; a Mac of one's own needs tools that policy admits, and the macOS guide says what happens with a newer Xcode. The repository is public, so these minutes are free. The one exception is the gate's physical board legs, which run on the self-hosted landin-rig runner on the rig host for a push to main, the weekly schedule and a manual dispatch, and never for a pull request; its job-started hook refuses every other job. The boards guide and the gate reference describe them. FreeBSD runs in a VM each job boots: amd64 under KVM, which the x86-64 image offers, and arm64 under QEMU's system emulation, because the arm64 images expose none. A probe on 2026-10-16 (run 38921327105) found /dev/kvm on ubuntu-24.04 and none on ubuntu-24.04-arm or ubuntu-22.04-arm, whose kernels log kvm: HYP mode not available.

From 2026-10-07 to 2026-10-16 these jobs ran on registered runners, which measured slower; their setup is in this document as of da765093.

Each job installs what it needs on a fresh image. The pinned-toolchain action fetches the Ada archives checksummed in environments/pins.sh, in 4 to 15 seconds on the hosted images. scripts/ci_packages.sh verifies the requested packages, including Clang's exact version, and runs apt only for missing or mismatched ones. The hosted images have four vCPUs, and the widths measured on them are four GPRbuild workers on Linux, three on Darwin and eight fixture workers. The gate shares each host's checked debug and release builds with that host's lanes and determinism manifest; standalone determinism builds its own compiler.

The compiler job installs Ubuntu's Emacs for the refine lsp smoke, which needs no tree-sitter. The editor grammar's Emacs checks run only where Emacs is installed, and the hosted image has none: the grammar needs tree-sitter ABI 15, which Ubuntu's Emacs 29 lacks. LLDB launches programs on the hosted macOS image, as it did before the switch.

See the FreeBSD VMs for the guests.

Environments

environment role status
native macOS arm64 compiler-host development; darwin-host, darwin-host-release with the LLDB sessions, and darwin-parity gate lanes working
Apple Container, linux/amd64 under Rosetta retained environment troubleshooting, outside the development workflow available
Apple Container, linux/arm64 on Apple silicon Linux arm64 work before a push: the pinned aarch64 toolchain runs natively, with no emulation, in a Debian container working
QEMU user emulation on Linux x86-64 a cross lane for another Linux architecture, with a cross driver: evidence about the emitted code, none about the pinned toolchain; nix develop provides it, and the gate's rv64-qemu jobs run RV64's working
FreeBSD amd64 and arm64 system VMs on Linux independent runtime, native guest LLDB and C ABI gate lanes with checked CPU levels working
GitHub Actions gate.yml runs every target unless a reuse condition applies: both compiler modes on Linux x86-64 and on Linux arm64 with GDB, the host suite, parity and LLDB on macOS arm64, FreeBSD's VM lanes, RV64 under QEMU user emulation, every Cortex-M and Xtensa lane, the called determinism.yml comparison and, on a board-scope event, the physical boards on the rig; links.yml, release.yml and pages.yml run separately working

The exact-revision acceptance on the native Linux runner, its Darwin counterpart and the builds.sr.ht manifests are retired; the historical section below says what they were.

No build manifest is submitted. GitHub is canonical and git.sr.ht is a mirror, kept in step by a second push URL on the same remote (the integration recipe says what the mirror holds and how a deletion reaches it); the Pages and GitHub-mirror manifests are retired with the SourceHut gate, and scripts/site.sh renders and packages without publishing. .github/workflows/pages.yml is the only publisher. The former automatic Nix manifest was retired earlier, and the gate's flake job now builds the flake on every run that does not reuse a pass (D585).

Native macOS arm64 began as a development loop and became a validated target of its own, with its own compiler build, platform tools and debugger gate; a result produced here is not Linux evidence, and a Linux container is never Darwin evidence.

./scripts/macos.sh --output .scratch/macos-validation-1 captures the native environment, assemble/link/run an arm64 smoke program, exercise LLDB, build and run compiler-host checks in both modes, and sample the inherited resource limits. The Apple tool policy, reproduction commands and the historical full-harness option are documented in environments/macos-arm64/README.md. This established the compiler host; Darwin lowering and source debugging followed. The retired acceptance selected compatible native policies with full release hosted coverage for routine changes and full release GDB/LLDB for debugger risk. Historical schema 3 remains both-mode milestone evidence.

QEMU full-system x86 is supplemental. It is not the daily loop and it is not the gate.

Commands

Every environment runs the same scripts once its pinned toolchain is named; the nix shell names it itself:

export LANDIN_GNAT_HOME=...      # the pinned GNAT for this host
export LANDIN_GPRBUILD_HOME=...  # the pinned GPRbuild for this host

./scripts/toolchain.sh
./scripts/clean.sh
./scripts/build.sh
./scripts/test.sh

On a Mac use ./scripts/dev-test.sh --host --target=linux-x86-64, optionally with an exact --suite or --case. Every selected check must pass. The first native Mac run's unfiltered missing-Linux-driver result is a historical environment observation, not a current success rule.

Linux work during the macOS and Cortex-M work ran on the native Linux runner, using focused development slots or committed acceptance. The container commands below are retained for explicit environment troubleshooting; they are not part of the Mac development or delivery loop:

./scripts/linux-loop.sh              # build and run the suite in linux/amd64
./scripts/linux-loop.sh sh -c '...'  # anything else, in the same environment

Artifact-writing checks need a guest filesystem with known name rules. The shared virtiofs mount cannot prove the host volume's rules for absent output names, so the collision guard can refuse distinct-looking output paths there. For runtime and quality checks, copy the sources and place the executable and its output directory on the container's own /tmp filesystem. The baseline code generation work's local evidence met the same requirement. Building the bootstrap and comparing its recorded IR can still use the shared mount.

For the edit/test loop, two developer wrappers retain checksum-safe staleness checking while avoiding a clean rebuild for every Ada edit:

./scripts/dev-build.sh
./scripts/dev-test.sh --suite='fixture execution'
./scripts/dev-test.sh --case='harness/filters select exact cases'
./scripts/dev-test.sh --fixture=runtime/variant-match-selects-tag

./scripts/dev-test.sh --host --target=linux-x86-64 --suite=checking

The selectors are exact, and one invocation may repeat them and combine suites, cases and fixtures, as the local feedback recipe shows. A filtered run prints FILTERED in its transcript; it is fast feedback, not validation evidence. ./scripts/dev-test.sh --help prints the options and the suite names without building anything. The developer build asks the pinned GPRbuild for checksum-based Ada recompilation; a changed source inventory, project file or selected GPRbuild executable still makes it clean. The build finds its inputs from the project files, so a file a project names counts the moment it is named; the scripts that run the build are not inputs of it, and editing one recompiles only the provenance unit. A build with nothing to do, a job count aside, says so without running GPRbuild. The ordinary build.sh and test.sh remain complete native Linux commands; --host selects Mac compiler checks. Nothing approves a revision now. The container command is retained troubleshooting, not a routine gate.

LANDIN_BUILD_MODE accepts only debug or release, before any build path is used. Builds and tests hold an OS lock for their host tag and mode through the entire command, including the build nested in test.sh. Different modes and tags can run concurrently. Host cleanup waits for both modes; clean.sh --all waits for every tag. The permanent lock files live in compiler/ada/.build-locks/, outside the directories cleanup removes. Python's standard-library fcntl supplies these locks on the supported macOS and Linux hosts; the kernel releases them when the last using process exits.

A build links its executables into its tree's link/ and then publishes them into bin/ by a rename, so nothing ever finds bin/refine missing or half-written. A tool that runs a build's refine without its mode lock — a corpus lane, test_determinism.py, emit_manifest.py — holds that build's readers lock instead, through scripts/build_lock.py's reading(): several can run at once, and a rebuild compiles beside them and waits to publish until they finish, rather than replace the compiler between two of their requests. Whoever waits for a lock says which lock, and the pid and command of each process that holds it.

Every build says why it builds what it does: no earlier build, sources changed, the inventory or a project changed, or the last build did not finish. A source edited while a build runs leaves that build unverified, and the refusal names each file that changed and says to run the build again. A build script's edit does the same. An edit to a tracked file the compiler is not built from, a document for instance, or a commit made while the build runs, changes only the checkout state refine version would report: the build says so and stays verified, as a build of the tree it began from, and the next build recompiles the provenance unit.

GPRbuild decides to rebuild the library and to relink by time stamps, the library's at one-second resolution, and never by content, so a build tree whose objects were copied, restored or rewritten within one second can keep an executable linked from older objects. After each project builds, scripts/build_link.py compares the archive with the compiled objects and the executable with a record of the objects it was linked from, and has GPRbuild rebuild the library or relink when they disagree. The manifest records each executable that was linked, by content, and a build that finds nothing to do still requires bin/ to hold exactly those executables. A clean rebuild removes everything but bin/. The developer build keeps what a failed build compiled, because the checksum mode recompiles whatever no longer matches its source, and after an interrupted build it discards only the files that build wrote, any of which may be half-written; the ordinary build starts those from clean.

A session profile taken while aggregates and value layout were implemented had enough timestamps to set the priority: clean debug and release builds and whole-fixture runs occupied almost all measured time, while all six measured container lifecycle phases rounded to zero seconds and the complete one-shot startup stayed below one second. Keeping a persistent container would add state without attacking the bottleneck. The default Linux loop instead stopped calling build.sh before test.sh, since test.sh already owns its build, and test.sh --record-and-run now records and runs after one build when both are deliberately requested.

The loop asks for 4 GiB, and LANDIN_LINUX_MEMORY overrides it. That is not a preference. A release build is -O2 with -gnatn, so gprbuild's -j0 runs one gnat1 per core doing cross-unit inlining, and in a default-sized VM the kernel kills one of them:

gcc: fatal error: Killed signal terminated program gnat1
compilation terminated.
   compilation of landin-ir.adb failed

The unit named there is whichever was unlucky, not a unit with anything wrong in it — the same source builds in release natively and on the x86-64 gate. This is written down because the message reads exactly like a compiler defect in one file and cost an investigation once already.

environments/images/contributor.Containerfile, the contributor image's recipe (D1668), pins its base image by digest and installs GNAT and GPRbuild through environments/pins.sh's landin_install_toolchain, which verifies both archives against their checksums before unpacking either of them, for the platform it is built for: scripts/linux-loop.sh builds it for linux/amd64, and the release workflow for amd64 and arm64, publishing it as ghcr.io/701-dev/landin-contributor at each release. Its build context is environments/, so the recipe can copy pins.sh in. It also installs the versioned Debian stable clang-19 package beside libc6-dev for C header extraction and generated-adapter tests. The frontend is deliberately separate from the pinned GNAT that builds refine: Clang supplies an external JSON AST, not a product backend. Its package comes from the container's existing Debian channel rather than a third download authority. The C boundary work refreshed that one base pin from Debian 12 to the official Debian 13 trixie-20260824 image index, which gives the local loop Clang 19.1.7. The gate installs Ubuntu 24.04's clang-19 at the exact version environments/pins.sh names; refine bindings' tests pass on both. GNAT and GPRbuild retain their existing versions and archive checksums.

GDB comes from that same Debian channel for scripts/debug.sh in the local container. In the Linux nix shell gdb is the GDB the pinned GNAT bundles, which has no Python, and its locked package set's GDB, with Python and every architecture, is gdb-multiarch. The gate runs the script with the release compiler and the GDB the pinned GNAT bundles. It checks source debugging of emitted programs, which is separate from debugging the Ada compiler itself.

Native GDB cannot read registers through Rosetta's ptrace interface: even /bin/true reports Cannot PTRACE_GETREGS and Couldn't get CS register. The local image therefore also supplies qemu-user. Its qemu-x86_64 GDB remote stub supports the same breakpoint, register and stack operations without Rosetta's ptrace path. This explicit local transport remains emulated evidence; the native gate uses GDB directly and has no fallback.

environments/pins.sh remains the one place an independently downloaded Ada toolchain version or checksum is written; check.py holds the recipe, compiler/ada/TOOLCHAIN.md and the nix shell to those same values, and checks the current native Mac tool policy against TOOLCHAIN.md. Objects are kept apart per host by LANDIN_BUILD_TAG, which scripts/env.sh defaults to os-arch: one checkout is built by two hosts, and .ali files from both in one directory is a build that fails confusingly.

scripts/toolchain.sh prints the host, the build mode and the exact compiler and builder versions, and build.sh and test.sh print it before doing anything. A captured log therefore names its own toolchain, which is what recorded evidence requires.

Recorded results

date environment toolchain result
2026-08-20 macOS arm64 (Darwin 25.5.0, Apple M1 Pro) GNAT 16.1.0, GPRbuild 26.0.0 (aarch64-apple-darwin) clean build; debug and release
2026-08-20 Apple Container 1.2.2, linux/amd64 under Rosetta, Linux 6.18.15 GNAT 16.1.0, GPRbuild 26.0.0 (x86_64-pc-linux-gnu) build from an empty build directory; debug
2026-08-20 builds.sr.ht debian/stable, Linux 6.12.94 x86-64 hardware, job 1867022 GNAT 16.1.0, GPRbuild 26.0.0 (x86_64-pc-linux-gnu) both archives verified against their checksums; clean build; debug and release; check.py clean; 47 seconds
2026-10-02 Apple Container 1.2.2, linux/arm64 Debian trixie on an Apple M1 Pro, 8 CPUs, 8 GiB GNAT 16.1.0, GPRbuild 26.0.0 (aarch64-linux-gnu) both archives verified against their checksums; clean build; the whole test program on the Linux arm64 lane, 800 cases, in 339 seconds; the GDB sessions with the bundled GDB 17.2

The retired builds.sr.ht gate job also printed refine --identify, so "no release version is assigned" appeared in the log of every run rather than only inside a test; the GitHub gate does not.

Case and check counts move as the suite grows, so they are not recorded here; the run itself is the record, and scripts/toolchain.sh output heads every one. What is recorded is that each environment built from clean and finished with no failures, in the modes named.

The two transcripts are byte-identical, which is the property worth having: the same cases in the same order with the same counts, on two hosts whose toolchains were built for different architectures.

One caveat, recorded because it was seen: a single early run ended in an unhandled exception and a traceback, and it has not reproduced in thirty subsequent runs including four from a clean checkout. The exception was not captured, so there is nothing to diagnose from. What changed as a result is that Landin.Testing.Run now catches an exception from a case, reports it as that case's failure, and keeps running the rest; a defect that used to take the whole transcript with it now costs one line of it.

A nix shell, for convenience

flake.nix provides nix develop with the pinned toolchain, contributed by ZAZPRO. It installs the same archives the container recipe and the GitHub workflows install, verified against the same checksums, because it reads environments/pins.sh rather than naming a nixpkgs attribute — at the time of writing nixpkgs carries GNAT 16.2.0 and GPRbuild 25.0.0, and the pin is GNAT 16.1.0 with GPRbuild 26.0.0.

It is defined for the three systems the pins carry checksums for, x86_64-linux, aarch64-linux and aarch64-darwin. The prebuilt .#refine-bin exists for a system a release has published an asset for, with its hash recorded in the flake; since 0.2.10 that is all three. Where it exists it is the default package, which nix profile install and nix run take, and .#refine is the source build by name; elsewhere the source build is the default (D1707). The aarch64-linux and aarch64-darwin outputs are evaluated on x86-64 by the gate's flake job, and only the x86-64 ones are built there (D585); the aarch64-linux shell is not yet built on arm64 hardware. That job is the whole of Nix CI.

Both packages install the standard library beside the compiler, as lib/landin/{core,hosted,platform} next to bin/refine, and refine finds it there from its own executable, so a program anywhere imports it with no option. .#refine-bin fetches 0.2.11. Archives hold the library from 0.2.8 on; an archive from 0.2.7 or earlier holds refine alone.

Outside nix, the same archives are installed by Homebrew, brew install 701-dev/tap/landin and brew upgrade landin, on aarch64-darwin, aarch64-linux and x86_64-linux; the formula lives in the tap 701-dev/homebrew-tap, outside this repository and its gate, and needs the Xcode command-line tools on macOS and the system's GCC driver on Linux to link, as an unpacked archive does. What the formula depends on in a release, and the step that moves it, are in the installers.

The shell sets LANDIN_BUILD_TAG=nix-${system}: nix-x86_64-linux, nix-aarch64-linux or nix-aarch64-darwin. Shells sharing a checkout therefore use separate object trees and locks, apart from the other environments' trees. An experiment that should not disturb the shell's tree names a variant, which the shell does not set: LANDIN_BUILD_VARIANT=inliner ./scripts/dev-build.sh builds in build/nix-x86_64-linux.inliner/, with its own locks, and every command run with the same variant tests that build. The nix build derivation still uses nix in its isolated build directory. python3 comes with it, so check.py and scripts/site.sh work in that shell too. On Linux it also selects llvmPackages."19".clang and glibc.dev from the package set fixed by flake.lock, matching the Debian environments' Clang major without following nixpkgs' default. Its clang-19 is that package set's 19.1.7, not the gate's: the bindings job runs Ubuntu 24.04's clang-19 at the version LANDIN_CLANG_UBUNTU pins, 19.1.1, and refine bindings' tests pass on both. The Darwin shell does not pretend that its SDK is a Linux sysroot; run binding-generator tests through scripts/linux-loop.sh there.

The shell also holds the editor grammar's tree-sitter CLI, the release binary of the version environments/pins.sh pins, checked against its checksum for each of the three systems, so highlight/test.sh --integration runs in it without npm, and actionlint and shellcheck likewise, the release binaries scripts/actionlint.py holds the workflows and their run: scripts to, as the gate's scripts job does. Its bash is nixpkgs' interactive one, because stdenv's has no compgen or complete and the completion case of scripts/tests/test_cli_native.py needs both. Its two landin: banner lines go to standard error, so nix develop -c cmd > file captures only what the command writes; check.py holds the hook to that. They are written only when standard error is a terminal, so nix develop -c cmd prints what the command prints and what nix itself says, and nothing drops landin: lines, the build's own among them. scripts/debug.sh takes the pinned installation from the gnat on PATH when LANDIN_GNAT_HOME is unset, which in this shell is the wrapped GNAT, and its gdb is that installation's.

Nix itself says two things around a command that are not the command's: warning: Git tree '...' is dirty, whenever the checkout has uncommitted changes, which only says the shell was evaluated from the working tree rather than a commit; and, while several nix develop commands start at once, SQLite database '.../eval-cache-v6/...' is busy, which says one of them waited for another's evaluation cache and changes nothing they do. export NIX_CONFIG='warn-dirty = false' silences the first. The second goes away with --option eval-cache false, at about a second more per command, or by entering nix develop once and running the commands inside it, which AGENTS.md asks of related commands anyway.

On Linux x86-64 it holds landin-fhs, an FHS environment of the store's glibc and libstdc++, which the Cortex-M, RV32 and Xtensa lanes run themselves again inside on NixOS, whose stub loader refuses the Debian and release binaries environments/cortex-m/tools.lock.json locks; with dpkg-deb, setup.py installs those binaries from the shell too. See the lanes' guide.

On Linux the shell also holds LLDB, LLVM 19's from the same package set, FreeBSD 14.4's base LLDB being LLVM 19's too. The LLDB sessions FreeBSD's lane runs in its VM run against this host's own Linux images with

./scripts/dev-build.sh
python3 compiler/tests/debugging/lldb_linux.py \
    --refine "$PWD/compiler/ada/build/$LANDIN_BUILD_TAG/debug/bin/refine" \
    --output "$(mktemp -d)/lldb"

the source session over compiler/tests/freebsd/debug.ldn and the stack switch's, at the four standard profiles, each held to the verdict the FreeBSD lane applies. It is evidence about the sessions and LLDB on a Linux image, none about FreeBSD or Darwin; the Darwin sessions read a dSYM through Apple's LLDB and run only on a Mac.

Its Linux behaviour is not settled by the local container, and that is not a formality. The pinned gprbuild dies with a segmentation fault when argv[0] names something other than the executable that is running — which is exactly what nixpkgs' makeWrapper arranges — and under Rosetta the same store paths ran without complaint. Evidence about this shell therefore comes from nix on x86-64 hardware, running the same scripts as every other environment.

Measured since, and the reason that is not merely a preference: the local loop cannot build this shell at all. Rosetta's binfmt handler replaces a custom argv[0] with the interpreted binary's own path — a program exec'd as I-AM-ARGV0 reads its own path back out of /proc/self/cmdline — so every nixpkgs wrapper built with --inherit-argv0 loses the name it was given. auto-patchelf is one of them: it runs under a bare interpreter that cannot import elftools, autoPatchelfHook fails, and the pinned archives are never patched. That is the paragraph above read from the other side — the same sensitivity, met by the translation rather than by the toolchain — and it is why this shell is answered for on hardware.

The first native Linux path needed one more thing of it, and only running programs found it. nixpkgs wraps a compiler under the names gcc, cc, g++ and cpp, and prefixes a driver's name with a GNU triplet only when it is cross-compiling; refine names its driver by triplet, so it reached the pinned archive's own x86_64-pc-linux-gnu-gcc rather than the wrapper, and linked with a compiler holding no libc — cannot find Scrt1.o. gprbuild was unaffected, because it links through the wrapper, which is why the compiler built in that shell and the programs it emitted did not. The flake now points every triplet-prefixed driver the archive ships at the wrapper.

Both of those were found by hand. The former automatic Nix manifest checked the shell at builds.sr.ht as a non-gate only when shell inputs changed. That automatic manifest is now retired; the gate's flake job builds both packages and runs scripts/toolchain.sh inside the shell on every gate run that does not reuse a pass (D585). Run scripts/test.sh explicitly inside nix develop on native Linux after shell-input changes; this remains supplemental environment validation. Its first run settles both halves. The shell built on x86-64 nix with the pinned GNAT 16.1.0 and GPRbuild 26.0.0, and the suite passed 133 cases with no failures — runtime fixtures execute among them, which is the case that reported cannot find Scrt1.o and the reason any of this was looked at. That is a result for this shell and for nothing else: the table above is still what the three environments say.

On Linux the shell is also the cross lane, so another Linux target's corpus runs from it with nothing found by hand: QEMU's user emulation, qemu-aarch64 and qemu-riscv64; each other Linux target's cross driver and binutils, from the same package set, under the triplet names refine asks for — aarch64-linux-gnu-gcc, riscv64-linux-gnu-gcc and on an arm64 host x86_64-pc-linux-gnu-gcc — each reaching that glibc's static maths archives; and the package set's multi-target GDB as gdb-multiarch, since the pinned GNAT's own gdb comes first on PATH and reads only its own architecture. environments/pins.sh records the QEMU and cross GCC versions flake.lock gives, and the shell refuses to build from a lock that gives others. ./scripts/debug.sh --target=linux-arm64 and the commands in the test guide's lanes run in it as written.

The libm fixture of the library directive also needs nixpkgs' separate static glibc output, from when linker.library("m") asked for libm.a alone; the Linux shell still includes it as a library input. Since D523 the request is the driver's -lm, which takes the shared libm first. The shared glibc output precedes the archive output so the driver's own -lc stays dynamic; the shell check verifies that dependency on the fixture. Job 1883411 passes the complete 418-case suite with 12,425 checks and verifies the dynamic libc dependency.

It is a convenience for editing on a nix machine and carries no authority of its own: the table above is unchanged by it, and a result produced in it is not evidence for any of the three environments. flake.lock pins the nixpkgs revision the shell is built from, but what it installs is decided by environments/pins.sh rather than by that revision.

What each environment is authority for

The Apple Container loop runs a real Linux kernel and a real x86-64 userspace, so it catches everything that depends on the operating system, the C library, the linker and the target's 64-bit little-endian layout: the whole suite passing there is real evidence, and it is why the Linux checksums in compiler/ada/TOOLCHAIN.md are verified rather than transcribed. It does not execute x86-64 instructions on x86-64 hardware — Rosetta translates them — so its instruction-level and timing-sensitive results are not authority. The gate executes emitted code on its target's hardware for Linux x86-64 and arm64, macOS arm64 and FreeBSD amd64, the last under KVM, and on a board-scope event on the boards on the rig; FreeBSD arm64 and RV64 run emulated, and the Cortex-M, RV32 and Xtensa lanes under QEMU.

Hosting is canonical GitHub, mirrored to git.sr.ht. GitHub Actions runs the gate, publishes the pages and checks host-independent emission. The underlying compiler and test commands remain ordinary repository scripts.

Native LLDB runs through scripts/debug.sh --target=darwin-arm64 and the committed Mac policy. It validates emitted Landin programs with the pinned Apple debugger, dsymutil and dwarfdump, retaining dSYM/UUID and source-map matching evidence. See the native parity guide for the complete coverage and the explicit large-image limitation.

Embedded environment probes

Native Linux x86-64 with glibc 2.38 or later is the host for the pinned QEMU execution profile; its lock carries the Debian 13 runtime those tools load, and the gate runs it on Ubuntu 24.04. The retired native Linux acceptance's documents job executed and retained these small C/assembly probes from its exact archive. The Mac continues native compiler-host and Darwin workload/LLDB validation; it does not run Linux containers for embedded tests. QEMU owns CPU/startup evidence, and a repository-owned harness on its debugger stub runs the explicit synthetic peripheral lane on the same QEMU. Neither is physical hardware fidelity or Landin backend proof.

The gate's QEMU lane also runs with independently compiled C layouts and C/assembly ABI witnesses, compared with the compiler's Cortex-M planner and original synthetic-32 goldens. The retired acceptance export retained those artifacts beside the CPU and peripheral evidence. No embedded tools run on the Mac; the former native hosted acceptance policies covered their own work.

M0 scalar atomic, barrier and nested interrupt controls and bounded memory/cache models run on this same Linux path. Native hosted fixtures execute Landin atomics, generic evidence calls, SC fences and an escaping ordinary DMA slice on each real host. Cacheless emulator results never stand in for cached DMA maintenance. The retired dual-native archive bound all three evidence classes; the memory probe guide records limits.

Compiler-generated packed image execution runs on both native hosts and the Linux line-transport lane, including unnamed-encoding traps at all six optimization/specialization profiles. Independent M0 C controls and literal access traces remain separate from native Landin execution. The retired acceptance documents job built the archived compiler and exported these lanes beside previous embedded evidence; that lane on its own was not a Cortex-M compiler backend.

The same pinned tools support compiler-generated Cortex-M0 execution of the inventoried shared runtime corpus and direct synthetic-device packed/byte/ordinary-slice DMA transactions. The external startup and linker test harness does not enable Landin firmware entry or vectors. The retired export retained objects, ELF/map/disassembly, literal ABI and device oracles, helper identities and bounded image/stack observations; complete measured firmware and Landin source debugging belong to the freestanding evidence lane. Native GDB/LLDB coverage checks each hosted backend separately.

The compiler-owned Cortex firmware lane runs only in the existing native Linux embedded environment. It uses the same pinned tool inventory and produces generated startup/vector/linker inputs and fresh-image comparisons. The retired acceptance export included them. The external backend harness, hosted line transport and independent C/assembly probes remain separate evidence. See the firmware execution contract. The Mac remains the native compiler-host/Darwin/LLDB lane; no local Linux container or Nix CI path is introduced.

The generated-device lane also runs in the native Linux embedded entry, after the inherited probes. The retired export retained separate devices artifacts; vendor-input and regeneration checks run offline on both hosts. The selected vendor is provenance, not a replacement QEMU board.

The complete derived driver runs in the native Linux embedded entry. Its QEMU boot, separate synthetic protocol model and independent layout control retain their distinct evidence roles. Native GDB/LLDB routine risk coverage validated the checking and linker repairs it needed.

The evidence.py lane adds actual Cortex line/function GDB sessions and complete-application resource scenarios to that Linux embedded entry. It preserves the fixed board map and separate CPU/peripheral/control identities. The retired export retained source/debug matching, ELF load accounting, SP/paint/frame observations and bounded results. The retired dual-native milestone policies retained both compiler modes and native GDB/LLDB; no Cortex debugger session replaces a native one. See the evidence contract.

Historical: the exact-revision acceptance

Through 0.2.0 a controller under the removed scripts/ci/ accepted each revision on a native Linux runner and a Mac against one archive; the native acceptance operations describe it, and the history of docs/process.md holds how its scope was chosen.