Build Systems
A breadth-first survey of build-system engines — how they schedule tasks, decide what is dirty, discover dependencies, store and share outputs, sandbox actions, and distribute work — across the academic literature, twenty industry rows (sixteen grid engines, one deliberately off-grid system, and three that are not engines at all), and the Nix ecosystem's experiment with making the build graph itself dynamic. Fourteen synthesis pages then re-cut the same evidence along the axes a build-engine designer actually faces: sandbox overhead, traced dependencies, semantic caching, daemon compilers, CAS eviction, reproducibility, and cryptographic provenance. The survey informs the Sparkles task-DAG work in sparkles:build-primitives and any future dub build engine.
This is the master index for the build-systems research tree. Each row links to a deep-dive written against the system's own source tree at a pinned commit, or the paper's own text; where this index summarizes a system, the deep-dive is the source of truth. The sibling Monorepo & Workspace Tooling survey covers thirteen of the same tools from the workspace/orchestration side; this tree covers their engines and cross-links rather than repeating that treatment.
This survey answers six questions:
- Vocabulary — what is a scheduler, a rebuilder, a verifying or constructive trace, early cutoff, a shallow build? See concepts.
- What the theory says — which scheduler × rebuilder combinations are correct, minimal, cloud-capable, or uninhabited, and what changes when dependencies are dynamic? See the Foundations rows below.
- How twenty industry rows answer the six spine dimensions — task model, rebuilding, discovery, store, hermeticity, distribution. Three of the rows are not engines: GN and Meson generate a Ninja graph, and Boba is an in-tree Bazel integration with no standalone repository. See the master catalog and its taxonomies.
- What Nix changes when the graph is a value — derivations, dynamic derivations, and the projects rebuilding Ninja-shaped graphs inside the store. See the Nix rows below.
- Where the field's open problems sit — the fourteen theme pages.
- What Sparkles should investigate — the application analysis separates its branch-specific baseline and workload questions from the research-only comparison.
NOTE
The catalog's reviewed labels record source/citation review and the documentation-build gate, not executable reproduction of every claim. The method and limits explain the evidence categories and selection bias. The comparison records research findings, assumptions and counterexamples; behavioral evidence records a small executable check of selected mechanisms. Dates marked ~ are approximate.
Last reviewed: November 4, 2026 (navigation and synthesis scope; catalog source pins unchanged)
Master Catalog
Scheduler and Rebuilder use the concepts vocabulary (topological/restarting/suspending × dirty-bit/verifying/constructive traces); — means the deep-dive declines to classify the system. Link points at the deep-dive; the taxonomies below group these rows by one axis at a time.
Foundations (academic literature)
| Subject | Venue / year | One line | Status | Link |
|---|---|---|---|---|
| Build Systems à la Carte | ICFP 2018; JFP 2020 | The scheduler × rebuilder design space this catalog is organized by | reviewed | à la carte |
| PIE (Konat et al.) | ASE 2018 | Scalable incremental building with dynamic task dependencies | reviewed | PIE |
| Build maintenance (McIntosh et al.) | EMSE 2015 | Large-scale empirics of build-technology choice vs maintenance cost (author preprint) | reviewed | build maintenance |
| Perfect Dependencies (Spall et al.) | OOPSLA 2020 | Speculative script execution with hazard checking (Rattle) | reviewed | perfect dependencies |
| Nix thesis + NixOS (Dolstra et al.) | 2006; JFP 2010 | The purely functional deployment model underneath the Nix store | reviewed | Nix thesis |
Engines and executors (industry)
| System | Scheduler | Rebuilder | Status | Link |
|---|---|---|---|---|
| BuildXL | topological | verifying traces | reviewed | BuildXL |
| Bazel | restarting | constructive traces | reviewed (+ monorepo Bazel) | Bazel |
| Buck2 | suspending | verifying traces | reviewed (+ monorepo Buck2) | Buck2 |
| build2 | topological (recursive) | mtime dirty bit + depdb | reviewed | build2 |
| Please | suspending | verifying traces | reviewed (+ monorepo Please) | Please |
| Ninja | topological | verifying traces (qualified) | reviewed (+ monorepo Ninja) | Ninja |
| GNU Make | topological | dirty bit | reviewed (+ monorepo Make) | GNU Make |
| redo | suspending | verifying step traces | reviewed (+ monorepo redo) | redo |
| tup | topological | dirty bit (observed) | reviewed (+ monorepo tup) | tup |
| Shake | suspending | verifying step traces | reviewed | Shake |
| Rattle | speculative (off-grid) | constructive in spirit | reviewed | Rattle |
| Earthly | static DAG (via BuildKit) | constructive traces + auto-skip | reviewed (+ monorepo Earthly) | Earthly |
| GN | not a cell (generator) | — | reviewed (+ monorepo GN) | GN |
| Meson | not a cell (generator) | — | reviewed (+ monorepo Meson) | Meson |
| Boba (Fuchsia) | — | — | reviewed (short page: no standalone repo; in-tree at build/bazel/) | Boba |
| Pants v2 | suspending | verifying step traces | reviewed (+ monorepo Pants) | Pants |
| Moon | topological | constructive (action cache) | reviewed (+ monorepo moon) | moon |
| BitBake | topological | signature-stamp dirty bit + sigdata trace | reviewed | BitBake |
| sbt | topological + suspension | per-invocation dirty bit + action cache | reviewed (+ monorepo sbt) | sbt |
| BuildKit | topological | constructive traces | reviewed | BuildKit |
Nix ecosystem
| Subject | One line | Status | Link |
|---|---|---|---|
| nixception | REAPI actions bridged into recursive-nix derivations, deduplicated by the store | reviewed | nixception |
| nix-ninja | Ninja graphs translated edge-by-edge into content-addressed derivations | reviewed | nix-ninja |
| sandstone | Per-module Haskell derivations emitted by a build (object/interface split) | reviewed | sandstone |
| drowse | nix-instantiate + crate2nix as build steps emitting derivations | reviewed | drowse |
| dgd | Go builds planned from the compiler's dry run via dynamic derivations | reviewed | dgd |
| nixgg | gcc/g++ invocations intercepted into per-invocation derivations | reviewed | nixgg |
| nix-cargo-unit | Cargo unit graph rendered as per-unit Nix derivations | reviewed | nix-cargo-unit |
| MakeNix | A Makefile expanded into one derivation per object file, mid-build | reviewed | MakeNix |
| Nix dynamic derivations | Zakaria's four posts + RFC 92 + the NixOS/nix sources: derivations producing derivations | reviewed | dynamic derivations |
Themes (synthesis)
Each page synthesizes across the deep-dives above plus its own primary sources; claims derived rather than directly sourced are marked Catalog inference on the page itself.
| Theme page | Question it answers | Status |
|---|---|---|
| Sandboxing overheads | What do ptrace/seccomp, FUSE, namespaces, Landlock, and eBPF cost, and what do they miss? | reviewed |
| Dynamic deps, distributed | Can dynamically discovered dependencies survive remote execution correctly? | reviewed |
| Dependency pruning | How are strict-deps violations and unused edges found and removed? | reviewed |
| Graph auto-generation | Can correct build definitions be synthesized from observed execution? | reviewed |
| Semantic caching | When can a cache key ignore bytes — interface hashing and its risks? | reviewed |
| Daemon compilers | What do long-lived compilers keep in memory, and what must hit disk? | reviewed |
| Link-time pruning | How do mold/lld, --gc-sections, ICF, and ThinLTO interact with the DAG? | reviewed |
| Compile-time execution | Where do macros, CTFE, and build.rs sit relative to the sandbox? | reviewed |
| CAS eviction | What should a content-addressed cache keep, and in what order does it discard? | reviewed |
| Cross-language DAGs | What unifies protobuf, FFI, and toolchain transitions in one graph? | reviewed |
| Speculative execution | What is shipped speculation (Rattle, dynamic execution) vs literature? | reviewed |
| Formal verification | What has actually been mechanized about build correctness? | reviewed |
| Reproducibility | Which nondeterminism sources remain, and which tools detect them? | reviewed |
| Provenance | What do engines emit for SLSA/in-toto today — and who signs it? | reviewed |
Taxonomy
Three re-cuts of the same twenty industry rows, one axis each. The five foundations are papers about the grid rather than rows in it, and the nine Nix projects are satellites that add no scheduler or rebuilder of their own (comparison §1.2), so neither group is re-cut here. Every placement, and every qualifier beside it, is the linked page's own classification, stated in its Analysis spine (or its numbered Task model & scheduling, Rebuilding & correctness, Dependency discovery) sections; the vocabulary is concepts §2–§5. Where a page declines to classify, the qualifier says so instead of forcing the row into a bucket.
By scheduler
Does the engine order a graph it already knows, restart work it could not finish, or suspend a caller until a late dependency arrives?
| Scheduler | What the pages say | Systems |
|---|---|---|
| Topological | A complete graph, then a ready set, a walk, or dataflow over the edges | BuildXL, build2, Ninja, GNU Make, tup, Moon, BitBake, Earthly (dataflow), BuildKit (demand-driven dataflow, not a topological sort) |
| Restarting | A function that cannot get a dependency returns, is re-invoked, and repeats its work | Bazel, Boba (the Bazel half only; the GN/Ninja half is topological) |
| Suspending | A caller blocks and resumes when the dependency arrives; no work is repeated | Buck2, Please, redo, Shake, Pants, sbt (topological Execute plus Left(target) suspension) |
| Off-grid | No key, target or fetch; the author's order weakened by speculation | Rattle |
| Not a scheduler | Builds a description, then exits | GN (task-description compiler), Meson (never schedules) |
Nine topological, two restarting, six suspending, one off-grid, two not schedulers: twenty rows. The qualifiers that keep a composite off its cell — the missing second half of Boba, BuildKit's dataflow, sbt's suspension — are argued on the linked pages.
By rebuilder
What does the engine consult to decide a key is current, and what does it keep for next time?
| Rebuilder | What the pages say | Systems |
|---|---|---|
| Dirty bit | One bit or one mtime per key; no early cutoff of its own | GNU Make, tup (the read set is the trace), sbt ("no memo yet", once per invocation) |
| Verifying traces | Recorded dependencies are re-checked; outputs stay where they are | BuildXL, Buck2, build2 (an mtime dirty bit refined by depdb — its nearest cell), Please, Ninja (command hash; inputs by mtime), redo, Shake, Pants, BitBake (nearest cell; currency is stamp existence, sigdata is the trace) |
| Constructive traces | The key maps to a reusable result or snapshot | Bazel (constructive in memory, verifying locally), Boba, Earthly (--auto-skip, "a dirty bit in all but name"), Rattle (constructive in spirit), Moon (one key; no content early cutoff), BuildKit (the value is a snapshot) |
| None (generator) | No rebuild decision for build outputs | GN (only its own regeneration is a dirty bit), Meson (delegates to Ninja; the delegated trace "holds no hashes") |
Three dirty-bit systems, nine verifying-trace systems, six constructive-trace systems, two generators: twenty rows. Composites are placed by the mechanism each page says decides correctness; sbt's action cache and Earthly's --auto-skip are noted, not promoted to a bucket. Both generators delegate rebuilding to Ninja, whose cell they inherit in practice without occupying it.
These buckets identify base mechanisms rather than forbid extensions. Tup adds opt-in output comparison, and a GNU Make recipe that preserves an unchanged output's timestamp can avoid downstream execution. The behavioral evidence checks the latter case; the comparison retains these qualifications.
By dependency discovery
Where does the edge set come from: the description, the tool's own report, or observation?
| Discovery | What the pages say | Systems |
|---|---|---|
| Declared | The description names inputs and outputs; nothing observes reads | Bazel (two narrow exceptions), Buck2, Please, GNU Make, redo (at runtime, by the script), Shake (by execution), GN, Moon, sbt, BuildKit, Earthly, Boba |
| Inferred | The engine parses the tool's own output or the source text | Ninja (depfile/.ninja_deps, dyndep), build2 (the preprocessed include list), Meson (depfile, then dyndep), Pants (source parsing) |
| Traced | Reads are observed at the syscall boundary and become the graph | Rattle |
| Hybrid | Declarations are checked or extended by observation | BuildXL, tup, BitBake ([file-checksums] plus the code parser) |
Twelve declared, four inferred, one traced, three hybrid: twenty rows.
Catalog inference: the four buckets are this catalog's, not the pages': compiler-emitted and source-parsed both sit under inferred, and hybrid keeps comparison §2.3's sense — declarations plus observation — rather than "any two mechanisms". Two declared rows carry a stated exception: GN records its own parser's reads, and Earthly expands COPY patterns statically. Both stay in the declared row, noted rather than promoted.
Milestones
When a capability landed, in the words and dates of the deep-dives and papers on disk. A release date, a paper's venue year, and a document's own date are each recorded as the page states them; nothing here is inferred from a version number.
| Date | Capability milestone | Stated in |
|---|---|---|
| 2004–2006 | KDE moves from Autotools to CMake: the CMake build exists experimentally from late 2004, and the switchover is "the steep slope upwards in CMake and downwards in Autotools in early 2006" | Build maintenance |
| 2006-01-18 | Nix — The Purely Functional Software Deployment Model defended: derivations, the store, and deep constructive traces | Nix thesis |
| 2010 | NixOS — the same model at distribution scale; a 1,036-derivation system graph measured in May 2010 | Nix thesis |
| 2014 | CloudMake (FM 2014) — the earliest verified artifact from a deployed industrial build system, in Dafny | Formal verification |
| 2015 | Build maintenance (EMSE 20(6)) — build-technology choice measured against maintenance cost | Build maintenance |
| 2015 | Pluto (OOPSLA 2015) — the build algorithm PIE implements | PIE |
| 2016 | BuildXL's stated motive: an Office-client fork took about 90 hours to build and release to dogfood | BuildXL |
| 2017-06-28 | Bazel unused_deps — strict deps introduced so unused edges can be removed | Dependency pruning |
| 2018 | Build Systems à la Carte (ICFP 2018) — the scheduler × rebuilder grid this catalog is organized by | À la carte |
| 2018 | PIE (ASE 2018) — scalable incremental building with dynamic task dependencies (reqTasks) | PIE |
| 2019 | À la carte → Coq (CoqPL 2019) — the Haskell abstractions translated to Coq, reported as work in progress | Formal verification |
| 2019-02-01 | Nix RFC 92 — dynamic derivations proposed | Nix dynamic derivations |
| 2019-04-17 | Rattle 0.1 — the forward, traced model shipped as a tool; 0.2 follows on 2020-05-27 | Rattle |
| 2020 | À la carte (JFP 30, e11) — the journal version whose vocabulary every page follows | Concepts |
| 2020 | Perfect Dependencies (OOPSLA 2020) — traced dependencies with hazard checking, at 7% Linux / 46% Windows overhead | Perfect dependencies |
| 2022 | Rattle in Agda — mechanised memoization, hazard checks and speculative reordering | Formal verification |
| 2022 | Forward Build Systems, Formally (CPP 2022) — the forward model proved, not only tested | Speculative execution |
| 2022-08-29 | Fuchsia RFC-0186 reviewed — Bazel adopted (Boba); GN/Ninja stays the outer build during the migration | Boba |
| 2022–2026 | Rust tracked_env tracked since 2022 but still unstable in 2026, so a macro's env and file reads stay outside rustc's dep-info | Compile-time execution |
| 2023-09-20 | Nix 2.18 ships builtins.outputOf — the first shipped surface for dynamic derivations | Nix dynamic derivations |
| 2024–25 | Nix language in Rocq — Mininix/NixLang semantics mechanised, as an interpreter rather than a build engine | Formal verification |
| 2025-03-11 | MakeNix post published — a Makefile expanded into per-object derivations mid-build (clone dated 2025-03-12) | MakeNix |
| 2025-07-16 | Earthly v0.8.16, the final release; Cloud and Satellites shut down the same day | Earthly |
| 2026-01-19 | Shake 0.19.9 — the built/changed verifying trace current at review time | Shake |
| 2026-08-10 | Meson 1.12.0 — CACHEDIR.TAG written on setup and regenerate, treating the build directory as a cache | Meson |
| 2026-09-13 | nixception 0.6.1 — REAPI actions bridged into recursive-nix derivations | nixception |
| ~2027 | mold — A Massively Parallel Linker (ASPLOS 2027, a preprint at review time): the linker as the build graph's coarsest task | Link-time pruning |
NOTE
~ marks the one row whose venue has not been held — the mold paper's ASPLOS 2027 — and 2022–2026 is an interval the compile-time page states as still open. Everything else is a date the cited page prints: a release (2025-07-16, 2026-01-19, 2026-08-10, 2026-09-13), a venue year, or a document date (2019-02-01, 2022-08-29, 2025-03-11). The tree's own **Last reviewed:** dates are review dates, not capability dates, and are omitted.
Quick navigation
Five reading paths; each ends at the page where the decision is made.
- "Give me the vocabulary first." Concepts §2–§5 → comparison Part 1 (the grid, and the rows that refuse a cell) → one engine at each end of the spectrum: Shake (suspending,
built/changed) and Ninja (topological,restat). - "I'm designing the Sparkles task DAG." Sparkles application — the separate baseline, candidate requirements and investigation protocols — → Shake and BitBake for contrasting rebuilder forms → Ninja (
restat,dyndep, depfiles) for a plan that stays static → BuildXL for declaration versus observation → CAS eviction and provenance for capabilities whose value depends on storage and distribution requirements. - "I want the theory, not the tools." À la carte → concepts → PIE (dynamic dependencies) → Perfect dependencies (traced dependencies and the hazard set) → Formal verification (what is actually mechanised).
- "I care about dynamic dependencies and remote execution."Nix dynamic derivations → Dynamic deps, distributed → nix-ninja and dgd for the plan-as-artifact pattern → BuildKit (REAPI at the seam).
- "I want the small, one-shot end." GNU Make → redo → tup → Ninja → comparison Part 3 (findings and counterexamples) and Part 5 (research gaps and experiments).
Concepts explains the model and implementation boundaries; comparison synthesizes the research. Read method for evidence limits, behavioral-evidence for executable observations, and sparkles for the separate application analysis.
Sources
Primary sources are cloned under $REPOS/build-systems-research/src/ (33 symlinks to canonical clones, each pinned by 40-char SHA in that tree's MANIFEST.md) and $REPOS/papers/build-systems/ (7 PDFs with SHA256s in its MANIFEST.md, including one author preprint). Each deep-dive cites the exact files it opened.