Common failure modes — symptom lookup#
OpenCV CUDA configure: CUDA_CUDA_LIBRARY (ADVANCED) linked by opencv_cudacodec is NOTFOUND#
CMake Generate step failed in the nvidia Media OpenCV step, with CUDA_CUDA_LIBRARY NOTFOUND even though the
argument list carries -DCUDA_CUDA_LIBRARY=…/stubs/libcuda.so, means the classic FindCUDA dropped the stub. A
-DCUDA_TOOLKIT_ROOT_DIR on a first configure differs from FindCUDA’s unset internal marker, so it clears its library
cache entries, and the build has no driver libcuda to find instead. Name the root through the CUDA_TOOLKIT_ROOT
environment variable, as opencv-cuda-cache.sh does
(OpenCV classic FindCUDA).
A download by artifact ID right after its upload finds the run’s other artifacts#
Unable to download artifact(s): None of the provided artifact IDs were found, after Found N artifact(s), in the
actions/download-artifact step that follows the upload-artifact which produced the ID, means the run’s artifact
listing had not caught up with the finalized upload. A ~320 MB AccelerANTgine GPU archive missed it in two of three
runs, so a job rerun helps only sometimes. Wait before such a download in the same job (AccelerANTgine’s
linux-gpu-candidate.yml waits 90 s), or download in a later job; the check after it must still fail on a missing
archive, so never add continue-on-error.
ONNX Runtime clone asks for a GitHub username#
fatal: could not read Username for 'https://github.com': No such device or address while
cloning ONNX Runtime, GenAI or onnxruntime-extensions means GitHub answers 404 for the
repository; an anonymous clone of a missing repository asks for credentials. Since about
2026-11-17 Microsoft’s three repositories are offline. Do not add credentials or retry. The
Media and Android fetch now verify the pinned commit and fall back to fork networks
(source pins); [ort-source]
lines name the source that served each commit. A refusal naming a stale pin means a version
bump needs a new commit in source-pins.txt.
Consumer pattern limits flag the native plugin header’s status helper#
The conservative throwing_filesystem_calls consumer scan can flag the file-status overload
of std::filesystem::is_symlink(entry) in an exact imported native header. The queried
entry is already a file_status; the canonical fallback compares its type directly and
retains the distinction between absent optional modules and dangling bundle links. Update
the exact Hub pin and mirror together, preserving the consumer’s zero budget and scan scope.
The native policy and broken-link controls check resolution; no GPU or package proof follows.
Workflow lint identifies an independent source copy as editor#
Symptom. Full preflight rejects repository editor as undeclared in
.github/consumers.json, while the original checkout has the expected repository name.
Cause. A local independent clone replaces its origin with the source checkout’s filesystem path. Copying that Git metadata into isolated preflight makes workflow selection use the directory basename instead of the original repository identity.
Fix. Prepare a fresh copy with preserve-consumer-sources.py, which retains
configured origin URLs and their order after cloning from local objects. Inspect
the copied origin before replaying workflow checks. Existing copies keep their
recorded metadata; original receipts remain unchanged. Origin metadata does not
authenticate the source or establish workflow acceptance. See
working consumer sources.
Torch stage: verify_ort_profile.py is missing ... check out the hub submodule before building#
Symptom. uv sync of the app fails in Dockerfile.torch with that message from OrchestrANT’s
setup.py (2026-11-24, Windows amd64).
Cause. Since OrchestrANT 3abd84e (hub CON288/CON289) its build copies hub modules from
third_party/ANTfrastructure; the torch stage cloned the app without submodules.
Fix. New-TorchAppCheckout runs submodule update --init --depth 1 third_party/ANTfrastructure
after the checkout, without --recursive; TorchApp.Checkout.Tests.ps1 holds it. The Linux
lane’s fetch_app_tree (assemble-torch-app.sh) clones the same way.
Windows media merge: a merge would leave a mixed install; pin one version#
Symptom. Dockerfile.media-merge-builder:built fails in seconds with packaging is 26.3 in ...\media-core but 26.4 in ...\media-tvm (2026-11-24), although PY_PACKAGING_VERSION pins 26.3.
Cause. The branches were built hours apart. TVM’s branch installed scikit-build-core and
setuptools-scm before it had packaging, so pip resolved their dependency to the newest release,
which came out between the two builds. On arm64 the cross path installs wheel, which also
pulls packaging. The merge gate is right to refuse.
Fix. Name the dependency in the same Install-CpythonPipPin call, so its pin applies.
Build.PipPins.Tests.ps1 fails a call that installs one of these tools or wheel without packaging; extend its
$toolDeps map when another build tool pulls an unpinned dependency.
Local Docker-loaded GPU image does not resolve by repository@digest#
Symptom. The 2026-11-14 GPU4 image is loaded and visible under its local tag,
but nerdctl run or image inspect on its reported repository@manifest fails
resolution. Inspection of its config ID as an image selector also fails.
Cause. The installed local engine resolves this Docker-loaded image by its immutable manifest ID. A reported RepoDigest does not establish a registered digest-qualified local image name, and the inspected config ID is another digest.
Fix. Query the local tag, validate its unique manifest and config, then independently inspect the manifest ID and require both identities to match before passing that ID to the bounded native GPU export. Keep failures fatal. The real read-only selector replay on GPU4 passes and its command fixtures refuse wrong cardinality/config/manifest and failed lookups. Native export bytes, SDK ancestry and disk admission remain separate; Media retains repository@digest together with its native context. Selector resolution proves neither a completed export nor runtime loading, full licences or hardware inference. See the versioned handoff.
MIGraphX core cannot find ROCm SQLite#
Symptom. Ordinary GPU4 completes and loads its local image, but a real cold
ctypes.CDLL of its source core fails with librocm_sysdeps_sqlite3.so missing.
Cause. The core’s actual ELF NEEDED entry names the vendor soname. Its file
exists under /opt/rocm/core-10.1/lib/rocm_sysdeps/lib, while the shared publisher
only discovers HIP/MIGraphX directories. The loader cache lists distro SQLite
under a different soname; the source backend needs the recorded vendor library.
Fix. Discover the exact SQLite soname through the shared publisher, preserve
source-first ordering and ASAN exclusion, publish the complete configuration and
run ldconfig. The normal producer must then load all seven installed source
entry libraries, checking containment and recorded hashes before success.
The new gate fails on the unchanged image and passes in a disposable corrected
publisher replay, including two independent cold source-library mappings.
Keep the original failure, maps, statuses and checked container absence. This
replay does not accept the original image. Exact repaired source 8c4e13b0 now
passes its complete 6,246-mutation/42-group preflight with sealed cleanup and
independent absence; an ordinary rebuild, full licences and final consumers
remain required. The next build still needs fresh unchanged 180-GiB admission. See the gate’s scope.
MIGraphX install refused: Repeated normalized install path#
The ordinary ROCm GPU3 run on 2026-11-14 completed all rocMLIR and MIGraphX
backend build targets, installed them, then failed stage-backend-install.py
with MIGraphX install refused: Repeated normalized install path. CMake can
record one exact installed filename more than once; that is not a second payload.
Coalesce exact manifest rows while retaining normalized-alias, complete-tree,
nonempty-file, contained-symlink, native-ELF and original-notice checks.
This installation also puts private core/frontend/target libraries under
lib/migraphx/lib, beside public libraries in lib. Require every selected
library exactly once across those two directories and retain both directories
before distro paths in the GPU/runtime environment and shared 000-rocm.conf.
The fixtures cover those layouts and failure controls, not actual loader ABI,
complete binary licence closure or GPU inference. A fresh ordinary GPU build and
the subsequent Media/runtime and finished-consumer proofs remain required.
Compiler planner refuses a fourth OCI transport delta#
The default compiler-plan profile accepts only the original three LLVM changes. A source tree that also carries the reviewed OCI seeding transport therefore refuses that legacy input boundary. Use the explicit native-AMDGPU planning profile, which checks the fixed transport ancestor and records all four deltas. Keep the original input reference and failed attempt; a refreshed control hash alone cannot turn that additional change into an unchanged input or establish a cache hit.
Early HIP compilation succeeds but ELF inspection fails#
The device-only driver can emit a __CLANG_OFFLOAD_BUNDLE__ container even when
compilation returns zero. The required probe requests --no-gpu-bundle-output
and rejects non-ELF bytes with an explicit diagnostic before preserving a
passed object. Keep the failed build and original compiler streams. A
header-free output-format control is not a normal ROCm compatibility proof.
The reviewed alternate GPU source
can apply only this exact probe repair while retaining a qualified SDK; it
requires a new complete source proof and never changes a running producer.
Linux HIP rejects amdgpu-internalize-symbols#
When the own source Clang reports Unknown command line argument '-amdgpu-internalize-symbols' at the first MIGraphX HIP object, inspect its
llvm-config --targets-built. The ordinary build on 2026-11-14 had only the
three CPU backends. Native LLVM must include AMDGPU; preserve the own pinned
compiler and rebuild/qualify the compiler, SDK and GPU stages. The required
early HIP check
now compiles a device object before the expensive source dependencies. Backend
metadata and successful rocMLIR/CMake checks do not prove actual HIP codegen or
GPU inference. Keep raw failed-build and cache evidence.
Live configure snapshot refuses changing inputs#
Use the actual normal GPU invocation, matching live build-image or outer RUN PID and its private relative build directory. Missing, linked, oversized or changed inputs, a reused output or a changed process start fail before a passed observation. Preserve partial evidence and choose a fresh output for a later attempt. The producer is never repaired or paused by this reader. See live configure snapshots.
Unchanged compiler inputs still rebuild after changing the local cache namespace#
A new image repository or BUILDKIT_CACHE_DIR selects a different stage-cache path. Byte-identical GNU mounts establish only equal input boundaries; without the old index in that path the normal driver emits no local --cache-from. Preserve a completed producer’s cache with the versioned transfer helper, select the actual driver path and retain a dry run proving that import before starting the next build. Hard-link only immutable blobs and copy mutable metadata separately. Do not edit a live plan or cache export, restart a running producer for hits, or report source equality as an observed cache hit.
Cache diagnostic fixture inherits the capture socket#
The compiler-cache report fixture can fail under the normal command capturer because
SCCACHE_SERVER_UDS already points at that command’s private socket. The production helper
correctly honors the caller, while the fixture expects an automatically selected default.
Clear socket and port only in the fixture’s automatic-address child, with deliberately
inherited values as a control. A separate explicit-socket case must retain the chosen
address in the diagnostic. Keep the real parent capture socket and its statistics intact.
Pass controlled values as arguments and export them directly inside the fixture child.
Temporary assignments before a function call can expose the outer binding again when unset.
The fixture and mutation prove this isolation; they do not start a real cache server.
Live compiler-cache reader rejects a changed log inode#
The bounded reader refuses a missing, linked, oversized or replaced sccache.log. Keep that failure and inspect the original producer; do not create or replace its log to obtain a receipt. A normal MIGraphX RUN uses the explicit MIGraphX reader profile and actual build-image PID, rather than a compiler label. A partial timeout cannot prove complete retention. See live cache log retention.
Ordinary GPU launch refuses its SDK parent#
Actual SDK OCI required, SDK qualification identity differs or Compiler descriptors or diffIDs differ comes from the versioned normal GPU admission driver. Supply the stopped native SDK OCI receipt and its original SDK invocation, with the same clean, fully checked source. The driver rehashes both layouts and revalidates the independent SDK qualification and local engine identity before the ordinary AMD Dockerfile starts. A compiler-only receipt, changed alias, metadata-only match or component probe cannot satisfy this boundary. See ordinary stage launch.
Start from the error message. Every entry below is keyed by what you actually see, then names the cause and the fix. All of them were hit live in this repo; the dates are when.
Two neighbours, so you land on the right page:
A rule you must not break while editing the Windows chain →
windows-build-invariants.md.A host that was never set up correctly (rather than one that broke) →
windows-host-setup.mdfor Windows,linux-host-setup.mdfor Linux.
Several rows here point at deeper write-ups in
windows-builds.mdand its sibling pages. This page is the triage index: enough to recognise the failure and act, with a link when the full history matters.
Stevedore delegation reports no such image or an unknown task instance#
The first v2 host setup registered its two SYSTEM tasks but its post-install
inventory failed on reconstructed display-table names. Containerd retained raw
digest-qualified names that nerdctl’s repository/tag columns could not reproduce.
Read JSON Name and manifest ID, inspect each distinct immutable manifest and
preserve its returned configuration separately. Never skip the failed rows or
substitute the unrelated Docker namespace; native diagnostics remain failures.
The first normal-user preview then stopped with The original scheduled-task instance is unknown. before querying the store. The hidden worker’s
GetInstances(0) enumeration returned zero. Resolve the SYSTEM worker through
GetRunningTasks(1) with exact task path, unique instance and a nonempty GUID;
do not pass that flag to GetInstances. Require scheduler Ready state for
completion and refuse queued/running/unknown state before overlap or revocation.
Both failures preceded any v2 removal. Install the reviewed correction and retain
a fresh real preview/Apply receipt; unit tests do not prove protected deployment.
See setup, operation and updates.
Stevedore preview reports Container status is unknown for a created container#
The real never-started disposable control returned an empty State.Status,
false activity flags, zero PID/exit status and empty error/timestamps. nerdctl’s
Docker compatibility conversion
leaves that state empty without a native process. Its
inspector
also emits a warning for a failed task lookup other than not-found, so a quiet
successful query is required. Normalize only the complete typed empty state for
selection; preserve the raw inspection and reject incomplete, active, nonempty
unknown or diagnostic-bearing replies. The canonical per-removal check uses the
same parser and refuses stderr even at native exit zero. Real preview/Apply,
preservation and free-space evidence remain separate from fixture tests.
Windows GenAI clone reports repository not found after three attempts#
The full NVIDIA run at bd6bb3b2 exported ONNX, FFmpeg, OpenCV and Hailo,
then failed the microsoft/onnxruntime-genai clone before configuration.
Do not substitute a binary package or silently update GenAI. The Windows
builder retains the original release commit and checks its VERSION_INFO;
only a failed primary clone permits the exact commit from CodeLinaro.
See the source transport contract.
Transport recovery does not establish final-source producer or GPU acceptance.
cuDNN link/run skips despite installed SDK files#
The NVIDIA smoke at adea396e printed three unset-variable errors for
$cudnnHeaders, $cudnnLibs and $cudnnDlls, then skipped the host API
control while reporting 318 passed/0 failed/3 skipped. The broad artifact
checks passed, but their helper returns assertions, not file lists. Resolve
the exact main files directly with Find-FirstTreeFile and fail on missing
inputs. cudnnGetVersion needs no GPU, so absent container GPU access does
not justify this skip. See the smoke contract.
Doc-link mutation baselines fail when host TMPDIR sits under repository logs#
The fixtures that deliberately contain no Git metadata still let Git discover a parent checkout. With host TMPDIR under this repository’s ignored logs, the 2026-11-13 normal hook reported stale pointer rows and a mismatched scan floor; the isolated image source proof passed. This is a real invalid fixture baseline, not a mutation bite.
Run host test jobs with a fresh on-disk TMPDIR outside all Git checkouts, such as a task-specific directory under ~/.cache. The identical staged patch and normal hooks then pass all affected mutations. Retain the earlier failure; do not skip the test, narrow the gate or change global Git configuration.
probe-sccache reports NOCACHE despite recorded cache hits and misses#
The older activity sampler added every row containing cache hits or writes, including hit percentages, timing averages, error counts and per-language subtotals. A falling hit percentage could outweigh a successful cacheable miss and report no activity. The isolated 2026-11-13 base probe retained four actual compiles, two hits and two misses alongside that contradictory advisory.
Count only aggregate integer executed-request, hit and write rows. Independent fixtures preserve the original failure and reject percentages, fractional values, timings, subtotals and errors as activity. Retain raw stats failures. The fixture is not a real compiler-cache or image acceptance receipt; repeat the actual probe and check its container against the expected image.
A retained Linux image inspects successfully, but the parser unit says image not available#
The retained ROCm image in the 2026-11-12 parser build was inspectable through
its local tag, RepoDigest and config ID. The RepoDigest and prefixed config-ID
spellings nevertheless failed at nerdctl run --pull never before a container
started; both failed units and successful cleanup receipts are retained.
The existing local tag started the same image. Inspect that tag first, record
its expected manifest/config identity, then compare the actual container’s
Image field with the expected manifest. The successful parser runs passed
that comparison. This local reference-resolution observation does not permit
accepting an unrelated image or treating a running component as final image
acceptance.
Media finalization requires a WebGPU receipt for a skipped GPU build#
Symptom. The default-amd64 media solve reaches finalize-media.sh, then reports
onnxruntime-gpu/ort-webgpu-build.json missing while checking an empty wheel manifest.
Cause. The optional GPU build was skipped, but its pre-created wheel directories still produced empty GIL/FT census files. Delivery treated those placeholders as evidence of a built prefix. Seen 2026-11-11; the first solve remains failed.
Fix. The shared delivery API recognizes only directories and empty top-level census files as an unbuilt prefix, without creating a receipt. Payloads, unknown files, nested census files, existing receipts and symlinks still require valid proof. The actual check/follow fixture covers both interpreter stores and refuses damaged built prefixes. WebGPU delivery describes the boundary; a successful fixture is not final-image acceptance.
A native child returns ECHILD while running under Dart#
Symptom. A Rust child runner succeeds alone but loses the native child’s exit status when called through Dart FFI. On 2026-11-11, the actual Dart3.13.7/Rust1.99.1 Linux probe lost all 64 statuses; its required-success invocation exited1. A separate failure-control invocation reproduced the same64 ECHILD errors. In the final matrix the idle-reaper control retained all64 statuses, while the active reaper again lost all64. None exercised HIP or a finished app.
Cause. Dart’s Linux process handler calls process-wide wait, so an active Dart process
reaper can collect children created by native libraries too. See the
upstream handler.
Waiting for one PID in Rust does not reserve that status against another thread’s wait.
Action. Keep the generic shared/rust/bounded_process.rs limited to callers that own
child reaping. The prepared isolated_helper.rs instead carries isolated_helper.c and .h:
a control-only supervisor reaps the fresh executable worker and sends its raw status through
a private pipe. It accepts an externally reaped supervisor only after the complete validated
worker packet and EOF; the parent never signals a supervisor’s numeric PID. Both parent-death
guards, descriptor isolation, exec errno and timeout kill/reap remain required. HIP still starts
only after worker execve and retains normal process teardown. Kernel-blocked waits still need
an owning unit bound. Native fake-HIP fixtures now run the canonical executable through this
transport with ASan/LSan: eight cleanup/error/argument paths preserve their expected exits,
and the intentional17-byte leak must emit its real report and exit86 after normal teardown.
A separate compiled early-exit86 fixture is refused despite matching raw statuses. The local
default seccomp profile passes this real probe; no generic isolation opt-out is required.
These are fake ABI cases,
not a real driver or GPU. Cargo wiring and finished-package/hardware acceptance remain open.
Repeat with bash linux/scripts/probe-rust-child-under-dart.sh NEW_OUTPUT. Default mode now
checks the prepared transport and requires observed external supervisor reaping with all64
successful workers, plus raw exit/signal/timeout/exec-error controls. --expect-status-loss
selects the original runner and records its failure only; --idle-reaper isolates the active
Dart child. The later native-worker matrix retains64 statuses with34 observed external reaps,
while the original control loses64. All raw status/timeout/exec and fake-HIP controls run
before the Dart child is stopped; their30-second probe bound is below its60-second natural
lifetime. An earlier probe ran the raw controls after Dart cleanup, so its active-reaper
coverage applied only to the64 ownership calls. Preserve that scope correction with its proof. Run inside a bounded owned-container unit with independent
cleanup; none of these source fixtures establishes GPU, package or installed-bridge acceptance.
Concurrent supervisor startup. Initial _Fork supervisors left some workers waiting on
libc futexes until timeout in the16-caller test. Eager symbol binding did not fix it. Ordinary
fork for the initial supervisor restores the required libc state and passes the same test;
only its single-threaded control process uses _Fork for the immediate worker exec. The
glibc process contract
explains the different state repair. The observed waits are consistent with inherited abort-lock
readers before sigaction(SIGABRT), as suggested by glibc’s
signal wrapper and
abort lock; the fixture does not
identify a libc build-specific source line. Preserve the failed sources and process snapshots.
systemd expands a Bash array before starting a detector#
Symptom. A user unit exits127 with env: '': No such file or directory; its journal reports
Invalid environment variable name evaluates to an empty string: DETECTOR_EVIDENCE_CLEAN[@].
Cause. systemd expands variables in command arguments before bash -c sees the quoted array.
The detector never starts, even though the host shell passed the intended arguments.
Fix. Pass systemd-run --expand-environment=no for literal shell expressions. Keep the
failed unit and log; use a new unit and output directory for the corrected attempt. Seen 2026-11-11;
the corrected native CPU detector completed both runs and its per-run operator profile passed.
A timed-out container starter leaves the detector running#
Symptom. The native DEIM GPU user unit reached its 900-second RuntimeMax, reported Result=timeout
and MainPID=0, but its exact container and detector process continued. Neither detections nor a
complete profile had been written. Seen 2026-11-11; this failed source probe proves no GPU parity.
Cause. The engine placed its payload outside the nerdctl starter’s systemd unit. Terminating the starter therefore did not terminate the container, even though the unit was terminal.
Recovery. Verify the saved CID against the owned container, stop that exact container, then
check exited/PID0 and disappearance of the recorded host processes. Preserve the stopped failed
container, cache, unit and logs for analysis. Do not restart based only on an observation timeout.
Before another long probe, install cleanup-owned-containers.py as the unit’s independent
ExecStopPost hook, using the invocation’s fresh label/token and CID file. It shares ownership
checks with run-isolated-preflight.py, verifies absence or stopped/PID0 and can retain a failed
filesystem. A unit bound alone is insufficient; real GPU inference still requires separate proof.
See preserved tools.
ARM64 CTest discovery ends with LeakSanitizer has encountered a fatal error#
The 2026-11-10 NVIDIA ARM consumer attempt finished its C++ build, then
commitTestSuite --gtest_list_tests listed tests and exited 1 under qemu-user.
CTest returned 8 before executing tests; its 300-second discovery timeout did not
expire. The failed receipt and log are retained under
logs/image-acceptance/20261110-013045-b0a6f8cb-arm64/.
LSan needs ptrace, which this emulation route cannot provide; see the
sanitizer scope and
upstream report.
Run the unchanged consumer plan on a compatible ARM execution host.
Disabling leak detection changes coverage and cannot establish the original acceptance.
The image compiler battery’s explicit emulation skip does not excuse a failed consumer.
TensorRT protobuf compiler-option scope is not verified#
The full NVIDIA run at 6737933a completed ONNX CUDA compilation, both wheels
and QNN staging, then stopped before TensorRT configuration. The scope gate
correctly found unprotected protobuf warning arguments. The old [^)]* block
matcher ended at the closing parenthesis in the /wd4334 comment, leaving later
options outside the rewrite. Simplified fixtures had missed that input shape.
The repair consumes complete line comments before matching a command’s closing parenthesis, preserves their text and ignores commented command examples. It validates all four blocks and every argument before the shared patch API writes the file; rejected input remains unchanged. Fixtures cover LF/CRLF, later flags, mixed arguments and comments. Twelve affected mutations bite, and the actual SHA-pinned protobuf 21.12 input plus a native RC/C++ control pass. These controls do not prove the complete TensorRT plugin, the CUDA repeat or GPU inference. See the plugin lane.
ARM64 TensorRT nvcc rejects --target=aarch64-linux-gnu#
Linux run 20261109-102131-e69f48d7 selected target CXX but published CUDAHOSTCXX
from native g++ first. CMake 4.4.5 prefers that environment setting over the later
host-compiler define. Call target setup before cuda_cross_load, and stop on
setup failure. Real compiler controls reproduce the old failure and fixed
AArch64 output; the plugin build
still needs its full image and consumer proofs.
MIGraphX sessions fail ASan with new-delete-type-mismatch#
Symptom. Session destruction reports ReleaseNodeComputeInfos deleting a 40-byte allocation
as the 32-byte OrtNodeComputeInfo C base. A normal, unsanitized inference can appear successful.
Cause. The pinned plugin allocates two derived node types and deletes their nonvirtual C base. A private virtual owner fixes typed destruction, but its C base moves: callbacks must adjust that base pointer before entering the upstream reinterpret-cast macros.
Fix. Rebuild the plugin with 001-node-compute-info-lifetime.patch; keep all six adjusting
callback casts and ASan’s allocation/type checks. The source patch suite includes the original
failure as a mandatory control. Existing modules and accepted image receipts do not acquire
this fix from a source edit; verify the newly built module and later media/consumer artifacts.
See node ownership.
MIGraphX factory teardown leaks its kernel registry#
Symptom. The rebuilt node cleanup passes, but a real ASan probe still reports 1470 bytes in 15 allocations associated with the registry and its two copy kernels.
Cause. The pinned factory retains a raw OrtKernelRegistry* after successful creation,
without releasing its ownership when the factory dies.
Fix. Apply 002-kernel-registry-lifetime.patch after the node patch. Keep the owned registry
after the data-transfer member and protect creation with the same mutex on every caller.
The compiled source fixture requires an original LeakSanitizer failure, clean fixed teardown,
a successful retry after a failed creation and one registry for concurrent callers. Real
module/consumer execution must pass separately, with leak detection enabled.
See registry ownership.
CUDA sccache repeats report multiple input files#
ORT’s separated SHELL:--std c++20 reaches the pinned parser as another input.
Keep both source branches joined through 003-cuda-standard-sccache.patch and
retain the source-drift postcondition. A private real replay proves the old
refusal and 12 corrected subcompilation hits; one internal step stays uncached.
See cache measurements and limits.
A cross-built plugin passes closure despite ldd: not a dynamic executable#
The old helper only searched stdout for not found, discarding ldd’s failed
status and stderr. A native ldd cannot grade the ARM64 TensorRT module.
Retain inspector failures and use the target loader under bounded QEMU with
the explicit chain and SDK search paths. This lists dependencies without
initializing the plugin; see the closure scope.
TensorRT plugin reports throws with exceptions disabled#
The full Windows NVIDIA run at 93019e36 compiled protobuf’s resources, then
clang-cl rejected the TensorRT plugin’s C++ sources with cannot use 'throw' with exceptions disabled. Its actual compile command had no /EHsc.
Get-OrtPluginEpCmakeArgs replaced CMAKE_CXX_FLAGS with warning options and
dropped the platform exception default. Keep /EHsc in the shared C++ policy
so the ORT C++ API retains its throwing semantics. Argument fixtures cover the
forwarded policy; a complete plugin build and GPU execution need separate proof.
See the plugin lane.
Contents#
Linux and cross-lane
No space left on devicein a Windows RUN while the host has spaceno active session/grpc: the client connection is closingmid-chainlogging.sh: line NNN: action: unbound variableinstead of the real errorA fault-injection test passes and proves nothing (
grepis ugrep)Shared harness mutations fail with
xdg-openon batch fixturesGENAI-BIND SKIPreported green while the native binding is brokenThe documented
GENAI_ALLOW_RISCV64back-out does not reach the smokeThe cross-sbsa packages vanish between the repo RUN and the install
no GStreamer plugin directory at /opt/gstreamer/lib/aarch64-linux-gnu/gstreamer-1.0zconf.h: No such file or directoryin civetweb under the SBSA DeepStream buildapt:
libc6:i386install is unsatisfiable after an archive/ports driftA checksum probe that cannot reach the server reads as “nothing to verify”
A soname with no map entry is resolved by an
apt-cacheprefix guessGCC 16.2 segfaults in a module unit’s constructor over a
std::spanmemberEvery ASan GPU test leaks under
setup_loader_term_phys_devson a new runner imageA Linux AMD package returns fewer, drifting detections on MIGraphX
lavapipe segfaults building an acceleration structure on arm64
llvmpipe segfaults at one vector width on a shader cache another width wrote
DeepStream:
nvstreammuxstops the pipeline withreason error (-5)and no messageDeepStream:
Unable to load library: libnvinfer_builder_resource_sm75.so.10.16.1DeepStream:
nvv4l2decoder:/dev/nvidia0“isn’t a v4l2 driver”A build or smoke stops on an ONNX Runtime that is not the chain’s
The compiler stage selects distro Clang after building the pinned release
Source Clang works but the default LLVM soname still selects the distro
Native LLVM utilities remain on the distro after Clang selection is fixed
The wrapper smoke fails
clang --versionafter a partial rebuildfatal error: sanitizer/common_interface_defs.h: No such file or directoryon arm64/riscv64A push leaves the repo bare:
core.bare and core.worktree do not make sensesccache-evict.servicefails withsort: write failed: 'standard output': Broken pipesccache-evictwarnsno reads recorded from Garage's request logUsing ccache: /usr/bin/ccachein a build that should use sccache
Windows: the layer store (hcsshim)
ExportLayer 0x3, spawn flakes,ExportLayer 0x70— disk exhaustion in costumeExportLayer 0x3at finalize of a heavy media layer, disk is fineEvery RUN step reports
DONE 2841.2s— the same number, whatever it runsImportLayer ... (0xb7) "already exists"— deterministic, burns the retry budgetfailed to reimport snapshot/failed to write compressed diff— the hcs-temp flake familyA stage fails instantly with
exit code: 1and zero container outputA Python module imports nowhere though its distribution is installed
Windows: container networking
Could not resolve host: github.comseconds into the first downloading RUNThe remote name could not be resolved— CNI nat subnet drift
Windows: buildkitd and the store
A BK compile step freezes silently after
[output clipped, log limit 2MiB reached]buildctllocal export diesfile already closedon a Windows rootfs
Windows: Stevedore and the docker service
cannot access containerd socket ... Zugriff verweigert(non-admin)failed to extract layer ... failed to find link targetpulling servercore
Windows: build content and toolchain
No match was foundfor Pester or PSScriptAnalyzer in Windows CIfatal: remote helper 'https' aborted sessionduring Windows CI checkoutRust smoke test: “rustup could not choose a version of cargo/rustc”
TVM ROCm spike: C:\llvm-patched\bin\llvm-config.exe has no AMDGPU targetTVM: no member named 'matchIntrinsicSignature' in namespace 'llvm::Intrinsic'lld-link: error: undefined symbolfor template instantiations after a green compileWindows base: scoop cannot install a pinned tool, 404 on the installer
AArch64 cross compile aborts with
error: fixup value out of rangeA source build produces UNPATCHED sources and says
SKIP: ... (already applied)A build script dies with
The term ... is not recognized, in the container onlyA consumer’s CMake says clang-cl “is not able to compile a simple test program”
A Windows chain stops in seconds at
[bk:publish-gate:bk-windows-…]webrtcbin’s action signals never reply;ffi_prep_cifreturnsFFI_BAD_TYPEDEFdtlsconnection ... unexpected eof while readingat the first DTLS stepstatic_assert failed: 'unexpected size'fromstd::findunder clang-clA Windows test exits
0xC0000005with no gtest line and no dumpthe GIL was re-enabled, first by iree._runtime_libs._runtimeon an ARM64 device
The shortlist AGENTS.md carried#
Moved out of AGENTS.md on 2026-09-15 (owner decision D10), unedited except for this heading, the relative links and a failure count that had gone stale. The RULES stayed there; this is the reference behind them.
Symptom → cause → fix for every failure seen live on both lanes, keyed by the
error message you actually get:
docs/failure-modes.md. Grouped as Linux/cross-lane ·
the Windows layer store (hcsshim) · container networking (CNI) · buildkitd and
the store · Stevedore and the docker service · build content and toolchain.
Four reflexes that page encodes — worth holding before you need them:
Check free disk FIRST on any weird hcsshim failure. Disk exhaustion wears three different costumes and only one of them names the disease.
Prefer letting a doomed solve fail cleanly over killing it. A clean finalize failure leaves no debris; a
buildctlkill mid-finalize manufactures the deterministic0xb7that then costs a-NoCachere-run.After ANY red finalize, REBOOT before further A/B tests. A wedged hcs state falsifies every experiment run after it.
Identical step timings mean a TIMEOUT, not slow work. When every RUN lands on the same number, decode that number against the shim teardown knob before debugging the workload (the 2026-08-31/09-01 incident: 2841.2 s byte-identical = lost exit notification × 45 min constant; a 240 s probe kill then misread it as a hard wedge for a day). Timing table + re-mitigate command:
docs/failure-modes.md§ “Every RUN step reports DONE 2841.2s”.
Compiler planner rejects llvm-gnu-unique#
An older planner reports an invalid profile choice or expects the earlier expensive-input report shape. Use the versioned GNU_UNIQUE planner and its complete companion closure. It reads compiler6’s preserved comparison and refuses a different source or any extra input; changing the old reference or falling back to an earlier profile cannot admit the new repair. See the exact compiler profile.
Linux and cross-lane#
Segfault in llvm::AArch64::resolveCPUAlias during import tvm#
Symptom. The ROCm runtime smoke app wheel smoke FAILED; python -m orchestrant.smoke
exits 139 after rocSHMEM Could not open libnuma, with tvm::TargetTag::AddTag →
llvm::AArch64::resolveCPUAlias → __strlen_evex on the stack. It fails in about two of three
runs, so one green runtime proves nothing.
Cause. Torch-ROCm loads _rocm_sdk_core/lib/llvm/lib/libLLVM.so.23.0git process-wide.
LD_DEBUG=bindings showed 117 references inside our libLLVM.so.23.1, which TVM linked,
bound to that copy; TVM then read ROCm’s CPU tables.
Fix. TVM links a private static LLVM
(linux-cross-builds.md).
Container preflight reports groups surviving KILL with only zombies#
Symptom. ordered job process -<pgid> did not disappear after KILL, while the group’s
remaining members have state Z and PPID1. The complete source check cannot pass cleanup.
Cause. The container starts a timeout wrapper as PID1 without an orphan reaper. Killed
grandchildren become adopted zombies; signals cannot remove them, so kill -0 still sees the
group. In the observed local run, 1,482 adopted zombies kept 250 failed-cleanup groups visible.
Fix. Preserve raw logs and process evidence, stop only the owned unit, and verify its
container is absent. Replay the complete frozen source using the engine’s --init; nerdctl
needs host tini on PATH. Keep the named-unit deadline, ownership label, CID and cleanup hook.
Do not weaken group-disappearance checks or count partial results as complete acceptance.
The transport regression checks the init argument; it does not prove the engine’s actual reaper.
Isolated preflight cannot write its report bind#
Symptom. The nonroot worker cannot write /evidence; os.access at its actual UID returns
false, and only the root-written prerequisite file appears. Partial stdout is insufficient evidence.
Cause. A reconstructed engine invocation omitted the canonical runner’s temporary report permission. Rootless container UID1000 differs from the host bind owner, even with matching names.
Fix. Preserve the failed attempt, then invoke run-isolated-preflight.py directly. Its report
bind is writable before launch and restored to0755 after cleanup. The explicit-image and retained
SDK-cache options keep reuse inside this path. The engine fixture rejects a non-writable report
bind; it does not model every host ACL or replace checking the real worker’s write access.
PowerShell mutation baseline aborts with a truncated assembly identity#
A previously green, unmodified suite may exit 134 at PowerShell startup with
System.IO.FileLoadException, while the same direct command passes. Parallel Unix processes can
share a corrupt .NET startup profile; see the evidence, scope and permanent cache guard.
Preserve the failed output and profile if present. Use the versioned mutation runner’s per-command
XDG cache isolation and repeat the complete proof from a new committed snapshot. A direct replay
or targeted pass does not convert the failed full run into a pass.
Interrupted test run leaves a child alive#
Symptom. an interrupted run left its suite's child running, or the
script-tests.reap-on-interrupt mutation reports a failing unmutated baseline.
Cause. A suite could publish its own child PID before the scheduler recorded its process group. An interrupt in that window missed the worker. Competing shutdown paths can also interrupt a nested runner’s exit cleanup.
Fix. Use the scheduler’s registered-worker startup gate and owned cleanup
path. Reproduce with test-run-tests-reaping.sh; its publication barrier exposes
the race without relying on machine load. Keep the child-death assertions and
verify nested runners as well as the outer job; see
parallel gate workers.
If this suite passes in preflight but a mutation baseline times out after 300
seconds, inspect children that inherited the mutation transport’s stdout or stderr
pipe. The transport now reaps its session when the test shell exits, before it
waits for pipe EOF. test-mutation-pipe-reaping.sh covers that captured-pipe case.
The ordered-job supervisor and watchdog both append diagnostics to their job log:
an inherited command-substitution pipe could hold the baseline open when either
process lingered. Commands append to the same log so opening one cannot erase an
earlier supervisor diagnostic. test-ordered-jobs-watchdog-fds.sh checks their
live file descriptors, log contents and cleanup.
If the baseline leader is still running and its last case is a timed-out suite,
check whether an ordered-jobs.*/*.timeout marker exists while its supervisor
and command group remain alive. Bash can reenter an interrupted wait when an
EXIT trap waits again for the watchdog. The ordered-job cleanup checks process
group disappearance instead; test-run-tests-reaping.sh bounds its own joins and
names the stuck case. Under a single CPU this previously held a mutation baseline
until its 90- or 300-second limit.
exec format error on a foreign-arch build#
Symptom. exec format error
Cause. QEMU/binfmt not registered after host reboot
Fix. linux/scripts/setup-rootless-binfmt.sh — NOT the tonistiigi container: that installs into the wrong namespace under rootless nerdctl (see Host prerequisite: QEMU/binfmt in docs/linux-cross-builds.md; this row prescribed exactly that dead-end until 2026-08-24)
no space left on device#
Symptom. no space left on device
Cause. Disk full from cached images/artifacts
Fix. Use the authorized cleanup controller and preserve compiler/source cachemounts and required images. During a live build retain at least 100 GB of regular layers. Specific obsolete published local images require an idle engine and fresh immutable registry/config verification; never use broad system/builder prune. If safe cleanup is insufficient, retain the failed run and measured resource gap. The ordinary ROCm runtime now requires at least 300 GiB before output or alias allocation because Runtime7 exhausted disk on FINAL import after its required serial smoke passed. The parent plan can require more; this never relaxes the shared minimum. Runtime smoke/wrapper overlap can multiply context storage: the explicit serial host option runs the same required smoke first without disabling gates.
No space left on device in a Windows RUN while the host has space#
Symptom. A Windows BuildKit step fails with No space left on device or
There is not enough space on the disk, and the driver’s resource summary shows
tens of GB free on the build drive.
Cause. The RUN’s own sandbox of about 20 GB is full, not the host disk.
Fix. Move the step’s large tree onto a cache mount, as IREE’s build tree is:
windows-build-resources.md § The 20 GB RUN scratch.
Stale downstream images#
Symptom. Stale downstream images
Cause. Base image rebuilt but downstream not refreshed
Fix. Use --verify-chain or rebuild from replaced stage
no active session / grpc: the client connection is closing mid-chain#
Symptom. no active session / grpc: the client connection is closing / DeadlineExceeded mid-chain (cache reads, layer export, pushes)
Cause. buildkitd session rot after ~1-2 h of parallel load (BKD1, bit 6× on 2026-08-19/20)
Fix. Let the worker retries absorb one-offs; on a repeat: stop chain → systemctl --user restart buildkit.service → relaunch (cache mounts provably survive; builds fast-forward)
registry_pin_ref fails on a fresh push#
Symptom. registry_pin_ref fails on fresh push
Cause. Registry hasn’t propagated the new manifest
Fix. Now uses retry() with 5 attempts; wait a few seconds and retry
Terminal freeze during a long build#
Symptom. Terminal freeze during long build
Cause. Build output overwhelms terminal
Fix. Use setsid / disown for very long builds
LiteRT configure: fatal: expected flush after ref listing#
Symptom. Every LiteRT/TFLite cmake configure fails cloning eigen; all three android lanes down inside one window (2026-08-21)
Cause. tools/cmake/modules/eigen.cmake declares a single GIT_REPOSITORY (gitlab.com/libeigen/eigen), so a momentary gitlab outage is a total outage
Fix. Already handled by linux/scripts/03-media/build/litert/android/litert-eigen-fetch.sh, sourced by both LiteRT build scripts. It sets two knobs of upstream’s OverridableFetchContent and pins no commit of its own (the tag stays upstream’s):
GIT_REPOSITORY_AND_TAG_TO_URL_eigen=ONturns the clone into an archive download of the same pinned commit — how the C-API/wheel configure paths already fetch it;<content>_MATCH/_REPLACErewrite that archive URL. A;in the replacement makes it a cmake list, whichExternalProjectdownloads “in turn until one succeeds”.
The second URL is TensorFlow’s own mirror of the same gitlab path (the tf_mirror_urls() rule in third_party/eigen3/workspace.bzl), verified byte-identical on 2026-08-23: both URLs for commit ea13a98d… returned sha256 35c6126e…, 2870994 bytes. It degrades safely — if the regex ever stops matching, the URL is left untouched and the fetch behaves as it does today.
logging.sh: line NNN: action: unbound variable instead of the real error#
Symptom. A build stage dies and the only diagnostic in the log is
.../01-core/logging.sh: line 119: action: unbound variable. The command that
actually failed is nowhere. Hit on 2026-08-30, where it stood in for a
parallel-GCC apt-lock failure.
Cause. _install_trap defined on_err as a NESTED function that read its
reporting action (err or warn) out of the installer’s own local action —
i.e. through dynamic scope, which only resolves while _install_trap is
still on the call stack. An ERR trap fires long after the installer has
returned, so under set -u the handler aborted on its first line. Two things
were lost, not one: that abort replaced the real error text, and the action
it existed to run never ran — install_err_trap never exited 1 and
install_warn_trap never printed. Every script that sources logging.sh
inherited it.
Fix. Fixed 2026-08-31. on_err is a top-level function, and _install_trap
bakes the resolved action into the trap string with printf -v '%q' so it is
expanded AT INSTALL TIME, while LINENO and BASH_COMMAND stay escaped and
expand AT FIRE TIME (reverse that escaping and every failure is reported at the
install site’s line number, forever). _LOG_TRAP_ACTION keeps the two-argument
call working for build-gcc.sh, which tears the trap down and re-arms the bare
string by hand around its configure step. Regression cover:
linux/scripts/tests/test-logging-err-trap.sh. Behaviour note: inside a
set +e window install_err_trap now exits 1 where it used to print noise and
carry on. No caller has such a window today; a new one would feel it.
A fault-injection test passes and proves nothing (grep is ugrep)#
Symptom. A regression suite is green — and stays green when you break the very thing it guards. Its fault-injection arm (a stub that fails when its argv matches a pattern) never fires, and nothing reports that: a pattern matching nothing looks exactly like a run with no fault injected.
Cause. The pattern began with -- and was handed to grep positionally.
grep on this host is ugrep, which parses a leading--- pattern as a
command-line option instead of as the pattern. Found 2026-08-31 in
linux/scripts/tests/test-iree-wheelhouse-stages.sh, whose header claimed five
|| return 1 call sites were covered when two were.
Fix. Pass the pattern behind -e: grep -qE -e "$pat". The general rule —
a regression test has to be SHOWN to go red before it counts, and its header
must say what it does not cover — is in
cross-build-verification.md,
along with the second half of this same incident: with injection finally
working, the obvious rc == 1 assertion still passed on every mutation.
Extracted fixture helpers disappear only on the CI runner#
Symptom. Compiler-verdict and runtime-transport suites pass locally but fail unmutated in Linux CI, with missing verdict accounting or incomplete probe results. Mutation jobs correctly reject these failing baselines.
Cause. Optional helper discovery used rg, which was absent on the runner.
The condition skipped the shared helper definitions after command-not-found;
negative assertions that accepted any nonzero status also treated missing tools
as a successful no-match. A related harness fixture joined Windows relative
paths with .NET Path.Combine, which leaves backslashes literal on Linux while
the PowerShell reader normalizes them.
Fix. Fixture source discovery and searches use portable grep. Negative probes
require status 1, so errors and absent commands cannot pass. A restricted-PATH
regression runs all six affected Linux suites without ripgrep and verifies their
full assertion counts. The shared PowerShell file-tree writer uses Join-Path;
its unchanged full fixture suite and three lifecycle mutations run on Linux.
These checks prove local fixture portability, not native compiler or Windows
container behavior.
GENAI-BIND SKIP reported green while the native binding is broken#
Symptom. The runtime-image smoke prints
GENAI-BIND SKIP: onnxruntime_genai is not installed and the run stays green —
on an image where that wheel IS installed and only its native library refuses to
load.
Cause. The smoke collapsed two unrelated situations into one exit code
(3 = skip): “this arch ships no genai wheel”, which is benign and is the
ARCH-PARITY table’s business, and “the distribution is installed but importing
it raises”, which is a defect. Nothing else in the chain can see the second one:
smoke-torch-venv.sh’s installed_version() falls back to
importlib.metadata when the import raises, so it cheerfully reports the pinned
version of a package that cannot be imported, and the ARCH-PARITY table reads
only dist-info directory names. A riscv64 binding with an unresolved
__atomic_* or a missing NEEDED would have shipped behind three green gates. The
lane this was found on is written up in
gen1-riscv64-genai.md.
Fix. Fixed 2026-08-31 in smoke_genai_py (06-packaging/smoke-common.sh):
on an import failure the program asks importlib.metadata whether the
DISTRIBUTION is present. Present → exit 1 with
GENAI-BIND FAIL: … is INSTALLED but not importable, pointing at the .so’s
NEEDED/undefined symbols; absent → the SKIP. Transferable form: an exit code
meaning “there was nothing to test” must not be reachable from a state meaning
“the thing under test is broken”.
The documented GENAI_ALLOW_RISCV64 back-out does not reach the smoke#
Symptom. A lane toggle is set in versions.env, the build honours it, and
the runtime-image smoke still reddens by asserting the component the toggle
switched OFF. Exporting the variable in the host shell before running the smoke
changes nothing.
Cause. Two boundaries, and the value crossed neither of them. As far as the
host shell is concerned a nerdctl run begins with an empty environment, so
exporting the toggle before the smoke is invisible inside the container. And the
ARG/ENV that carries it is declared on a BUILDER stage, while the final stage of
Dockerfile.media descends from a different parent — so the shipped image holds
no copy of it either. The baked smoke-torch-venv.sh therefore read the toggle
as unset every time and took its default arm: the escape hatch the docs promised
had never once worked. Depth on this particular toggle:
gen1-riscv64-genai.md.
Fix. Fixed 2026-08-31: smoke-runtime-image.sh reads the value host-side
out of versions.env (_rt_versions_env_pin, empty on a miss = “not asserted”)
and forwards it with an explicit -e on the nerdctl run, so the smoke asserts
the policy the build was configured with. A new toggle has to be checked on
both hops — build ARG into the SHIPPED stage, host env into the container —
and a verifier should read a marker the producer actually wrote rather than
re-derive the decision: a producer defaulting :-false against a verifier
defaulting :-true disagrees in the failing direction.
An unresolved NEEDED in a library that nothing scans#
Symptom. Nothing at all, which is the point. A shipped .so carries a
dependency that cannot be resolved, every gate is green, and the failure surfaces
as an import or dlopen error on the target.
Cause. 03-media/runtime/validate-media-runtime.sh hunts unresolved
NEEDED entries over ARTIFACTS (the gst / libcamera / ffmpeg binaries) plus
the GStreamer plugin directory. Its LIB_DIRS sweep is a DIFFERENT check — ELF
machine only, and advisory. An install prefix in neither list is scanned by
nobody; /usr/local/lib/onnxruntime-genai/lib was in neither until 2026-08-31.
The concrete thing that hid behind it: GenAI’s CMake, unlike upstream
onnxruntime’s, carries no libatomic probe, so a riscv64 build can need
-latomic and only say so at load time. That lane:
gen1-riscv64-genai.md.
Fix. Fixed 2026-08-31 — the prefix joined LIB_DIRS (resolution root plus
the advisory arch sweep) AND its lib/ is now walked by scan_plugin_directory
(misnamed but generic, so it was reused rather than copied), feeding the
existing missing-soname machinery. A [ -d ] guard makes it a no-op when the
lane is off. The check to carry away: when an image gains an install prefix,
ask which scanner covers it — and remember that an ELF-machine sweep is not a
dependency scan.
A prune step deletes the wheel a later step requires#
Symptom. Again nothing yet — the step that would have broken was disarmed by
an unrelated accident. install_project_environment prunes conflicting wheels
before build_uv_sync_args goes looking for the local ones, and one prune glob
matched a wheel the later step requires.
Cause. 03-media/runtime/assemble-torch-app.sh’s
prune_conflicting_onnx_wheels carried a *genai*.whl glob on its DEFAULT
ONNX_PACKAGE=onnxruntime arm. Far too broad: it also names the plain CPU genai
wheel this media lane now produces for every architecture, which the uv-sync
step and the ARCH-PARITY table both rely on being present. Had the deletion
succeeded, the earlier GENAI-DRIFT bug would have returned — absent a local
wheel, the resolver quietly prefers the app lock’s PyPI build. It survived only
because /opt/wheels happens to be mounted read-only, so the removal errored and
|| true discarded that error; flipping the mount to writable would have broken
all three architectures at once. Full narrative:
gen1-riscv64-genai.md.
Fix. Fixed 2026-08-31 by narrowing the glob to the GPU-flavoured variants
the arm actually means (*genai_cuda-*, *genai_rocm-*, *genai_directml-*),
beside its *_gpu-* / *_migraphx-* neighbours. The lesson is about || true
on a destructive step: it hides the failure AND the fact that the step was
wrong, so the bug sits latent until something unrelated arms it — here, a
read-only mount becoming writable.
The disk guard aims at the wrong number#
Symptom. The chain prunes at 40G free between stages, reports success, and the
NEXT stage refuses anyway: [ERROR] runtime lane refused: 56G free, ~120G needed
(2026-09-02: six manual prunes; 2026-09-03: the Flutter ship build, attempt 1).
Cause. Two different numbers. CROSS_DISK_GUARD_GB (40) is a floor for this
stage; the runtime lane needs the sum of every arch’s growth (build-cache-tiers.md § 3.2), and
--only runtime additionally pulls the three cross-android-<arch> images
(~40G uncompressed each) as its artifact source. A guard that reclaims to a fixed
floor is therefore satisfied exactly when the lane is not.
Fix. _chain_stage_disk_guard in build-cross-chain.sh reclaims to what
comes next (_chain_runtime_lane_need_gb), and the launch-time preflight warns
when the run will enter the lane with less than stage cost + lane need.
When the guard reclaims nothing. buildctl du showing every regular record
Reclaimable: false is not a full cache — it is killed chains’ leaked leases
(2026-09-03: 351 records / 251 GB pinned, prune-safe.sh freed 0). Leases die
with the daemon: systemctl --user restart buildkit.service (no build running),
then PRUNE_KEEP_GB=<N> linux/host-config/prune-safe.sh. --keep-storage bounds
the WHOLE store, and the non-candidates (cache mounts ~166G + source.local ~10G)
count toward it; since CON53 (2026-10-01) the script and the chain’s fallback add
them, so <N> is GB of layer cache, not of the store. Local
:latest-<arch> images are re-pullable and not build inputs; nerdctl rmi
them last. Restarting the daemon is the BKD1 remedy above wearing a disk costume.
BROKEN lib/gst-plugins/libgstnvvideoconvert.so -> libnvbufsurface.so.1.0.0 on the arm64 package stage#
The second arm64 package stage of the nvidia chain (2026-11-06) failed DeepStream’s soname
closure with 105 rows and FOREIGN-TRT … libnvinfer.so.11. Two causes, both the Jetson route’s:
the Jetson .deb’s libraries carry no RUNPATH, because L4T puts /usr/lib/aarch64-linux-gnu/tegra
on ld.so.conf, while the amd64 .deb’s carry RUNPATH=…/deepstream-9.1/lib:/usr/local/cuda/lib64
and the image keeps DeepStream’s lib dir off ld.so.conf (libnvv4l2.so carries the SONAME
libv4l2.so.0); and the cross components linked TensorRT 11, because the sysflags’
-L/usr/lib/aarch64-linux-gnu (TensorRT 11’s dev links) preceded the SDK’s -L on the compiler
word. ds_sbsa_runpaths now sets the RUNPATH on every file without one and rewrites the bare
libcufft.so NEEDED to libcufft.so.12; the SDK’s -L comes first; the three VPI consumers are
excused on arm64 only. A file list from an L4T package is built for an ld.so.conf the SBSA image
does not have: check RUNPATHs before trusting the closure.
The third stage (2026-11-06) left 24 rows, most -> libnvdsbufferpool.so.1.0.0, and four elements
(nvstreammux, nvvideoconvert, nvmultistreamtiler, nvstreamdemux) reported
does not register … (got '/nonexistent'): the SBSA container ships libnvdsbufferpool.so under
its bare name, so the staged copy resolved for nothing that NEEDs its SONAME. Three more rows were
bare libcublas.so, libnppial.so and libnppist.so, and four excuses (UCX, Maxine, the bare
bufferpool name) were STALE on a .deb that ships none of those files. The stage now copies the
bufferpool under its SONAME, rewrites every bare NEEDED to the target CUDA dev link’s SONAME, and
keeps the amd64-only excuses off arm64 (deepstream.sbsa-bufferpool-soname,
deepstream.sbsa-bare-cuda-needs, deepstream.sbsa-amd64-excuses). A plugin whose element
“does not register” with /nonexistent as its origin has an unresolved NEEDED; read the closure
rows above it first.
The fourth stage (2026-11-06) left 15 rows and every element registering: nine were
libnvdsgst_deepstream_bins.so -> libnvdsgst_<plugin>.so, its siblings in gst-plugins/, which a
RUNPATH naming lib/ alone cannot reach (the amd64 Makefiles write -rpath=$ORIGIN:…/lib); the
other six were still bare libcufft.so, libcublas.so, libnppial.so and libnppist.so, because
the staged arm64 runtime holds only cudart’s dev link, so the SONAME lookup found nothing to
rewrite to. The RUNPATH now starts with $ORIGIN, and the lookup falls back to the host toolkit of
the same CUDA version, whose SONAMEs are the target’s (deepstream.sbsa-origin-runpath,
deepstream.sbsa-host-cuda-sonames). A grep that reads a closure verdict must match BROKEN
itself: a filter on ok matched msgbr**ok**er and hid fourteen of the fifteen rows.
no GStreamer plugin directory at /opt/gstreamer/lib/aarch64-linux-gnu/gstreamer-1.0#
The first arm64 package stage of the nvidia chain (2026-11-05) died in the DeepStream step after
media had passed. ds_stage_runtime derived the plugin directory from
dpkg-architecture -qDEB_HOST_MULTIARCH, amd64’s layout, where the native GStreamer installs
into lib/x86_64-linux-gnu. The cross-built arm64 GStreamer installs into lib/ and has no
triplet directory at all. Both layouts carry the lib/multiarch link, which is what the image’s
GST_PLUGIN_PATH names and the registry scans (Scanning plugins in: /opt/gstreamer/lib/multiarch/gstreamer-1.0 in both media logs), so the DeepStream link now lands
there. A plugin path taken from the host’s multiarch triplet is an amd64 assumption; take it from
the link or from the installed .pc.
zconf.h: No such file or directory in civetweb under the SBSA DeepStream build#
Symptom. The nvidia chain’s arm64 media stage, cross-built on the amd64 host, dies in
the DeepStream RUN: src/civetweb.c:452:10: fatal error: zconf.h: No such file or directory,
then [deepstream] ERROR: civetweb failed. zlib.h was found. The next run, past civetweb,
died in the first component: cp: cannot create regular file '/usr/lib/aarch64-linux-gnu/tegra/': Not a directory.
Cause. The source-built cross GCC’s sysroot is /usr/aarch64-linux-gnu: it searches
/usr/aarch64-linux-gnu/include and never /usr/include or /usr/include/aarch64-linux-gnu,
where apt puts the :arm64 dev headers (zlib1g-dev, libssl-dev, …). The Meson cross
file adds both dirs with -idirafter (cross-meson.sh says why); DeepStream’s Makefile
builds (civetweb, then every component) got no such flag. A first fix put the multiarch dir on
CPATH, which the probe in the gpu image showed is not enough: the headers are under
/usr/include itself.
The second symptom is the Makefiles’ TARGET_DEVICE=aarch64 branches: they install into and
link against L4T’s /usr/lib/aarch64-linux-gnu/tegra, which only a Jetson has.
The third: aarch64-linux-gnu-ld.bfd: cannot find -lcuda in nvll_osd. amd64 finds the
driver stub through LIBRARY_PATH, which GCC honours only as a native compiler; the cross
driver needs an explicit -L for <cuda view>/lib64/stubs.
The fourth: skipping incompatible dsexample_lib/libdsexample.a then cannot find -ldsexample
in gst-dsexample, whose dsexample_lib/Makefile spells gcc instead of $(CC).
The fifth: cannot find -lgstnvdsseimeta in gst-nvmultistream2. Nothing builds that
library; the amd64 .deb ships it, the Jetson .deb and the SBSA container’s DeepStream tree do
not, and the container’s own libnvdsgst_multistream.so needs it from the Tegra dir, so it is the
fourth staged SBSA copy (DEEPSTREAM_SBSA_LIBGSTNVDSSEIMETA_SHA256).
Fix. ds_cross_setup appends -idirafter /usr/include/<triplet> -idirafter /usr/include -L/usr/lib/<triplet> to the cross compiler strings every Makefile build receives
(DS_CROSS_SYSFLAGS), zlib1g-dev is a named build package, and a failed civetweb prints its
error lines before its tail. Every component make gets LIB_INSTALL_DIR=<DeepStream lib>/, and
for the build /usr/lib/<triplet>/tegra is a link to that dir, removed before the stage ends
(ds_link_tegra_dir), and under cross the components’ link flags name the CUDA view’s lib64
and lib64/stubs, and ds_patch_literal_compiler swaps that one literal gcc for $(CC) on the
fetched tree (a moved anchor fails the fetch). test-deepstream.sh holds all of it;
deepstream.cross-multiarch-headers proves the include pair. Proven in the gpu-arm64 image:
a zlib+OpenSSL probe compiles and links to an AArch64 ELF with exactly these flags.
The cross-sbsa packages vanish between the repo RUN and the install#
Symptom. The nvidia chain’s arm64 gpu stage, cross-built on the amd64 host
with CROSS_NVIDIA_SBSA=1 beside the amd64 lane (--parallel-archs), logs
CUDA cross repo enabled for TARGET_ARCH=arm64: ubuntu2604/cross-linux-sbsa in
its repo RUN and then dies in the next one with
E: Unable to locate package cuda-cross-sbsa-13-4 for the whole cross set,
while NVIDIA’s repo serves every one of them. Alone, the same lane passes.
Cause. /var/lib/apt is a BuildKit cache mount, and Dockerfile.nvidia
keyed it by the BUILD arch alone, so both lanes shared apt-lib-amd64. apt’s
update deletes the list files of sources it is not configured with
(APT::Get::List-Cleanup); the amd64 lane’s repo RUN ran its update a few
seconds after the arm64 lane’s and erased the cross-linux-sbsa list. sharing=locked
serialises the RUNs; it does not keep one RUN’s lists from the next. The
second half: BuildKit keys a RUN without its cache mounts’ contents or ids, so
re-keying the mount alone left the repo RUN CACHED and the next RUN with an
EMPTY /var/lib/apt, and every package was “unable to locate”.
Fix. Two: the three apt mounts of Dockerfile.nvidia are keyed by the
target too (apt-lib-${TARGETARCH}-${TARGET_ARCH}), as every other
Dockerfile’s are, and install-cuda-stack.sh runs apt-get update before its
first install, as install-tensorrt.sh already did. test-cuda-cross-sbsa.sh
refuses a build-arch-only id and an install without the update;
cuda-stack.apt-lists-keyed-by-target and cuda-stack.installer-refreshes-apt-lists
prove both. The rule: a RUN that installs packages refreshes the lists itself;
a cache mount carries nothing a RUN may rely on.
A renamed or dropped distro package kills a stage hours in#
Symptom. A media or toolchain stage dies four hours into a rebuild with
E: Unable to locate package <name> — or, worse, does not die: an
install_target_packages ... || true swallows it and the feature silently
vanishes from the shipped image.
Cause. Ubuntu renames and drops binary packages between releases, and this
tree pins a rolling one (UBUNTU_CODENAME in versions.env). 26.04 renamed
libfreetype6-dev to libfreetype-dev, replaced libopenexr-3-dev with
libopenexr-dev, and libvvdec-dev never existed on ports at all. Nothing
noticed for months because warm apt caches still answered for the old names —
the tree was un-buildable from scratch and no one knew, because nothing ever
built from scratch.
Fix. linux/scripts/verify_package_names.py, wired into preflight.sh as
the pkg-names check. It extracts every distro package name linux/scripts/**
asks for and resolves each against the live Ubuntu indices for the pinned codename —
archive.ubuntu.com for amd64, ports.ubuntu.com for arm64/riscv64 — before a
build starts rather than four hours in.
What it reads, and how a verdict is reached:
Sources:
install_target_packages/install_optional_target_packages/install_host_packages/install_deps_preamble/apt_installcall sites, bareapt-get installlines,*_packagesand*_pkgsarray literals,append_unique_packages/append_available_packagesin01-core/package-lists.sh, the_CPYTHON_EXT_DEV_PKG_TABLErows in01-core/cpython-dev-packages.sh, and the soname map at03-media/runtime/so-package-map.txt. Names occur one-per-line AND several-per-line; a per-line assumption is how an earlier audit reported the wrong count, so--listprints exactly what was extracted.UNGUARDED requests FAIL the gate: a missing name aborts the whole apt transaction and kills the stage. GUARDED ones (
|| true, a||fallback chain, a self-filtering helper, an enclosing apt probe) only WARN — the cost there is one wasted apt round-trip per run, not a dead build.A name apt can still install through
Provides:counts as present but is reported: a virtual name disappears the next time the provider is renamed.Names from a non-Ubuntu repo (NVIDIA/ROCm/TensorRT) are UNVERIFIABLE, never dead; that file list lives in the script.
An array no installer ever consumes is reported as unchecked, not silently dropped — that is what keeps sdkmanager component lists out of the verdict.
Not covered: package names written directly in a
DockerfileRUN (Dockerfile.toolchain’sbinutils-devis the only one today), and anything a script assembles at runtime rather than spelling out.
Offline is a SKIP, never a pass. Indices are cached per codename with a
6h TTL (PKG_NAMES_TTL, PKG_NAMES_CACHE_DIR): ~13s cold, ~1.5s warm. With no
network and no cache the check says so loudly and exits 0; with a stale cache it
verifies anyway and says the cache was stale.
The transferable lesson. The gate carries its own extraction self-check —
known package names that MUST be found (a several-per-line array row, a
backslash-continued call, a package-lists.sh helper) and decoys that must NOT
be (an sdkmanager component, a table column, a word from an echo string). Break
the extractor and the check exits 2 before it ever reports green. A gate whose
input extraction can silently degrade to nothing is the failure this repo keeps
re-learning; a scanner has to prove it is still scanning.
apt: libc6:i386 install is unsatisfiable after an archive/ports drift#
Symptom. The android stage dies a few seconds into the SDK install, on every arch, with:
E: Unable to satisfy dependencies. Reached two conflicting assignments:
1. libgcc-s1:arm64 is selected for install
2. libgcc-s1:arm64 Depends libc6:arm64 (>= 2.35)
but none of the choices are installable:
- libc6:arm64 is selected for removal because:
1. libc6:i386=2.43-2ubuntu2.4 is selected for install
2. libc6:arm64 Breaks libc6:i386 (!= 2.43-2ubuntu2.3)
The arch named varies by lane: arm64 on the riscv64 image, riscv64 on the
arm64 one, both on amd64.
Cause. Two facts combine. The compiler base installs libc6 for BOTH
foreign arches, but Dockerfile.media’s apt reset wipes all sources and writes
only the build host’s and the current target’s. When archive.ubuntu.com
publishes a libc6 update before ports.ubuntu.com (measured 2026-09-11: i386 2.4
on archive, arm64/riscv64 still 2.3 on ports), the freshly installed
libc6:i386 Breaks the frozen foreign copies — and apt cannot upgrade an arch
it has no source for. The mirrors were back in sync minutes later; the failure
mode is the drift, not the package.
Fix. cross_ensure_installed_foreign_arch_sources
(01-core/cross-apt.sh), called from android-sdk.sh before apt-get update:
it writes a per-arch ports source for every installed foreign arch that has
none, so apt moves all libc6 arches to the new version together. Guarded by
test-cross-apt.sh, including a whole-line wiring check — the first mutation
run showed a substring check over the file still passes with the call deleted,
because the helper’s name appears in a comment.
Retry after a drift. Nothing in the image needs rebuilding. Wait for the
mirror to catch up and re-run the stage (--from-stage android, ancestry
checked) — the failed run left no partial tags (0/7 cache stages exported).
Windows CPython zlib-ng loses AVX-512 features#
Symptom. ClangCL reports that zlib-ng intrinsics require avx512f, avx512bw
or avx512vl while compiling CPython in the toolchain stage. The enclosing
patched-llvm stage name does not mean LLVM itself failed.
Cause. A global -march=x86-64-v3 takes precedence over the upstream project’s
per-file /arch:AVX512. Reordering those two switches cannot fix that precedence.
Fix. The checked-in CPython props apply the floor immediately before ClCompile
using each item’s ISA metadata: v3 normally, v4 for existing AVX512 items, with
inherited VNNI/VPCLMUL options. Retain the x64/ClangCL guards; do not remove optimized
files or raise the global baseline. See Windows x64 ISA floors.
The portable XML-wiring suite and native compiler probe have separate coverage;
full CPython and lane acceptance still require their actual build results.
A from-source CPython silently drops an extension module#
Symptom. import ssl / import sqlite3 / import lzma raises
ModuleNotFoundError inside a shipped image, or an interactive python3 has no
line editing. The toolchain stage was green: make -k || true skips an extension
whose dev header was missing at configure time and says so only in passing.
The 2026-08-09 incident was libsqlite3-dev: the host closure got sqlite
transitively through GUI dev packages, the cross-target install list forgot it,
and half the Python ecosystem imports sqlite3 on the way to something else.
One table, two consumers. 01-core/cpython-dev-packages.sh holds every row
as <dev-package> <required|optional> <ext-module>..., and nothing else may keep
a second list:
consumer |
reads |
verdict |
|---|---|---|
|
|
the HOST closure installs the same set |
|
|
one atomic apt install, then a per-package |
|
|
audits each staged |
The class column therefore governs the package, not the .so. The audit is
warn-only on purpose: promoting the required rows to fatal there flips all three
arches at once and only a cross rebuild can price that, so the decision stays
open rather than being smuggled in with a refactor. The free-threaded trees are the
exception: they ship as the image’s runtime interpreter, so a missing _ssl,
_hashlib, _sqlite3, zlib, _bz2, _lzma or _ctypes is fatal there
(consumer-image-contract.md § The free-threaded Python).
Until 2026-09-05 the audit
carried its own hand-written array instead — seven modules that had never gained
readline after LOG23 added it to the table, which is the same desync in
miniature.
The parsing trap. build_python.sh runs under IFS=$'\n\t', where an
unpinned read does not split on spaces: a row naming two modules
(libssl-dev required _ssl _hashlib) would arrive as one word and the audit
would look for an extension called _ssl _hashlib. Every accessor in the table
file pins IFS=' ' on its read for exactly that reason, and
tests/test-cpython-ext-table.sh runs cpython_ext_modules and
cpython_ext_dev_packages under both values of IFS.
What only a real build shows. Whether the five modules the audit gained on
2026-09-05 (_zstd, readline, _curses, _uuid, _decimal) actually land in
lib-dynload on arm64 and riscv64. Four of them are optional rows and
readline is required, which makes its package fatal at the install step, not
its .so. The audit warns on every row, so a warning there is information, not
a failure, and the toolchain smoke’s own stdlib battery is what turns a
genuinely broken interpreter red.
The delete guard denies its own legitimate work#
.claude/hooks/guard-destructive-deletes.py matched a delete VERB and a
PROTECTED PATH independently, anywhere in the command. So any command that both
deleted something harmless and merely mentioned a system path was denied:
rm -rf scratch && cc -o x /opt/gcc-16.2.0/bin/gcc # denied: "a system directory"
The /opt here is a compiler, not a delete target. This fired five times on
2026-09-02 against a scratch directory under the job tmpdir, each time costing a
tool call and a rewrite. Two earlier variants of the same shape are recorded in
the file’s own header: --rm matching \brm\b, and sed 's/^/ /' reading as
the filesystem root.
The fix. Split the command on ;, &&, ||, | and newlines, never inside
a quoted span (_split_outside_quotes), and run the
protected-path patterns only on the segments that actually carry a delete verb.
A preceding cd target is carried into later segments, so cd /usr && rm -rf *
still denies — the relative delete cannot escape the directory it was given.
The transferable lesson. A guard whose two halves are matched independently
across a whole command is not checking a relationship, it is checking
co-occurrence. Co-occurrence guards look strict and behave randomly: they deny
safe work and, worse, teach the operator to phrase commands to avoid the guard
rather than to be safe. Bind the dangerous verb to its own argument. Both
directions are pinned in test-delete-guard.sh — widening the scope
back to the whole command turns the allow-cases red, and dropping the cd
tracking turns the deny-cases red; the recorded mutation,
delete-guard.quote-aware-split, pins the quote-aware split.
OpenCV: std::complex breaks on a shadowed complex.h#
The riscv64 opencv-gst stage dies compiling modules/core/src/hal_internal.cpp:
error: expected unqualified-id before '_Complex' [-Wtemplate-body]
540 | int ldsrc1 = (int)(src1_step / sizeof(std::complex<fptype>));
The caret sits on complex inside std::complex, because complex is a macro
by then. hal_internal.cpp includes the C header at line 50, under
HAVE_LAPACK, and precomp.hpp has already pulled in <complex> — so the class
is declared correctly and only later uses of the token expand.
In C++, <complex.h> is supposed to reach libstdc++’s wrapper, which includes
glibc’s header and then removes the damage:
# include_next <complex.h>
# ifdef _GLIBCXX_COMPLEX
# undef complex // <- the guarantee
# endif
glibc’s own /usr/include/complex.h has #define complex _Complex with no
__cplusplus guard, so whoever wins the lookup decides whether C++ still works.
CMake passes OpenCV -isystem /usr/include, and -isystem is searched before
the compiler’s C++ directories — so glibc’s header wins and the #undef never
happens. Measured with the riscv64 cross g++:
flags |
|
|
|---|---|---|
none |
|
not defined |
|
|
|
Reproduced in three lines — #include <complex>, #include <complex.h>, then
one std::complex<float> — and it fails on every target compiler once the flag
is present, so this is not architecture-specific in nature.
The fix. build-opencv.sh writes a two-branch complex.h shim next to the
source tree and prepends it with -I. GCC searches every -I before every
-isystem, so the shim wins regardless of what CMake appends — the same
precedence trick the file already uses to pin our FFmpeg prefix. The shim
restores libstdc++’s behaviour in C++ and is a transparent pass-through in C,
which matters because the same flag string is handed to both CMAKE_C_FLAGS and
CMAKE_CXX_FLAGS (OpenCV compiles C third-party code such as openjp2 that
legitimately wants the complex macro).
Why it surfaced only now. It is not a regression. The previous run never compiled this file: libcamera failed earlier on an unrelated link error, and BuildKit builds those stages in parallel, so the whole lane died first. Fixing libcamera let the build get far enough to reach a defect that was always there.
Still open: which CMake package contributes -isystem /usr/include on
riscv64 and not on the other lanes. ZLIB_INCLUDE_DIR=/usr/include is passed on
every cross arch and all three resolve zlib identically, so that alone does not
explain it. The shim makes the build immune either way; the injector is worth
finding so the flag can be removed at the source.
A smoke that never passed and always excused itself#
validate-media-runtime.sh carried a “QEMU Cross-Arch Binary Smoke” that ran
each built binary under qemu-user and, on failure, printed:
WARN: /usr/bin/qemu-riscv64 gst-launch-1.0 --help failed
(may be expected for cross builds without full sysroot)
Three things were wrong with it at once, and each alone would have been enough:
Both branches were
echos. No counter, no variable, no exit code — there was no path from that loop to a failure. The ELF block directly above it does it properly: it countscore_mismatchesandexit 1s.The excuse covered every case it could ever see. The block only ran under
cross_build_is_active, so “may be expected for cross builds” applied to 100% of its invocations. That is not a diagnosis, it is a blanket.The failure was mechanically guaranteed. qemu-user needs the target’s
ld.soand libraries via-LorQEMU_LD_PREFIX; neither was passed, andQEMU_LD_PREFIXappears nowhere in the repo. Every binary died in the dynamic loader beforemain— exactly the “full sysroot” the message names, which makes it a fixable bug, not an expected condition.
Final score before removal: 7 failures, 0 passes, across arm64 and riscv64 in one run.
Removed rather than repaired, 2026-09-02. Repairing it needs a multi-hour media build to prove the sysroot prefix actually works, and shipping an unproven-but-now-fatal gate is how you lose the next run. Functional coverage already exists where it belongs: the runtime-image smoke boots the real per-arch image and gates the manifest on it — that is what caught the riscv64 venv gap the same day.
The transferable lesson. A check whose failure branch is always excused teaches its readers that WARN lines are noise, which is worse than having no check: it costs attention on every run and buys nothing. When you find one, the question is not “how do I make this pass” but “what would it take to make this able to fail” — and if you cannot answer that today, delete it and say where the real coverage lives.
A trailing conditional fails the whole script#
The 2026-09-03 runtime build died on amd64 in setup-torch-venv.sh with
exit code: 1 and no error text — the last lines were a healthy
uv pip install --no-deps ml_dtypes / Checked 1 package in 2ms. The cause was
one line at the END of reconcile_local_wheels in assemble-torch-app.sh:
[ "${have_torch_family}" = "true" ] && _backfill_torch_runtime_deps
}
A function returns the status of its last statement. With no local torch wheel
(every amd64/arm64 build — torch comes from uv sync there) the test is false,
the && list is 1, so the function returns 1; the caller runs under
set -euo pipefail and exits. Nothing printed anything, because nothing had
failed in the ordinary sense. riscv64, the only arch WITH a local torch wheel,
was the only arch that would have passed.
Two things let it through:
set -eis not tripped by the list itself.a && bis exempt from-e, which is why the idiom feels safe; the trap is only that its status becomes the function’s status, and the bare callreconcile_local_wheelsin the caller is NOT exempt.The characterisation test ran without
set -eand never looked at$?. It pinned the sequence ofuvcalls the function makes (its stated purpose) and so proved the refactor behaviour-preserving for every path — including the path that now returned1, because a return status is not auvcall.
Fix: an if ... fi (or || true when the right-hand side is genuinely
optional). The test harness now runs the function under set -eu and asserts
0 for a non-torch wheel set; against the broken revision that case fails
(expected '0', got '1').
Where else this hides. A census of cond && cmd as the last statement
before a closing brace finds 17 sites in the tree; almost all are deliberate
predicates ([ -n "${_t}" ] && [ "${_t}" != "${_b}" ]) whose callers use them
in if/||. The bug shape is narrower: an action on the right-hand side and
a bare call site under set -e. A regex on the function alone cannot tell the
two apart, so the gate that landed for it, preflight slug trailing-conditional
(linux/scripts/verify_trailing_conditional.py), flags every function that ends
on a conditional and freezes the reviewed predicates in
linux/scripts/trailing-conditional.allow:
code-quality-tooling.md § Trailing-conditional returns.
It cannot see call sites, so a function-level test must still assert the exit
status on the “nothing to do” path, not only the calls it makes.
The copied Rust toolchain is the builder’s arch#
Symptom. The arm64 package stage dies with exit code: 127 and no
command not found line — the last output is Keeping existing /usr/local/cargo/bin/rustup (rustup toolchain wins over PATH lookup)
(2026-09-03). In the shipped :latest-cross-arm64 of 2026-09-01:
$ rustc --version
bash: /usr/local/cargo/bin/rustc: cannot execute: required file not found
$ ls /usr/local/rustup/toolchains
1.98.0-x86_64-unknown-linux-gnu nightly-2026-06-28-x86_64-unknown-linux-gnu
$ du -sh /usr/local/rustup # 2.0G
Cause. Dockerfile.package COPYs /usr/local/{rustup,cargo} from
artifact-source, and artifact-source is the amd64 host image of the
cross chain (--platform=${ARTIFACT_PLATFORM}). Everything else it copies is a
target tree (a cross-built /opt/gcc-<v>, /opt/llvm-target, /opt/opencv5),
but the Rust toolchain there is the builder’s own x86_64 install with
aarch64/riscv64gc targets added — that is what a cross-compiler needs and
exactly what a native arm64 image cannot run. Every arm64/riscv64 runtime image
shipped 2 GB of dead x86_64 binaries at the front of PATH
(/usr/local/cargo/bin precedes /usr/bin), so cargo was broken rather than
falling back to Ubuntu’s.
Why nothing caught it. Three layers, each blind in its own way:
wire_cargo_symlinkschecked-x(true for a foreign ELF) and kept the shims.report_rust_provenance’s hard gate readsRUST_VERSION, which did not reach the script until 497fd319 (2026-09-03) — the day it started running was the day it failed. Before that:NOTE: RUST_VERSION unset; cannot verify.The runtime smoke’s ADV/HAVE table (
_advert_verdicts) turned an unreadable actual value intoSKIP, sorustc --versionfailing under2>/dev/nullwas reported as “could not read”, not as a mismatch. That arm is fatal since 2026-09-04 (UNREAD); see docs/cross-build-verification.md, gate A.
Why 127 with no message. _got="$("${CARGO_HOME}/bin/rustc" --version 2>/dev/null | awk …)": the loader’s cannot execute goes to /dev/null,
pipefail propagates rustc’s 127 through awk, and set -e exits on the
assignment. The pattern is fine for a probe whose result is tested; it is not
fine when the probe’s failure is itself the fault.
Fix. setup-package-image.sh ensure_native_rust_toolchain (before
wire_cargo_symlinks): if ${RUSTUP_HOME}/toolchains/ holds no
*-<own triple> dir, wipe ${RUSTUP_HOME} and everything in ${CARGO_HOME} but
its registry cache mount, and run the same install-rust.sh the
toolchain stage uses, with BUILD_MODE=native and RUST_INSTALL_CARGO_C=0
(compiling cargo-c under QEMU would cost an hour; the cargo-c apt package is
what wire_cargo_symlinks links in that case — one minor version behind the
pin, an accepted skew). amd64 is a no-op: the copied toolchain is native
there. The native install downloads the pinned stable + clippy + rustfmt +
wasm32-unknown-unknown and the pinned nightly, same set as amd64, so the
three arches ship the same toolchain surface. Since 2026-10-13 prune-host-payload.sh
empties the foreign toolchain in artifact-source, before the COPY, so the 745 MB
x86_64 layer no longer ships only to be deleted; this function then installs over
an empty tree (why).
Guards. check_rust_toolchain in smoke-runtime-image.sh executes
rustc --version in the shipped image, requires the RUST_VERSION pin, reads
the active toolchain’s host triple (rustup show active-toolchain) and requires
cargo-cbuild — it fails on the 2026-09-01 image
(tests/test-runtime-image-gates.sh). The same class applies to any host
tree copied from artifact-source: /opt/flutter ships bare from the amd64 sdk
stage, and bootstrap_flutter_sdk (setup-package-image.sh) caches the
target-arch Dart SDK, which check_flutter verifies the same way
(Bootstrapping Flutter in the package stage). The
general audit for that class is check_manifest_tree_arch: it reads the ELF
machine of everything under every tree in runtime-artifacts.manifest and fails
when a foreign image carries builder-arch objects —
docs/artifact-copy-completeness.md#the-shipped-trees-must-carry-the-images-own-arch
A packaging script dies with no message#
Symptom. A Dockerfile.package / Dockerfile.torch RUN ends with
did not complete successfully: exit code: N and the last line of output is an
ordinary progress line. Nothing names a command, a line, or a reason. Seen
twice in the 2026-09-03 18:13 run: the arm64 package stage (exit code: 127,
last line Keeping existing /usr/local/cargo/bin/rustup) and the amd64 torch
stage (exit code: 1, last line Checked 1 package in 2ms).
Cause. set -e exits silently by design. The three image-side scripts —
setup-package-image.sh, setup-torch-venv.sh, assemble-torch-app.sh — are
several hundred lines of small functions, so the failing command can be any of
them, and the usual suspects say nothing on the way out:
a command substitution under
pipefailwhose stderr is discarded (_got="$(rustc --version 2>/dev/null | awk …)"— an unrunnable foreign-archrustcproduces exit 127 and not one byte of output);a helper whose last command is a failed test, which becomes the helper’s own return value (see A trailing conditional fails the whole script);
any
uv/gitcall that fails with its diagnostics already consumed.
Fix. The three scripts run set -Eeuo pipefail and install_err_trap
(01-core/logging.sh), so a set -e death now prints
[ERROR] Command failed (line N): <the command> before it exits. -E is the
load-bearing flag: without errtrace the trap is not inherited by shell
functions, which is where all the work happens. Dockerfile.torch COPYs
logging.sh into /opt/scripts/core/ for this.
The probe that produced the arm64 127 also names its own failure now: an
unrunnable ${CARGO_HOME}/bin/rustc reports does not execute and points at
ensure_native_rust_toolchain.
Reading it. The trap reports the line of the failing command, not of the
caller. Match it against the script in the image
(nerdctl run --rm <image> sed -n '<N>p' /opt/scripts/packaging/<script>;
assemble-torch-app.sh lives in /opt/scripts/03-media/final/), because the
line numbers move with every edit to the file.
A dry-run timer hangs after its command finished#
Symptom. A runtime dry run prints its build command but a captured-output test never returns. Mutation baselines reach their timeout even though the graph suite passes elsewhere.
Cause. The timer started a heartbeat even for dry runs. A termination signal
between sleep ... & and a separate child-PID assignment could leave the sleep
alive with stdout/stderr inherited. The parent command finished, but its output
pipe remained open until the sleep ended.
Fix. Dry runs start no heartbeat. Live heartbeat cleanup uses the shell’s
current background PID directly and waits for the child after terminating it.
test-runtime-heartbeat.sh injects a signal at the old assignment boundary and
kills its bounded test group on every exit. Graph fixtures isolate their context
cache and use a synthetic immutable parent; no container CLI call is permitted.
These fixtures prove lifecycle and command construction, not image execution.
A callee invoked in an if ! condition runs with errexit off#
Symptom. A multi-hour builder fails, the chain carries on, and the stage reports success. Nothing in the log says the exit code was thrown away.
Cause. Bash suspends errexit for the entire dynamic extent of a
command used as a condition — the callee’s body, and everything it calls. So a
function written to rely on set -e for its aborts raises nothing when it is
reached through if ! f …, f && …, f || … or a condition-context
substitution. gcc.sh reaches build_canadian_native_gcc_for exactly that
way, and inside it the invocation of build-gcc.sh was a plain command: its
non-zero exit was discarded, and the missing native GCC only surfaced arches
later.
Fix. Inside such a function every failure has to be raised explicitly.
Both cross-GCC callers now invoke _gcc_invoke_cross_builder with an explicit
|| die for builder failure. The launcher retains the builder’s exit status;
Canadian compiler variables and configure cache answers remain on that caller.
Installed-tool checks keep their own explicit failures. The Canadian link-probe
skip remains the only opt-in nonfatal path. test-gcc-errexit-contract.sh pins
Bash’s conditional behavior and the structural fatal guard;
test-gcc-cross-launch.sh exercises both callers with fake tools, including a
failed ordinary cross build with stale installed executables. These tests do not
compile GCC or validate real ELF files.
The check to carry away. Before trusting set -e inside a helper, grep for
how the helper is called. A guard that only works in the default context is
not a guard; it is a coincidence.
The same rule applies to parallel result collection: _parallel_arch_collect is
called through ||, so it must propagate a failed parallel_loop_harvest explicitly.
Worker-pin reads check both cat status and a nonempty value before updating parent
pins or built flags. test-parallel-loop.sh covers read errors, partial output with
failure and empty files through the real conditional call path.
A checksum probe that cannot reach the server reads as “nothing to verify”#
Symptom. The build prints No sha512.sum found on server; continuing. and
goes green. The tarball it just unpacked was verified by nothing.
Cause. The GCC tarball is fetched mirror-first (ftpmirror) for speed,
while both proofs — sha512.sum and the detached .sig — exist only on
gcc.gnu.org. Verification was gated on a wget --spider probe of that host,
so any non-200 answer — outage, 5xx, DNS — took the “the server has no
checksum” branch and returned 0. The one event the mirror exists to survive was
also the event that silently disarmed the integrity check on the mirror’s bytes.
Fix. In build-gcc.sh, an unreachable or absent sha512.sum now goes
through _gcc_sha_unverified_or_die, as does a sha512.sum that downloads but
carries no entry for this tarball; a sha512.sum that probes but fails to
download was already fatal. The .sig path routes through
_gcc_gpg_require_or_warn, so GCC_REQUIRE_GPG=1 makes a missing signature
fatal too. tests/test-gcc-tarball-verification.sh extracts the helpers —
build-gcc.sh is a top-level script, so they cannot be sourced — and drives
each branch with the probe stubbed.
The check to carry away. “The proof was not reachable” and “there is no proof” are different answers to different questions. Any verifier that maps the first onto the second has stopped being a verifier at the moment it matters most.
A soname with no map entry is resolved by an apt-cache prefix guess#
Symptom. Nothing visible. validate-media-runtime.sh reports a missing
soname as resolved, the media runtime installs a package, and the wrong (or
wrongly versioned) library ships.
Cause. Three hand-maintained truths claim to say which apt package provides a media runtime library, and only one of them is reachable at build time:
the codec-lib baseline in
06-packaging/setup-torch-venv.sh::_install_cv2_runtime_apt— the torch stage’s fallback install list when the ffmpeg manifest is absent;the SONAME→package map
03-media/runtime/so-package-map.txt, whichvalidate-media-runtime.shuses to resolve a missing soname deterministically;/opt/ffmpeg/runtime-apt-packages.txt(emit_runtime_apt_manifestinbuild-ffmpeg.sh) — the ground truth, which exists only inside a built image, so no static check can reach it.
Where (2) has no entry, resolution degrades to dpkg-query and then to
apt-cache search "^${base}[0-9]" | head -1 — an arbitrary first hit. And
known_so_packages_load is last-wins, so a duplicate soname naming a
different package is a silent override rather than an error. A baseline bump
(libx265-215 → libx265-2xx) that forgets the map degrades exactly that one
library to guessing, and says nothing.
Fix. tests/test-codec-so-map-convergence.sh freezes the statically
checkable convergence of (1) and (2): the map is well-formed
(SONAME<TAB>package, * family keys allowed), no soname maps to two different
packages, and every versioned runtime lib package hardcoded in the baseline
appears as a mapping target. KNOWN_UNMAPPED is a ratchet, not an excuse
list — it records the divergence that already existed on 2026-08-24, because
inventing map entries would mean inventing sonames, and it fails in both
directions so the list can only shrink honestly. Truth (3) stays out of a static
test’s reach; that is stated rather than papered over. ONNX Runtime is denied in
code (ort_is_denied_soname, ort-runtime-gate.sh), so a missing or edited map
cannot reopen the 2026-08-27 path, where the guess pulled a distro
libonnxruntime1.x.
The NVIDIA apt keyring 404s on ubunturesolute#
Symptom. Dockerfile.nvidia dies in its first RUN fetching .../compute/cuda/repos/ubunturesolute/<arch>/cuda-keyring_1.1-1_all.deb (404).
Cause. NVIDIA’s repository path is the Ubuntu version digits (ubuntu2604), not the codename.
Fix. setup-cuda-repo.sh builds it from UBUNTU_VERSION. A keyring SHA in versions.env names one repository’s file; move both pins together when the Ubuntu base moves.
apt gpgv exits 111 after a COPY --link into /tmp#
Symptom. apt reports Could not execute 'gpgv' to verify signature / repository is not signed in a stage that verified fine before.
Cause. COPY --link into /tmp resets the directory to 0755 (a plain COPY does not). apt’s _apt user can no longer write its temp files.
Fix. Restore chmod 1777 /tmp after the copy, as Dockerfile.nvidia does; test-layer-order.sh asserts that every Dockerfile with a --link copy into /tmp also runs chmod 1777 /tmp (per file; it does not check the order).
nvcc rejects the image’s GCC 16#
Symptom. #error -- unsupported GNU version! from nvcc’s host_config.h; or, after working around it with CUDAHOSTCXX=g++-15, GLIBCXX_3.4.xx not found at link time.
Cause. nvcc checks the host compiler’s version. Pairing CUDA objects built by GCC 15 with a GCC 16 libstdc++ is what produced the GLIBCXX errors.
Fix. Keep GCC 16 and set NVCC_PREPEND_FLAGS=-allow-unsupported-compiler (Dockerfile.media, Dockerfile.package). Never downgrade the host compiler.
A CUDA compile is Killed though average memory looked fine#
Symptom. A bare Killed in the ONNX Runtime GPU step; the kernel log shows cicc at 3-6 GB.
Cause. Heavy CUDA translation units are staggered, so the average RSS hides the peak.
Fix. CUDA_MB_PER_CICC (default 3500) sizes the GPU job count against the peak. Raise it before adding swap.
GCC 16.2 segfaults in a module unit’s constructor over a std::span member#
Symptom. internal compiler error: Segmentation fault at the end of a constructor’s mem-initializer list
in a C++23 module implementation unit, on x64 and arm64 alike, while clang builds the same tree.
BeschleunigerBallett runs 44628923878 and 44634321158 stopped in GltfLoader.cpp’s first constructor.
Cause. The exported class held two std::span<const unsigned int> data members, and the unit imported
modules whose functions take that span type too. Bisected in the image with the one object under a 4 GB
cgroup: vector members compiled, a std::span<const Vertex> member compiled, and the two
std::span<const unsigned int> members alone brought the crash back. Smaller module graphs of the same shape
compiled, so it is not reduced to a standalone case.
Fix. Hold such a view as a pointer and a count and build the std::span in the getter (BeschleunigerBallett
f7e9c7fc). To bisect on a small host, build one object with ninja -j1 <object> in a container started with
--memory 4g --memory-swap 4g, so an overrun kills the container only; a ulimit -v cap is no signal, since a
module unit that includes vulkan.hpp parses at about 3.3 GB.
Every ASan GPU test leaks under setup_loader_term_phys_devs on a new runner image#
Symptom. LeakSanitizer fails every Vulkan test of an ASan build on llvmpipe in the Linux image: one direct
leak in a pthread_once frame of an <unknown module>, under the loader’s setup_loader_term_phys_devs and
terminator_EnumeratePhysicalDevices, plus indirect leaks from that module’s threads. BeschleunigerBallett’s x64
clang job hit it on GitHub’s ubuntu-26.04 runner image 20261116.202.1 (runs 44753690114, 44761639606), with the
container image of the green run before on 20261111.196.1.
Cause. On that runner one of the image’s other ICDs finds a DRM node (Mesa’s PowerVR ICD stops warning that it found none), allocates while the loader enumerates devices and keeps it, with its threads’ memory, to exit; the loader has unloaded it by then, so LSan names no module and a module suppression cannot match.
Fix. Load lavapipe only in the llvmpipe run: VK_LOADER_DRIVERS_SELECT='*lvp*' unless the caller names an ICD
(BeschleunigerBallett 712ed01d, its run-ctest.sh --virtual-display; run 44784592908 passed 899 of 899 on that
runner with no leak). A suppression of the loader frame (leak:setup_loader_term_phys_devs, ef6503a3) removes
only the direct block: the threads’ blocks it holds are still reported as indirect leaks (run 44770349057).
The hub’s ctest-run.sh and cargo_test.sh now set that default where no GPU device node exists (CON284,
ctest-run.sh).
A Linux AMD package returns fewer, drifting detections on MIGraphX#
Symptom. compare_detector_parity.py fails with detection counts differ; the MIGraphX run’s top score is
far below the CPU’s, and a second run in the same session gives other numbers again. migraphx-driver verify
and the MIGraphX Python binding give correct, repeatable results for the same model. Seen 2026-11-04 on an
RX 9070 XT with ORT v1.31.0 and MIGraphX 2.18.0.
Cause. ORT’s MIGraphX provider binds a partition output whose MIGraphX shape is a strided view onto ORT’s
dense buffer (BACKLOG CON225). It needs a partition that ends in a Slice/Reshape view, which this model
gets because the EP leaves GridSample on the CPU.
Fix. The EP patches 003-migraphx-gridsample.patch and 004-migraphx-refuse-nonstandard-output.patch
(CON225), in the rocm image since its 2026-11-05 media build and proven on 2026-11-07: every Linux AMD package
built on that image passes compare_detector_parity.py on the RX 9070 XT. Before blaming the provider, put /opt/rocm/core-10.1/lib and extras-10/lib
on the loader path: a missing libmigraphx_c.so.3 fails at provider load, not with wrong numbers.
A chain passes every gate and then stops at image-acceptance: commit the hub tooling before creating an acceptance receipt#
Symptom. The runtime lane’s smoke reports 0 failure(s), the candidate index is pushed, and the run ends
with that one line and runtime stage failed; the public tag does not move. Seen 2026-11-08 on a rocm chain
that had run three hours.
Cause. The acceptance receipt records the clean hub SHA the image was accepted with, so
image-acceptance.py refuses a dirty working tree. Any edit in the checkout while the chain runs, in the
chain’s closure or not, dirties the tree it will read hours later. The build stages do not care; the receipt
does.
Fix. Commit or stash before the lane reaches acceptance, then promote the pushed candidate without
rebuilding: build-runtime-manifest.sh --manifest-only --push with the run’s image and arches reuses the
wrappers and runs acceptance again (image-acceptance.md). Work on the hub in a second
checkout or worktree while a chain runs here.
A media artifact is built and verified, and the merged image does not carry it#
Symptom. A new output of a Dockerfile.media fan-out branch (first seen with the plugin MIGraphX EP,
/usr/local/lib/onnxruntime-ep-amdgpu, 2026-11-07) passes its own verify-media-artifacts.sh stage, the
media stage goes green, and the pinned media image has no such directory. The chain then finds out hours
later, in the wrapper’s runtime gate, or not at all when the path is only observed.
Cause. The media stage merges its branches by explicit COPY --link --from=<branch> lines; an output
nobody lists stays in the branch image. The branch’s verify stage runs inside the branch, so it cannot see
the gap. A GPU-only output needs an empty placeholder tree on the chains that do not build it, or that COPY
fails there: ensure_onnx_gpu_placeholder_output_dir does it for onnxruntime-gpu, the plugin’s skip branch
for its own tree.
Fix. Every new branch output gets its COPY in the merge stage and a placeholder on every chain, pinned by
a suite and a mutation recipe (onnx-ep-amdgpu.merge-copy-present). Prove a new path on the PINNED media
image (nerdctl run … ls <path>), not on the branch’s log.
An AppImage starts a bundled helper instead of the application#
Symptom. The payload files pass verification, but AppRun exits before the
application produces its profile. The DEB payload runs directly while its
installed /usr/bin wrapper may have the same wrong target.
Cause. Automatic bundle discovery selects the first executable alphabetically;
a native helper can precede the application. The actual Rust package launched
kataglyphis-rust-hip-probe rather than oxidant.
Fix. Set APP_PACKAGING_BINARY_NAME to the application before invoking the
shared packagers, then rebuild and verify the finished launchers. The explicit
selection must exist as a regular executable; a typo must fail. Direct payload
execution does not prove the installed DEB wrapper or AppRun target.
An AppImage GPU profile times out while the DEB passes#
Symptom. OmniAccelerANT’s profile-gpu-packages.sh passes the tarball and the DEB, then stops without
a message after the AppImage’s CPU profile; its appimage/gpu-profile_*.json is 0 bytes and timeout
returned 124. Seen 2026-11-07 on an RX 9070 XT (ROCm 10.1, MIGraphX 2.18.0) with bytes identical to the DEB’s.
Cause. comgr keys its kernel cache (~/.cache/comgr) on TMPDIR, and the AppImage lane launches with a
fresh TMPDIR for its isolated extraction, so every AppImage run compiles the detector’s kernels again.
Measured with the extracted AppImage run directly: a fresh TMPDIR took 370 s and wrote 275 cache
entries, the default /tmp took 84 s and wrote none. The 180 s launch timeout could never cover it.
Fix. OmniAccelerANT 179d532: the launch budget is 900 s (PROFILE_GPU_TIMEOUT overrides it). A lane
that wants the cache has to keep TMPDIR stable between runs; the isolation stays.
An exception through std::call_once segfaults in libunwind#
Symptom. A process dies with SIGSEGV where a library should have reported an error. The
backtrace runs pthread_once → _Unwind_Resume (GCC’s libgcc_s) → __gcc_personality_v0
→ __libunwind_Unwind_GetLanguageSpecificData (libunwind.so.8) → address 0. Seen
2026-10-01 in nvinfer, whose TensorRT engine build threw inside std::call_once.
Cause. Two unwinders in one process. libunwind.so.8 exports the _Unwind_* symbols
too, and it was ahead of libgcc_s.so.1 in the lookup scope: libgstreamer-1.0 and
libcamera-base both link it for their backtrace support. glibc’s pthread_once cleanup
resumes the exception through libgcc_s directly, whose personality routine then calls
libunwind’s getter with a libgcc_s context. Measured with a ten-line std::call_once that
throws and catches: it crashes when libunwind.so.8 is loaded first (also when
libcamera-base is dlopen()ed RTLD_LOCAL first), and passes otherwise. A C host such as
gst-launch-1.0 or Python always loads libgstreamer before any C++ library.
Fix. GStreamer core and libcamera build without libunwind
(-Dgstreamer:libunwind=disabled, libcamera’s -Dlibunwind=disabled), in every variant (owner
decision 2026-10-01: everywhere, not only where DeepStream runs). Their backtraces fall back
to glibc’s backtrace(). Both halves are measured:
GStreamer. GStreamer 1.29.2 core rebuilt that way: the same
nvinferfailure reports TensorRT’s error and an element error instead of a segfault.libcamera (2026-10-01,
build-libcamera.shrun twice in a container FROM the published:latestamd64, v0.7.2, GCC 16.2). Without the flag meson findslibunwind 1.8.3andlibcamera-base.so.0.7.2NEEDslibunwind.so.8; a C host thatdlopen()s it first (eitherRTLD_GLOBALorRTLD_LOCAL) and then a C++ library whosestd::call_oncethrows dies with SIGSEGV (rc 139). With the flag the NEEDED list haslibgcc_s.so.1instead and the exception is caught. A C++ executable that loads it later passes either way: its ownlibgcc_sis already first.
What else in the image needs libunwind.so.8 (readelf over every ELF, all three arches,
2026-10-01): under /opt and /usr/local only those two libraries, directly or through them.
Outside it, distro packages only: Xvfb (amd64, arm64) and gperftools’ libprofiler and
libtcmalloc* (amd64). Those are Ubuntu’s builds; a C host that preloads libprofiler brings the
hazard back. The runtime smoke’s check_no_libunwind_closure fails any shipped file under /opt
or /usr/local that needs it, and tests/test-no-libunwind.sh pins both flags and that verdict.
libunwind-dev stays installed (several install-deps.sh and the runtime image ship it), so
the flags are the guard: do not set them back to auto to “get better backtraces”.
A Flutter 3.50 runner has the same class, with the engine as the second unwinder:
A Flutter 3.50 Linux app aborts at its first C++ exception.
A Flutter app on ROCm aborts with filesystem_error#
Symptom. A Linux Flutter bundle started with an AMD GPU device prints
terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error',
then terminate called recursively, and aborts. The backtrace runs migraphx_target_create
→ dlopen(libmigraphx_gpu) → libhipblaslt’s __hipRegisterFatBinary → kpack_load_code_object
(librocm_kpack) → __cxa_throw → _Unwind_RaiseException in libflutter_linux_gtk.so.
The same model on the same card passes in a binary without Flutter.
Cause. The same class as the entry above: two unwinders in one process. The Flutter engine
exports its own _Unwind_*, and as the program’s direct dependency it precedes libgcc_s.so.1
in the lookup scope. Its unwinder finds no handler for the exception ROCm throws and catches
internally, so __cxa_throw calls std::terminate. A preloaded libgcc_s.so.1 moves the
lookup to GCC’s unwinder, and the same bundle then runs MIGraphX and matches the CPU detections.
Fix. bundle-loader.sh --gcc-unwinder makes the launcher preload the bundle’s own
libgcc_s.so.1: through LD_PRELOAD on the host glibc path, which keeps a caller’s entries
behind it, and through the bundled loader’s --preload otherwise, so host children inherit
nothing. A bundle without a regular libgcc_s.so.1 refuses the option, and a launcher built
under the other policy must be restaged. The closure suite proves the lookup owner on both
paths with a stand-in library; it does not reproduce ROCm or prove inference. The engine’s
exports break every C++ exception in a 3.50 runner, not only ROCm’s:
the entry below fixes the order at link time.
A Flutter 3.50 Linux app aborts at its first C++ exception#
Symptom. A Linux Flutter app dies with SIGABRT at its first C++ exception, even one the
throwing library catches itself. stderr shows terminate called after throwing an instance of,
then terminate called recursively. The core’s stack runs __cxa_throw (libstdc++) →
_Unwind_RaiseException (libflutter_linux_gtk.so) → __gxx_personality_v0 →
__cxa_call_terminate → abort. An integration test then reports did not complete for that
test and every later one, with nothing in its log. Seen first in OmniAccelerANT, when GenAI refused
a missing model directory with an exception it catches itself. A Rust panic in an FFI library dies
the same way.
Cause. Two unwinders in one process. Flutter 3.50’s engine links LLVM libunwind statically
and exports 31 of its symbols: ten _Unwind_* functions, four __unw_* and the unw_* API.
_Unwind_GetIPInfo and _Unwind_Backtrace are not among them. Flutter 3.47.9 exports none. The
runner lists libflutter_linux_gtk.so first among its libraries, so the global lookup binds
libstdc++’s _Unwind_RaiseException to the engine. libstdc++’s personality routine then reads the
instruction pointer through _Unwind_GetIPInfo, which only libgcc_s defines, from a context the
engine’s unwinder built. It finds no handler and terminates. Rust’s personality calls
_Unwind_GetIPInfo too.
Measured with ten lines of C++ that throw and catch a std::runtime_error, linked with
--no-as-needed against the real 3.50.1 engine (release and debug, Ubuntu GCC 15.2). It aborts
with rc 134 when libflutter_linux_gtk.so comes first in NEEDED, and catches when
libgcc_s.so.1 comes first. Against 3.47.9’s engine both orders catch.
Fix. Link libgcc_s ahead of the engine. In the runner’s linux/CMakeLists.txt, include the
hub’s KataglyphisFlutterUnwinder module and call kataglyphis_flutter_unwinder_first(${BINARY_NAME})
before target_link_libraries(${BINARY_NAME} PRIVATE flutter). It adds gcc_s inside
--push-state,--no-as-needed, so libgcc_s.so.1 leads the NEEDED list. A call after flutter
fails the configure. Then run 05-frameworks/flutter/check-flutter-unwinder-order.sh on the built
runner: it fails when anything defines _Unwind_RaiseException ahead of libgcc_s in ldd’s load
order. Both are described with the Flutter gates.
With the module, the same ten lines catch against the real 3.50.1 engine. OmniAccelerANT carried
the fix first.
Upstream hides the symbols on master (flutter/flutter#196451, which closed #196402), but neither
3.50.1 nor the 3.51 beta carries it. The cherry-pick request
is prepared, not posted. The libunwind.so.8 entry
is the same class with another culprit.
lavapipe segfaults building an acceleration structure on arm64#
Symptom. A Vulkan test on lavapipe (Mesa’s CPU device) dies with SIGSEGV as soon as a draw
builds an acceleration structure; the core shows a 4-lane st1 in rs_scatter_smem. Seen on
arm64 in BeschleunigerBallett run 36746313937; amd64 passes.
Cause. Mesa 26.0.8’s lavapipe compiles its BVH radix sort (lvp_acceleration_structure.c,
subgroup_size_log2 = 3) for 8-lane subgroups. llvmpipe’s subgroup is its vector width / 32:
256 bits (8 lanes) on AVX2, but 128 (4 lanes) on arm64 NEON and on riscv64. The scatter then
writes through garbage addresses. Measured 2026-10-01 with vulkaninfo in the published
:latest: subgroupSize 8 on amd64, 4 on arm64 and riscv64, and 8 on all three with
LP_NATIVE_VECTOR_WIDTH=256.
Fix. The package image sets ENV LP_NATIVE_VECTOR_WIDTH=256 on every arch (CON44), and the
runtime smoke’s check_lavapipe_subgroup fails an image whose variable or lavapipe subgroup is
anything else. Retire both once the image’s Mesa carries upstream ebcfbe60 (2026-08-22), which
deletes that sort.
llvmpipe segfaults at one vector width on a shader cache another width wrote#
Symptom. A Vulkan process on lavapipe with LP_NATIVE_VECTOR_WIDTH=128 dies with SIGSEGV
(exit 139) right after it creates its device. It does so only after a process at another width ran
under the same HOME, such as one at the image’s 256. Alone, or first, it runs clean. Each crash
leaves a core file of several hundred MB in its working directory. Seen on arm64 in
BeschleunigerBallett: OxidANT’s headless_render at 128 after a C++ golden at 256, in one container.
Cause. Mesa’s on-disk shader cache does not key llvmpipe’s entries on the vector width (Mesa 26.0
with LLVM 21.1.8 in the Linux image). The cache lives in MESA_SHADER_CACHE_DIR, else in
~/.cache/mesa_shader_cache. The 128-bit process therefore loads code built for 256-bit vectors.
Fix. Give a process that overrides the width a cache of its own (MESA_SHADER_CACHE_DIR=<dir>)
or none (MESA_SHADER_CACHE_DISABLE=true). Either ended the crash. BeschleunigerBallett’s
compare-renderer-pixels.sh turns the cache off for its 128-bit run.
tree-arch: /usr/local/lib/onnxruntime-cpu ships 107 EM164 object(s) on arm64#
Symptom. The nvidia runtime-image smoke fails arm64 with one row, e.g. …/onnxruntime-cpu/lib/hexagon-v66/unsigned/libCalculator_skel.so, after every build gate passed
(2026-11-06). amd64 is green: QNN is arm64-only.
Cause. The QNN EP stages the HTP backend’s Hexagon skeletons (QDSP6, ELF machine 164) beside the backend libraries, and the tree-arch scanner read them as builder-arch objects.
Fix. The scanner skips hexagon-v<nn>/ dirs and labels machine 164 QDSP6
(qnn-linux.md). The same smoke warns
(non-fatal) that libgstnv*.so cannot load: they need the driver’s libcuda.so.1, which
nvidia-container-toolkit injects on a GPU host; the five are recorded per arch in
_PARITY_GST_KNOWN_BROKEN, and the package stage proves they register against the stub.
rustup component add aborts under qemu-user#
Symptom. The arm64 package stage dies in setup-package-image.sh with
qemu: uncaught target signal 6 (Aborted) - core dumped and
install-rust.sh: line 82: … Aborted (core dumped) rustup component add rustfmt, right after
info: downloading component rustfmt; the same step passed in the three runs before (2026-11-06).
Cause. rustup downloads and unpacks on several threads, and a qemu-user process can abort mid-download; nothing in the image or the pins changed between the green and the red run.
Fix. rustup_required in install-rust.sh runs each required rustup … add up to three
times, five seconds apart, and fails the installer after the third; the optional adds keep
try_rustup. A run that fails all three attempts is not this transient: read the lines above it.
Headless Chrome prints nothing under qemu-user#
Symptom. In an emulated arm64 container, chrome --headless --dump-dom <url> prints
nothing and exits 134; stderr shows `qemu: uncaught target signal 5 (Trace/breakpoint trap)
core dumped`. The package stage’s Chrome check fails this way when it builds arm64 under QEMU.
Cause. Chrome forks its renderers from a zygote, and the forked children die under
qemu-user. Measured 2026-10-01 with Chrome for Testing 154: --no-zygote renders the page in
21 s.
Fix. Start Chrome through /usr/local/bin/chrome ($CHROME_EXECUTABLE), which passes
--no-zygote:
consumer-image-contract.md.
Chrome stops with No usable sandbox!#
Symptom. FATAL:content/browser/zygote_host/zygote_host_impl_linux.cc:129] No usable sandbox! If you are running on Ubuntu 23.10+ …, exit 134, as uid 1001 in a container.
Cause. The renderer sandbox needs user namespaces or a setuid-root helper. The image ships no setuid helper, and the host decides about user namespaces. Measured 2026-10-01: the bare binary started on amd64 under Rancher Desktop and died this way on arm64 under qemu-user.
Fix. The same wrapper passes --no-sandbox:
consumer-image-contract.md.
An arm64 app dies in ndk_translation on an API 30 emulator#
Symptom. An arm64-v8a APK installs on an x86_64 Android 11 (API 30) emulator, the Flutter
engine starts, then the process dies with SIGILL. logcat shows ndk_translation: Undefined instruction 0x7ee1b800, and the tombstone ends in libndk_translation.so
DecodeSimdScalarTwoRegMisc.
Cause. API 30’s ARM translator (ndk_translation 0.2.2) lacks some ARMv8.0 instructions;
0x7ee1b800 is scalar FCVTZU. Seen 2026-10-01 with OmniAccelerANT’s release APK.
Fix. An API 35 system image, whose translator runs the same APK. The image pins it:
consumer-image-contract.md.
The Vulkan variables name an arch-specific SDK dir#
Symptom. After the entrypoint, env | grep /opt/vulkan/ names /opt/vulkan/<version>/<arch>
rather than /opt/vulkan/active. Natively that is the right SDK; a riscv64 test under QEMU in
the amd64 image then loses Vulkan, both in CMake and in the loader
(the two messages).
Cause. The entrypoint, not the login shell, sources LunarG’s setup-env.sh. That script
sets VULKAN_SDK to $(readlink -f <its dir>)/$(uname -m), so in the amd64 image every
variable derived from it names /opt/vulkan/<version>/x86_64: VULKAN_SDK,
VK_ADD_LAYER_PATH, PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH, CMAKE_PREFIX_PATH.
Measured 2026-10-01 in the published :latest amd64 child; with --entrypoint bash the
image ENV’s /opt/vulkan/active survives. Under QEMU_LD_PREFIX a riscv64 process re-roots
an absolute path into the riscv64 sysroot, which has no x86_64 dir, so it falls through to
the amd64 files. /opt/vulkan/active exists in both and names each one’s own SDK.
Fix. vulkan_env_prefer_active_link (01-core/vulkan-env.sh) rewrites every component
under the link’s target back to <root>/active, without duplicates; vulkan_env_source and
the entrypoint call it (CON48). Native runs are unchanged, since the link resolves to the same
dir. The runtime smoke’s boot probe fails an image that still prints a /opt/vulkan/<version>/
component (vkarch=), and requires VK_ADD_LAYER_PATH (vkadd=yes) as its proof that the
entrypoint sourced setup-env.sh. The :latest of 2026-10-03 carries the fix: after its
entrypoint every Vulkan variable names /opt/vulkan/active (checked 2026-10-06), so
riscv64_cross_env no longer sets VULKAN_SDK and VK_ADD_LAYER_PATH itself.
A lane’s ARCH arrives as x86_64#
Symptom. docker run -e ARCH=x64 … bash -lc '… --arch "${ARCH}"' hands the script
x86_64 (aarch64 on arm64); OxidANT’s package-linux.sh refused both (OxidANT 134e46e).
Cause. Not the login shell: the entrypoint sources LunarG’s setup-env.sh, whose first line
is ARCH="$(uname -m)". An ARCH already in the environment stays exported with the new value.
Fix. vulkan_env_source_script and the entrypoint put the caller’s ARCH back after
sourcing, or unset it when the caller had none (CON133, 2026-10-21; lands with the next image).
A command dies with Illegal instruction on amd64#
Symptom. A binary from the amd64 image, or from a package built in it, ends with
Illegal instruction (SIGILL, exit 132) on one machine and runs on another. Through the entrypoint
the message is this image is built for x86-64-v3 (AVX2, FMA, BMI2) and this CPU does not provide it.
Cause. The image is compiled for x86-64-v3 (CON264). The CPU lacks AVX2, FMA or BMI2: Intel
before Haswell, AMD before Excavator, older Celeron, Pentium and Atom parts, or an emulator without
AVX2.
Fix. None in the image: run it on a newer CPU. ld.so --help lists the levels a CPU supports.
amd64-x86-64-v3-baseline.md (lands with the first chain after the switch).
The core registry blacklists libgstvalidatessim.so#
Symptom. gst-inspect-1.0 -b lists libgstvalidatessim.so, and
gst-inspect-1.0 <path>/validate/libgstvalidatessim.so says it “appears to be a GStreamer
plugin, but it failed to initialize”. No Failed to load plugin line, no missing symbol
(ldd -r is clean). amd64 only: cross builds disable gst-devtools.
Cause. gst-devtools installs its validate plugins under <libdir>/gstreamer-1.0/validate/,
and the core registry scans plugin directories recursively, so it loads them too. The SSIM
plugin’s plugin_init returns FALSE when gst-validate is not initialized, and the registry
blacklists a plugin whose init fails. Under gst-validate-1.0, which keeps its own registry, it
loads and works.
Fix. patches/gstreamer/007-validate-ssim-register-outside-validate.patch returns TRUE
there instead, registering nothing, like the gapplication plugin already does
(upstreamable-patches.md § 22).
The runtime smoke’s plugin-health check now fails on any blacklisted plugin that
_PARITY_GST_KNOWN_BROKEN does not document, and check_gst_validate_ssim runs the override
under gst-validate on amd64.
GStreamer scan reports UNKNOWN after Broken pipe#
Symptom. A plugin scan contains GST_SCAN_DONE, but the smoke reports UNKNOWN and
printf: write error: Broken pipe instead of the gtk4/Wayland diagnostic.
Cause. grep -q closed a printf pipeline early. Under pipefail, the writer’s
failed status overrode the matched marker.
Fix. Search the captured scan without a pipeline. The long-trailer case in
test-smoke-arch-parity.sh keeps this verdict from regressing; see
cross-build-verification.md.
DeepStream: nvstreammux stops the pipeline with reason error (-5) and no message#
Symptom. Any pipeline through nvstreammux fails at preroll; the only error is
h264parse0: Internal data stream error … streaming stopped, reason error (-5).
Cause. The legacy mux, NVIDIA’s prebuilt default, reads GstMapInfo.data after
gst_buffer_unmap(), and GStreamer ≥ 1.28 clears it on unmap.
Fix. USE_NEW_NVSTREAMMUX=yes, which the image sets with DeepStream:
linux-accelerator-images.md § nvstreammux: the new one only.
DeepStream: Unable to load library: libnvinfer_builder_resource_sm75.so.10.16.1#
Symptom. nvinfer cannot build an engine: IBuilder::buildSerializedNetwork: Error Code 6: API Usage Error (Unable to load library: libnvinfer_builder_resource_sm75.so.10.16.1 …).
Cause. TensorRT 10 dlopen()s its builder resources by file name, and ld.so.cache
holds them only under their do_not_link_against_* SONAME.
Fix. The links deepstream.sh puts into /usr/lib/<triplet>/:
linux-accelerator-images.md § TensorRT builder resources, by file name.
DeepStream: nvv4l2decoder: /dev/nvidia0 “isn’t a v4l2 driver”#
Symptom. Error getting capabilities for device '/dev/nvidia0': It isn't a v4l2 driver,
then Failed to open decoder.
Cause. The distro libv4l2 did not load NVIDIA’s NVDEC plugin, which it looks for only in
its own plugin directory.
Fix. The plugin link deepstream.sh stage-runtime makes:
linux-accelerator-images.md § NVDEC through the distro libv4l2.
nerdctl build reports OCI layout cannot have empty digest#
Symptom. A local named-context solve stops before its first RUN with this error.
Cause. The exported Ubuntu layout can point at a multi-platform index. nerdctl 2.4.1 scans only direct image-manifest descriptors and selects none from that wrapper.
Fix. The selected-context cache probe derives a new single-amd64 layout from the pinned input, verifies its config platform and all referenced/copied bytes, and preserves the original. The failed first probe remains failed. This proves neither compiler reuse nor image/GPU acceptance.
A no-push wrapper build cannot find its own android image#
Symptom. In Dockerfile.torch’s wheels-source stage: cross-android-...: not found; with an OCI context added, unable to get info about digest ... content sha256:...: not found; extracting with nerdctl cp, cannot use cp with stopped containers in rootless mode.
Cause. The android tag exists only in containerd’s store, which BuildKit’s OCI worker cannot see. nerdctl maps every oci-layout:// context onto one store id (parent-image-key), so a second one beside runtime_package makes one of them unresolvable. Rootless nerdctl refuses cp from a stopped container.
Fix. runtime_wheels_context_dir extracts /opt/wheels with nerdctl export | tar into a directory context. The context keeps the stage name runtime_wheels; a digest-pinned image reference as its key reaches the registry resolver and fails with <repo>@sha256:...: not found. Never pass two oci-layout:// contexts to one nerdctl build. Since 2026-09-24 RUNTIME_WHEELS_SOURCE=export is the other way: its own export build reads the android OCI layout (the only oci-layout:// context of that build), after proving it is the same image (both deliveries).
The torch RUN idles for minutes before uv venv#
Symptom. The wrapper’s torch RUN (the one that mounts wheels-source) writes nothing for minutes. The first /opt/venv file is dated 161 / 565 / 661 s (amd64 / arm64 / riscv64) after the COPY setup-torch-venv.sh layer (2026-09-22 lane), where the day before it was 96 / 1 / 2 s with the same scripts.
Cause. Likely, not proven: to bind-mount /opt/wheels (about 0.1 GB), BuildKit must hold and checksum the whole android snapshot (about 12.7 GB in 96 layers). When a prune or GC evicted that snapshot after the package build, the wrapper pulls and extracts it again first. A lock on the sharing=locked apt cache mounts would look the same from inside the RUN.
Fix. RUNTIME_WHEELS_SOURCE=export stages the wheelhouse before the package build, so the wrapper no longer depends on the snapshot. To tell the causes apart, compare the wheels-source vertex’s extracting lines with the RUN vertex’s start: the recipe.
RUNTIME_WHEELS_SOURCE=export stops a runtime lane#
Symptom. One of:
RUNTIME_WHEELS_SOURCE=<x>: expected auto, image or export(exit 2, at chain or lane start);the android layout <dir> holds <digest>, but <ref> is <digest> in containerd(oris not present in containerd);needs ARTIFACT_CONTEXT_MODE=oci to prove the layout is <ref>;no wheel in <dir>/opt/wheels, exported from <ref>;the wheelhouse staged for <arch> at <dir> is missing or changed since its export;from BuildKit,
target stage "wheels-export" could not be found.
Cause. Export mode refuses anything that would change where the wheels come from, or mount bytes it did not seal. In order: a typo; a --no-push artifact layout that is not the image image mode would mount, which is every --no-push chain whose android tag is published (every default or variant one on the amd64 cross host): such a chain threads no pin, so the lane names the registry’s digest (<ref> is <repo>@sha256:...) while the layout holds this run’s android; a directory artifact with no digest to compare; an android image without a wheelhouse; a staged directory changed or removed between the export and the wrapper; a --wrapper-dockerfile without the export stage.
Fix. RUNTIME_WHEELS_SOURCE=image is the pre-2026-09-24 delivery and needs none of these. Nothing falls back on its own. For a digest mismatch, use it too: rebuilding android in the same run is exactly the published-tag case above. Never re-export the layout from the ref the error names, because the package build copies from that layout and would switch to the published android too (why).
A GPU venv ships two onnxruntime distributions#
Symptom. ARCH-PARITY: MORE THAN ONE onnxruntime distribution (onnxruntime_gpu and onnxruntime_webgpu); the build log has rm: cannot remove '/opt/wheels/...': Read-only file system.
Cause. /opt/wheels is a bind mount, read-only by default, and the variant prune’s rm -f ... || true swallowed the error.
Fix. Dockerfile.torch mounts it rw (BuildKit discards the writes after the RUN) and the prune has no || true. CPU images never showed this because they carry no _gpu wheel. Since 2026-09-23 the ORT census at the end of install_project_environment fails the torch stage on two owners, before any smoke runs.
The torch stage fails with ORT-CENSUS FAIL#
Symptom. The torch stage stops with lines like these:
ORT-CENSUS FAIL onnxruntime-ep-webgpu 0.4.0 at C:\opt\OrchestrANT\.venv\Lib\site-packages is not a chain wheel: the store C:\runtime\wheels has no wheel of that name and version... 52 file(s) differ from the chain wheel's bytes, e.g. ...the onnxruntime import package has 2 owners (...), expected exactly oneon Linux, before
uv sync:ERROR: no chain ONNX Runtime wheel in /opt/wheels for ONNX_PACKAGE=...on Windows, before
uv sync:uv.lock pins onnxruntime-genai, ... and C:\runtime\wheels has no chain wheel of that family
It comes from Linux assemble-torch-app.sh, from Windows Build-TorchApp.ps1 (install or verify, including the rocm-1 stage), or from smoke section 21’s app-verify assertion.
Cause. Every ONNX Runtime in the app venv must be a chain wheel (onnxruntime-single-source.md). linux/scripts/03-media/runtime/ort-venv-census.py runs in the venv’s own interpreter (python -I); Build-TorchApp.ps1 reads the shared script staged beside it at C:\temp\scripts\ort-venv-census.py and feeds it to the same interpreter. It treats as ORT every distribution named onnxruntime or onnxruntime-* and every one that ships files into onnxruntime, onnxruntime_genai or onnxruntime_extensions, so ort-nightly counts. Each must be byte-identical to the store wheel of its name and version: every payload file with the same SHA256, and nothing installed that the wheel lacks. Name and version are not enough, because PyPI publishes onnxruntime 1.31.0 for cp314 too. It also requires one owner of onnxruntime, the import resolving to that owner, no unowned file in those package directories, and a ORT-CENSUS PASS line: exit 0 without one is a failure.
Known filesystem, ZIP and metadata errors become ORT-CENSUS FAIL findings. Unexpected implementation errors propagate with a traceback and nonzero exit; neither path can produce the required ORT-CENSUS PASS.
Fix. Put the flavour into the chain store; never install it from PyPI and never exempt it.
The reconcile already uninstalls every candidate
--purge-listnames before it force-installs the store, so a foreign one was installed after the reconcile. The rocm lane’s PyPIonnxruntime-ep-webgpuwas exactly that, until the WebGPU EP moved into the chain ORT.A missing chain wheel is a media-stage problem. On Linux the cross ORT wheel is built only when
cross_target_python_dev_ready.On nvidia the chain GenAI is
onnxruntime-genai-cudaor-trt-rtx, notonnxruntime-genai. ARCH-PARITY, VENV-SET and the GEN1 binding check count anyonnxruntime-genai(-<flavour>)as the GenAI (_pkg_count,genai_dist_version); do not add anonnxruntime-genaiarm to_venv_pkg_exempt, which would read STALE on every image that ships the plain name.
Not covered here: whether the store wheel itself was compiled by the chain (the image census), files installed outside site-packages, and ORT vendored under another distribution and package name.
The torch stage fails with CHAIN-WHEEL FAIL#
Symptom. The Linux torch stage stops after the torch pins with lines like these:
CHAIN-WHEEL FAIL onnxruntime-genai: the venv has 0.15.2 from an index; the chain staged onnxruntime_genai-0.15.2-cp314-cp314-linux_x86_64.whl (0.15.2)CHAIN-WHEEL FAIL ai-edge-litert: not in the venv; the chain staged ai_edge_litert-2.2.0-...whl (2.2.0)then
CHAIN-WHEEL FAIL: N staged wheel(s) are not what the venv imports
Cause. assert_chain_wheels_installed in assemble-torch-app.sh requires every wheel in /opt/wheels to be the installed distribution of its name, read from the direct_url.json uv writes (file:///opt/wheels/<file>). Same name and version are not enough: OrchestrANT’s lock names PyPI builds of ai-edge-litert, onnxruntime-genai and IREE, and a PyPI build of the same version is not the chain’s. Exempt: TVM (optional, its install may fail), OpenCV when the source-built bindings are staged (removed on purpose), and IREE on riscv64 (non-fatal there). The lock cannot name /opt/wheels itself: off the image uv lock stops with Failed to read --find-links directory: /opt/wheels, and no PEP 508 marker tells the image from a dev host (linux-cross-builds.md § The chain wheels and the app’s lock).
Fix. Find who installed the PyPI build after reconcile_local_wheels, the one place that installs the store. The sync must name the family in --no-install-package (collect_locked_local_skip_packages, and the GenAI arm of build_uv_sync_args); a family missing there lets the lock install it. enforce_torch_version_pins reinstalling torch over a staged torch wheel reads the same way. Never exempt the wheel.
A build or smoke stops on an ONNX Runtime that is not the chain’s#
Symptom. One of:
Windows, at the end of a consumer build:
ORT gate (<consumer>): N finding(s), the build reached an ONNX Runtime other than the chain's, afterFAIL:lines naming a file, a record path or a log line.Linux, the same place:
ORT-GATE FAIL (<consumer>): ...lines, thenORT-GATE FAILED.no build record names the chain ONNX Runtime ...: the consumer built without ORT at all. On Windows FFmpeg that is a missing chain header.The smoke:
ORT census: STAMP ...\ort-provenance\<consumer>.json -- missing, or not naming this image's chain core lib.Linux OpenCV after cmake:
configure log: ... DNN: Downloading ONNX Runtime,ONNXRT_ROOT_DIR=...3rdparty/onnxruntime..., orno 'ONNX Runtime: YES (ver X)'; before cmake,OpenCV must build against the chain ONNX Runtime at /usr/local/lib/onnxruntime-cpu.Linux apt or loader:
FAIL: this apt install would pull a distro ONNX Runtime,FAIL: a distro ONNX Runtime is installed beside the chain build,FAIL: a loader path reaches an ONNX Runtime that is not the chain build.
Cause. A consumer compiled, linked, fetched or loaded an ORT that is not the chain build. An upstream bump that re-enabled a download is the usual source. The STAMP case means the consumer’s layer predates the build gate or ran against another ORT build. On Linux, Ubuntu’s gstreamer1.0-plugins-bad depends on libonnxruntime1.x, which is how apt pulled a distro ORT on 2026-08-27 (12 packages, 62.9 MB).
Fix. Remove the source, never loosen the gate: restore the pre-set, ORT_HOME or fetch block the consumer lost; drop the package that drags a distro ORT in; replace a stray copy with a link to the chain file. For STAMP, rebuild that consumer’s stage. Which gate sits where, and what each message means: onnxruntime-single-source.md § Failure messages.
The AMD GPU environment shadows the qualified source LLVM#
Symptom. The SDK selects the pinned native tools, but the following GPU
stage PATH puts /usr/lib/llvm-23/bin before them.
Cause. The AMD environment prepended both the distro LLVM directory and ROCm tools to its inherited PATH after source-backend construction.
Fix. Keep source MIGraphX first, preserve the complete inherited PATH and append ROCm tools. Do not replace the selected native compiler with an apt driver. Executable-resolution fixtures cover this order; actual GPU image and consumer acceptance remain separate. See the normal AMD entry.
The compiler stage selects distro Clang after building the pinned release#
Symptom. The installed-defaults probe reports Ubuntu Clang 23.1.6 when the producer pin is 23.1.5, even though the source build completed.
Cause. The old alternatives helper searched major-only distro paths and missed
the unified source install at /opt/llvm-target-amd64. Its smoke checked only
the major/minor channel, hiding the wrong patch release.
Fix. Pass the explicit native source prefix to the alternatives helper and rebuild the compiler stage with the full-version smoke. Preserve the failed image; do not admit it as an SDK parent. The late selection fix reuses the expensive source layers. See compiler selection and probe limits.
SDK verification loses Clang after successful LLVM materialization#
Symptom. The real SDK NEEDED walk and Vulkan installation pass, then verification
fails Required tool is missing: clang. The qualified parent compiler was correct.
Cause. Materialization copied the native LLVM tree to /opt/llvm-target and
deleted its architecture prefix, which PATH, alternatives and the native loader
configuration still referenced. A correct generic tree alone cannot satisfy them.
Fix. Restore the selected architecture name as an alias after materialization and retain the distinct native host tree when selecting a foreign target. Keep the parent qualification and failed SDK receipts separate; retry the normal SDK with the repaired script and unchanged verification. See prefix ownership and fixture limits.
SDK Cross-Clang wrapper cannot load the source LLVM symbols#
Symptom. Materialization and Vulkan setup complete, then SDK verification fails
/usr/bin/clang-23: undefined symbol: LLVMInitializeAArch64TargetInfo, version LLVM_23.1.
Cause. The wrapper selector preferred the major-suffixed apt driver even though the native source prefix existed. The intentional source-first loader cache then supplied the source LLVM DSO to that distro binary. The old native build carried only its host backend, while cross wrappers also need the configured CPU targets.
Fix. Select the native source compiler before considering a bootstrap fallback, refuse incomplete source prefixes, build its configured cross backends and publish wrappers after those builds complete. Require the normal compiler’s exact wrapper pins and target object/link/QEMU smokes before SDK retry. Preserve the original native-tool and loader receipts at their stated scope. The source loader priority stays in place; see Clang cross wrappers.
Cross-Clang objects pass but the final compiler link smoke fails#
Symptom. Both foreign Clang drivers report the exact source pin and emit target objects, but the required dynamic link fails. Older common smokes discarded its stderr.
Cause. The foreign wrapper used /usr/<triplet> as the sysroot even though source
GNU uses /. Debian’s libc/libm linker scripts contain absolute target paths; the extra
sysroot makes the linker search for them beneath the target tree again. Actual same-image
baseline failures and GNU-root C/C++ dynamic/static/QEMU controls established this cause.
Fix. Use / in the normal wrappers and retain the foreign staged-tree existence guard.
Preserve the failed normal producer, candidate absence and original log.
The common smoke now retains actual linker stderr and the raw failure status. Use the
versioned diagnostic prefix and linker controls
to compare the baked wrapper with GNU’s reported sysroot on the same image bytes.
A successful object or diagnostic override cannot qualify the normal wrapper. Establish
the actual linker error before changing source, then rebuild with the required smoke intact.
If that rebuilt image passes its baked link smoke but the external image probe fails with
Wrapper does not bind the source driver and target contract, inspect the retained wrapper
scripts and probe’s expected roots. An old host probe may still require /usr/<triplet>.
Update the versioned probe and independent refusal fixtures to require /, preserve the failed
invocation and rerun against the same immutable image with fresh output and actual input hashes.
A successful old fixture does not qualify the image; no compiler rebuild follows from a stale
host expectation alone.
A local native OCI handoff duplicates its verified parent layers#
Cause. Saving a child image into another OCI directory writes its compressed ancestor layers again. Repeating a large native parent can consume the fixed build reserve even when compiler caches and tagged images must be preserved.
Fix. Use the versioned SDK handoff’s
verified parent layer sharing.
It hashes the parent again, links only immutable layer files into a fresh context and extracts
new child metadata with tar --skip-old-files. The sealer checks both transport statuses,
worker hashes, unchanged post-link identities and the complete native blob/ancestry contract.
A different filesystem, symlink, changed source metadata or failed transport must fail; keep
the original evidence and use a fresh destination after fixing the cause. The normal disk
admission and cleanup identity protections remain required.
A completed SDK fails a compiler-profile qualification on LLVM prefixes#
Cause. SDK materialization moves the selected native tree to /opt/llvm-target and
preserves llvm-target-amd64 as an alias. The native probe reports resolved paths. The
full compiler profile describes a different component with three target-native trees.
Fix. Use the explicit SDK invocation profile in the versioned qualifier and native OCI handoff. Keep the original compiler plan and successful producer intact. Require actual native tools, exact pins, both shell modes, two wrapper scripts, C/C++ execution, loader selection and all compiler ancestor layers. A parent-container replay or a renamed compiler plan does not qualify the built SDK; retain any failed invocation before using fresh output.
Source Clang works but the default LLVM soname still selects the distro#
Symptom. ldd of the explicit source Clang uses its own LLVM through RUNPATH,
but ldconfig -p lists the distro copy first for the same soname.
Cause. Executable selection and per-binary RUNPATH did not publish the source library directory to the default loader cache.
Fix. Use the shared loader publisher for the late 000-llvm-native.conf and
run the native schema-2 cache-priority gate. Keep the runtime package’s existing
000-llvm-target.conf publication and its required companion. Cache selection
is separate from actual SDK linking and runtime acceptance.
Native LLVM utilities remain on the distro after Clang selection is fixed#
Symptom. Clang reports the source pin, but llvm-config --version reports
Ubuntu’s newer patch and most native utility paths still resolve under /usr.
Cause. Four compiler alternatives were changed without adding the complete native source bin tree to the final compiler image PATH.
Fix. Put that tree behind the pinned Python and GNU bins after Python setup, and retain the baked native tool-selection probe. This reuses the expensive source RUNs and preserves ordinary GNU aliases. The failed wider SDK admission remains separate from the passing six-compiler check; see selection scope.
The wrapper smoke fails clang --version after a partial rebuild#
Symptom. COMPILER FAIL [clang-version]: clang --version: 23.1.0 (expected 23.1.1) when only the later stages were rebuilt.
Cause. The lower stages were built before a pin wave; the runtime lane asserts today’s versions.env.
Fix. Rebuild from the stage the pin belongs to. To finish a chain on its own older pins, export the payload pins (LLVM_RELEASE, ONNXRUNTIME_VERSION, …) for the runtime run only; the runtime base installs its own and needs today’s.
fatal error: sanitizer/common_interface_defs.h: No such file or directory on arm64/riscv64#
Symptom. A -fsanitize=address build in the arm64 or riscv64 image stops on that
header (abseil’s dynamic_annotations.h includes it). Past it, the link cannot find
libasan/libubsan. The same build passes in the amd64 image. Since 2026-09-23 the
chain stops earlier instead, with one of libsanitizer installed no headers/libasan for <triplet> (compiler stage), ERROR: /opt/gcc-16.2.0 lacks the sanitizer runtime: ... (android swap) or COMPILER FAIL [gcc-sanitizers] (wrapper smoke).
Cause. The arm64 and riscv64 cc is the Canadian-native GCC, and build-gcc.sh
built only libgcc, libstdc++ and libatomic for any --target build.
Fix. Rebuild the chain from the compiler stage; build-gcc.sh now builds
libsanitizer when host == target. A partial rebuild on older images fails on
purpose: --from-stage sdk|media|android at the android swap, and a runtime-lane run
on the published android images at the wrapper smoke. Mechanism, gates and cost:
cross-build-verification.md#the-native-gcc-ships-libsanitizer.
A Jetson GPU container sees no GPU#
Symptom. unresolvable CDI devices nvidia.com/gpu=all; or NvRmMemInitNvmap failed: error Permission denied then No CUDA GPUs are available; or OCI runtime create failed: unknown version specified.
Cause. Rootless nerdctl on Tegra: the CDI spec is hidden by rootlesskit’s /run, the GPU nodes belong to the host video group a rootless process drops, and Ubuntu’s crun is too old for containerd 2.x.
Fix. The three flags and the crun install: linux-host-setup.md § B2b.
A USB camera delivers half its frame rate#
Symptom. A V4L2 capture sits at exactly 15 fps while the camera advertises 30.
Cause. CAP_PROP_BUFFERSIZE=1: with one V4L2 buffer the camera cannot capture while the last frame is dequeued.
Fix. Leave the buffer count alone and hand on only the newest frame from a capture thread, as linux/jetson-webcam/app.py does.
A push leaves the repo bare: core.bare and core.worktree do not make sense#
After a git push, every git command in the checkout prints
warning: core.bare and core.worktree do not make sense, git status stops with
fatal: unable to set up work tree using invalid config, and git check-attr finds
nothing, so Dockerfile.EolAttributes.Tests.ps1 fails and lists ~64 files that
.gitattributes plainly covers. The gitdir’s [core] section now ends in bare = true.
Cause. Git exports GIT_DIR (and GIT_WORK_TREE, GIT_INDEX_FILE, GIT_PREFIX)
to hooks. The pre-push hook ran the mutation gate, whose fixtures call
git -C <tmp> init with that variable still set, so each init re-initialised the REAL
gitdir instead of the temp one. For a gitdir whose path does not end in /.git —
every submodule’s .git/modules/<name> — git guesses “bare” and writes
core.bare = true. The pre-commit hook already cleared these variables; pre-push did
not. Seen 2026-09-22 on this repo checked out as a submodule: the config changed
mid-push, while the branches and the index stayed untouched.
Fix. git config --file <gitdir>/config core.bare false, where <gitdir> is the
path in the checkout’s .git file. The pre-push hook now clears the same four
variables as pre-commit, mutation-tested as mutations.push-clears-git-env.
A push stalls on a Chrome suite, then fails with a vacuous bite#
git push sits for five minutes and more, then prints
baseline test already fails unmutated (vacuous bite) for a test-docs-sidebars.sh,
test-check-live-site.sh or test-webgpu-canvas-readback.sh recipe, with a node timer
stack in the excerpt. CI is green on the same commit.
Cause. Headless Chrome stalls on the build host, so the suite’s cases time out. A single edit to a docs-site script selects such a recipe.
Fix. The pre-push hook hands these recipes to CI with --delegate-chrome and prints
the count; it does the same for a pwsh recipe on a host without pwsh. Run them here only
through the image; see
the pre-push hook.
A cross-built Rust tool links the build host’s libbz2#
Symptom. A cargo install --target riscv64gc-unknown-linux-gnu of wasm-pack dies
at the link: riscv64-linux-gnu-ld.bfd: cannot find -lbz2, after skipping incompatible /usr/lib/x86_64-linux-gnu/libbz2.so. Reproduced in the 2026-09-22
probe for the cross-built web-lane tools; lzma-sys fails the same way.
Cause. setup_linux_cross_env exports PKG_CONFIG_ALLOW_CROSS=1. The build
scripts of bzip2-sys and lzma-sys probe pkg-config (bzip2, liblzma) first,
find the build host’s .pc file, and hand its x86-64 library to the target link.
Natively the same probe is deterministic but depends on which -dev packages the
stage happens to carry.
Fix. Force the vendored static C for the cross and native paths: BZIP2_NO_PKG_CONFIG=1,
LZMA_API_STATIC=1, and ZSTD_SYS_USE_PKG_CONFIG unset (wlt_c_env in
06-packaging/web-lane-tools.sh). The C environment is part of the tools’ cache
key, and their gate refuses any NEEDED outside libc’s own family, so a regression
fails the build instead of shipping. WEB_LANE_TOOLS_SOURCE=legacy is exempt on
purpose: it is the old build verbatim, pkg-config probe and all.
docs/consumer-image-contract.md#building-the-web-lane-tools-from-source
Native Rust/Dart fixture compilation fails inside sccache#
Symptom. test-ort-plugin-rust.sh fails its real Dart/HIP probe compiles with
sccache: error: failed to execute compile and Compiler not supported: "failed to write temporary file". The Rust policy/module tests may already have passed.
Cause. The shared fixture compiler invoked bare sccache, bypassing the canonical launcher’s cache-internal retry and direct-compiler fallback. This routing defect is reproduced independently; the underlying daemon temporary-file failure does not by itself establish a stale TMPDIR or any other server cause.
Fix. Import the canonical cache owner, require its launcher APIs, initialize
the parent-shell address and resolve the guarded launcher in
isolated-helper-compile.sh. Keep optimized C and ASAN C++ flags, raw compiler
errors and captured command/cache statuses. Guard the required environment call
explicitly before resolution; the launcher-policy suite checks that boundary too.
A policy scanner must canonicalize its root before excluding test paths, with a
planted bare-call control proving the scan observes production inputs.
Run the cache-routing controls plus
the original clock and Rust/Dart suites; a fake cache failure proves routing,
not daemon health, cache performance or application inference.
HailoRT’s configure is slow while the cache looks healthy#
Symptom. arm64’s Hailo RUN spends most of its time before CMake generates
(384 s of 595 s in the 2026-09-22 lane), yet every compile the cache counts is a
hit. The nested external/protobuf-build/CMakeCache.txt has no
CMAKE_CXX_COMPILER_LAUNCHER. Since 2026-09-24 a build can stop instead, with
[hailo] ERROR: the nested build compiled N objects and the cache saw R requests
or ... no longer spawns its nested build through 'env -i HOME=$ENV{HOME} ...'.
Cause. HailoRT compiles a host protobuf inside its own configure, under
env -i. The launcher environment setup_ccache exports never reaches that
build, whatever the resolver decides. Two shapes seen while fixing it:
sccache --show-statsfails withMismatch of client/server versions?(tag for enum is not valid). A cleanPATHputs/binfirst and finds the distro sccache 0.13; when no server answered it, it started a 0.13 server on the socket the pinned 0.17 client then talks to.The probe sees 0 requests after another user’s run in the same container.
SCCACHE_ERROR_LOGis/tmp/sccache.logfor every user, and underfs.protected_regular=2the second user, root included, cannot open the first user’s file, so its server does not start.
Fix. HAILO_NESTED_CACHE=carry, the default, carries the cache environment
and the parent’s own sccache into that build, and its gate stops a carry
build the cache did not reach. HAILO_NESTED_CACHE=off is the build as it was
before 2026-09-24. Run the probe in a fresh container, or give each user its own
SCCACHE_ERROR_LOG.
The carrier and its gate.
Cerbero: Checksum for … spandsp-0.0.6.tar.gz is 'eed29aa6…'#
Symptom. android-gstreamer stops at Recipe 'spandsp' failed at the build step 'fetch', on
every arch, with a checksum that is not the recipe’s cc053ac6….
Cause. The recipe’s host www.soft-switch.org redirects to an unrelated site since October 2026,
and curl saves that site’s HTML page under the tarball’s name. The checksum did its job.
Fix. cerbero_redirect_source_host (build-android-from-source.sh) rewrites a dead host in every
recipe that names it. For spandsp the replacement is https://gstreamer.freedesktop.org/src/mirror/,
which serves the 2014 tarball with the recipe’s checksum. Before adding a redirect for another dead
host, download from the replacement and compare its sha256 with the recipe’s tarball_checksum, and
never edit the checksum to match what came back.
Cerbero: a fetch hangs for hours on a stalled mirror#
The amd64 android stage of the nvidia chain sat at [(55/88 @ 63%) mpg123 -> fetch] for 80
minutes on 2026-11-05 while the arm64 lane finished the same step. Inside the container one
curl to download.sourceforge.net held an open socket with 225 KB of a 1 MB tarball and no
further byte. Cerbero’s curl line has --connect-timeout 20 and --retry 2 but no stall
timeout, so a mirror that stops sending never fails and nothing retries or falls over to the
freedesktop mirror.
cerbero_fetch_package_retry now writes speed-time = 60 and speed-limit = 1024 into a
.curlrc under CERBERO_HOME and exports CURL_HOME to it: curl reads that file for every
call without -q, cerbero’s included, and ends a transfer under 1 KB/s for 60 s, which
cerbero’s own retry and mirror list then handle. A hung fetch in a running build is ended by
kill -TERM on that one curl (not the chain); cerbero retries the URL and then its mirror.
Cerbero: a checksum fails once#
Symptom. One arch’s android-gstreamer stops at Recipe '<name>' failed at the build step 'fetch'
with a wrong checksum, while the other arches fetched the same file. On 2026-10-27 riscv64 got
41516c51… for sqlite-amalgamation-3490100.zip. Fetched again by hand, the file had the recipe’s
checksum, with and without Cerbero’s user agent.
Cause. The host answered one request with something else under HTTP 200. Cerbero tries its
extra_mirrors only when a download itself fails. A checksum failure moves the file aside as
.failed-checksum and is fatal on the first try (cerbero/build/source.py, fetch and verify).
Fix. cerbero_fetch_package_retry runs fetch-package gstreamer-1.0 up to three times, 30 s apart,
before package. Only downloads repeat, and the checksum stays the gate. A host that is gone for good
fails all three tries; see the spandsp entry above for that case.
sccache-evict.service fails with sort: write failed: 'standard output': Broken pipe#
Symptom. The hourly size cap fails after about two minutes, journalctl -t sccache-evict shows no
deleted … objects line, and the bucket stays over CAP_GB and keeps growing (2026-11-04, the first time the
bucket passed 100 GiB).
Cause. The awk that picks the objects left with exit once it had enough. sort then died of SIGPIPE, and
set -o pipefail ended the script before s5cmd run. Under the cap the script exits earlier, so nothing showed
until the bucket first needed evicting.
Fix. awk reads to the end of the list and only stops printing. Install the script again
(size cap); the next run works off the backlog. test-sccache-evict.sh
holds this. A run of 230,000 objects took 21 minutes, and df falls only after Garage’s GC has followed the bucket
size, so check garage stats before reading a flat df as a failed run.
sccache-evict warns no reads recorded from Garage's request log#
Symptom. An eviction logs 0 read records and the warning line, or Garage's request log is unreadable. The retention window in the log is short, and the heavy stages miss after every eviction.
Cause. The eviction went by upload date, so the most used objects went first. Either Garage logs below
info (RUST_LOG in garage.service), its lines reach the journal under another unit than garage.service,
or journalctl failed.
Fix. journalctl -u garage -n 20 | grep 'GET /sccache/' during a build must print lines. Restore
RUST_LOG=garage=info; the next run reads from its cursor
(size cap). test-sccache-evict.sh holds the parsing.
Using ccache: /usr/bin/ccache in a build that should use sccache#
Symptom. A CMake step prints -- Using ccache: /usr/bin/ccache while the log says
[CACHE] CMAKE_C_COMPILER_LAUNCHER=/opt/scripts/core/sccache-launcher.sh, and the step’s
sccache-stats| line counts far fewer requests than it compiled. Since 2026-10-26 the build
stops instead: ERROR: [CACHE] <build dir>: CMAKE_CXX_COMPILER_LAUNCHER is /usr/bin/ccache, not /opt/scripts/core/sccache-launcher.sh; a subproject replaced the compiler cache.
Cause. A fetched subproject (pthreadpool and XNNPACK, under ONNX Runtime, LiteRT and
PyTorch) finds ccache itself and FORCEs it into the launcher cache entries, which beats both the
environment and a -D launcher.
Fix. Pass the configure append_cmake_compiler_cache_pin’s defines, which add
CCACHE_BINARY, and gate it with cmake_assert_compiler_cache_pin.
The trap and the gate.
import hailo_platform fails: _pyhailort is a 4 KB module#
Symptom. In an image built before the HAILO_PYHAILORT_IPO switch, or with
HAILO_PYHAILORT_IPO=upstream: import hailo_platform fails, and
_pyhailort.cpython-314-<arch>-linux-gnu.so is about 4 KB. readelf --dyn-syms
lists no PyInit__pyhailort, only a __gnu_lto_slim object. The build date does
not say which build an image had; the module does. With the switch at its default,
off, the build stops instead: [hailo] ERROR: ... does not export PyInit__pyhailort.
Cause. Upstream forces IPO in pyhailort’s CMake. GCC writes slim LTO objects,
and lld, the linker setup_lld_linker selects, cannot read them, so the link
yields a module with no code.
Fix. HAILO_PYHAILORT_IPO=off, the default, patches the forced IPO out of
the cached source. pyhailort.
cmake --list-presets: Unrecognized "version" field#
Symptom. On the host, not in a container:
CMake Error: Could not read presets from C:/GitHub/BeschleunigerBallett:
Error: @2,13: Unrecognized "version" field
Cause. BeschleunigerBallett’s CMakePresets.json is "version": 10, which CMake reads
from 4.1 on; the host’s CMake is older (3.29 on the dev box, 2026-10-19).
Fix. Configure in the family image, whose CMake is the versions.env pin, or on Windows
through the repository’s Build-Windows-Container.ps1. The presets themselves can still be
read from the file.
set: pipefail\r: invalid option name#
Symptom. A script from a Windows checkout stops at its first line in the container, and the message names neither the file nor line endings.
Cause. The checkout wrote the script with CRLF (core.autocrlf=true), so bash reads the
\r as part of the option name.
Fix. Pin shell scripts to LF in .gitattributes (*.sh text eol=lf, as here). git does
not rewrite an existing checkout, so once per clone:
git ls-files -z '*.sh' | xargs -0 rm -f && git checkout -- .
The hub’s crlf-guard gate fails a tracked shell script whose working-tree bytes carry CR.
A Flutter web app’s /icons/ 404 on Apache#
Symptom. manifest.json’s icons/Icon-192.png answers 404 on the live site while the deploy lists it as uploaded, and /icons/apache_pb.png answers 200. Cause. Apache’s default Alias /icons/ serves its own directory, and .htaccess cannot undo it. Fix. Keep the icons in another directory (web/app-icons/); the web artefacts gate fails web/icons/ on a site with a web/.htaccess (code-quality-tooling.md).
Emoji draw as empty boxes on a self-hosted Flutter web app#
Symptom. Emoji and symbols draw as boxes; the console says Connecting to 'https://fonts.gstatic.com/s/notocoloremoji/...' violates ... "connect-src 'self' blob:". Cause. --no-web-resources-cdn does not cover the engine’s fallback fonts, which it fetches from fonts.gstatic.com. Fix. Serve them from the site (linux/webserver/README.md).
Windows: the layer store (hcsshim)#
hcsshim::ActivateLayer 0x20 on an AMD Radeon host#
Symptom. Windows-container layer commit/finalize dies hcsshim::ActivateLayer 0x20 on an AMD Radeon host (buildkit failed to import/reimport snapshot, on ANY layer writing into an existing parent dir; docker-classic legacy dies mkdir \\?\Volume{<GUID>}\C:. invalid dir name) — BOTH lanes, process AND Hyper-V isolation
Cause. RESOLVED 2026-08-10: an ENABLED AMD RDNA4 dGPU (RX 9xxx + Adrenalin) locks freshly-written container layers (upstream docker/for-win#14977, open; same-boot A/B-proven). Failed finalizes additionally WEDGE hcs state until a REBOOT (survives service bounces + vmcompute restart).
Fix. Probe with Test-BuildCopy.ps1 -Heavy (only a -Heavy-green verdict counts), then build inside the Set-Rdna4Gpu.ps1 -Disable window — Build-Buildkit.ps1 enforces that via Assert-NoActiveRdna4Gpu. After ANY red finalize, reboot before testing anything else: a wedged host falsifies every later experiment. Full A/B history and the superseded 2026-08-09 verdict: windows-build-lanes.md.
ExportLayer 0x3, spawn flakes, ExportLayer 0x70 — disk exhaustion in costume#
Symptom. ANY weird hcsshim failure on the BK lane: ExportLayer 0x3 (path not found) at finalize, spawn flakes ('cmd.exe' is not recognized), ExportLayer 0x70 (disk full)
Cause. Disk exhaustion in costume — the bk image generations stack 30–40 GB per rebuild cycle; only 0x70 names the disease (all three hit on 2026-08-03)
Fix. Check free disk FIRST. buildctl prune --all + docker image prune -f (non-admin); bk-* image generations need admin. Full playbook: docs/windows-build-lanes.md § Store GC.
ExportLayer 0x3 at finalize of a heavy media layer, disk is fine#
Symptom. BK lane, disk is FINE: failed to reimport snapshot: hcsshim::ExportLayer ... (0x3) at finalize of a heavy media layer (GenAI/OpenCV class) — deterministic, every fresh snapshot, both finalize paths, survives host reboot
Cause. ROOT CAUSE FOUND & FIXED 2026-08-06: the runhcs shim’s hardcoded tearDownTimeout = 30s (cmd/containerd-shim-runhcs-v1/task_hcs.go) terminates the heavy-churn silo teardown mid-hive-flush (real duration: 117 s measured for OpenCV), permanently poisoning the scratch vhdx. Calm exits (ONNX ninja, cpython, LiteRT, torch) finish teardown under 30 s and never tripped it.
Fix. Solved at the root by a patched runhcs shim, already deployed. The part to remember is the maintenance: every Stevedore/containerd update overwrites it, so Publish-ShimPatch.ps1 -ReportOnly belongs in your post-update routine — Assert-ShimPatch gates the BK lane on it by SHA256 — and one OpenCV canary should follow any update. 0x3 is deliberately excluded from the driver’s transient-retry pattern: it must fail loudly. Root cause, constants and the rollback path: windows-build-lanes.md.
Every RUN step reports DONE 2841.2s — the same number, whatever it runs#
Status 2026-10-12: not seen since. The three complete chains of 2026-10-10/11 (bk-20261010-121545, bk-20261011-184301, bk-20261011-233025) run a trivial RUN in 4.9 to 9.0 s, the healthy band of the playbook below, with the 5 min knob still deployed. Their one fixed cost is a different shape: ~120 s between a RUN’s last line and its DONE, only in RUNs that started an sccache server (windows-refactor-backlog.md #179).
Symptom. BK lane, since the 2026-08-31 15:12:59 boot: every RUN step on a servercore base finishes GREEN but takes 2841.2 s, byte-identical across independent solves and independent of what the step does — RUN echo probe > C:probe.txt costs exactly as much as a real build step. Everything else in the solve is normal (COPY 5.1 s, export 1.7 s, unpack 5.2 s). Host is idle throughout: 4 % CPU, disk queue 0, no I/O.
Cause. The container’s shutdown/exit notification is lost, so the shim waits out its whole teardown timeout. 2841.2 = ~141 s container boot + 2700 s = the 45 min tearDownTimeout this repo patches in (local-45min-deployed.patch). The RUN itself succeeds: on a stuck container docker logs prints the command’s own output and docker top shows no cmd.exe — the process ran and exited. Reproduced straight through dockerd (no shim, no buildkit), so it sits below both lanes in hcs/vmcompute — the Windows-Containers#547 family the entry above is about, but escalated from “filesystem-heavy containers only” to every container. nanoserver:ltsc2025 starts and exits in ~2 s; only the servercore service stack is affected. Same shape of step took 7.7 s / 9.2 s on 2026-08-31 03:53, so it is a ~350× regression, and a reboot does not clear it. It needs ltsc2025 AND process isolation together, measured on the same host and day with the same Dockerfile: servercore:ltsc2025 441.3 s · servercore:ltsc2022 1.8 s · ltsc2025 under --isolation=hyperv 3.5 s · nanoserver:ltsc2025 ~2 s. An older user-mode image on the identical 26200 kernel is fine, so “process isolation is broken here” is not the shape of it. That fits the silo-only artefacts — the WcSandboxState\Hives\*_Delta flush failures logged as Kernel-General 6, and the orphaned bindflt instances ISSUE.md already counted — and it is diagnosis only, not an escape: buildkitd v0.32 has no Hyper-V isolation option, and Hyper-V isolation is capped at 2 CPUs on this host.
The 141 s half is named. Inside the container, SCM logs 7022 The LSM service hung on starting exactly 140.07 s after RpcSs comes up, and every other service starts within the same second afterwards. LSM (Local Session Manager) then sits in START_PENDING forever — a scan of all 121 services in a live container finds it as the only one not in RUNNING or STOPPED — and it reports NOT_STOPPABLE, IGNORES_SHUTDOWN. Under --isolation=hyperv the same image has LSM RUNNING. But disabling LSM does not help: an image committed with LSM Start=4 (verify with sc qc LSM, not just reg query — a quoted key path passed through PowerShell to reg.exe silently creates a key named LSM") published its output and then still sat in teardown for >13 min before that run was cut short by an unrelated force-remove — so the bound is “>13 min”, not a completed 2841 s, but it is already 100× the 7.7 s baseline. LSM is a co-symptom, and it is not worth chasing economically: 2700 of the 2841 s are the timeout, so the teardown is the only lever that matters — removing the whole 141 s boot stall would save 5 %.
Fix. The root cause was never found, and the defect has not come back (Status above). If it does, do not spend the day re-falsifying what is already falsified: Defender RTP (reproduces with RTP off), the Defender platform (unchanged on disk since 2026-08-05), CNI/HNS (ADD succeeds, IP+gateway match the host nat adapter; --network none stalls identically), disk space (515 GB free), disk health (disk event 51 fires only on successful teardowns), the RDNA4 dGPU (cleanly disabled, Code 22), the shim patch (SHA256 matches), the buildkitd GC policy (active — buildkitd reads C:\ProgramData\buildkitd\buildkitd.toml by default, so a missing --config in the service ImagePath is a non-issue), and any new KB or driver (nothing was installed that day). Post-mitigation falsifications (2026-09-01): a Defender engine/SIU change (engine constant 1.1.26070.7 across good and bad periods; SIU updates landed just as frequently during the good window, the fast 03:53 build ran right after one), and in-container Windows Update (a layer with wuauserv+UsoSvc Start=4 — reg output confirmed applied — still burns the full teardown cap on the next RUN); disabling LSM was falsified above. The 141 s boot hang is NAMED (2026-09-02, wait-stack captured). LSM’s service-start thread in the silo’s svchost -k DcomLaunch -p sits in:
ntdll!NtWaitForSingleObject <- never signalled
KERNELBASE!WaitForSingleObjectEx
lsm!CEventDispatcher::CEventListEntry::WaitForSessionEvent
lsm!CEventDispatcher::WaitForSessionState
lsm!CService::Start
lsm!ServiceMain
Two dumps 30 s apart carry the byte-identical stack and the thread reports 0.000 s user time — a fully static wait, not slow progress. So LSM never completes CService::Start because a session-state event inside the silo is never signalled; SCM then times it out (event 7022) and the rest of the boot proceeds. Reproduce with windows/scripts/diagnostics/Get-LsmWaitstack.ps1 (elevated; it grabs the next container start and dumps twice). Two notes from doing it: the script must find the silo through the process TREE (a new wininit.exe → its services.exe → their svchosts) because Win32_Process.ExecutablePath/CommandLine are empty for silo processes even elevated; and the dumps land SYSTEM-owned, so icacls <dir>\*.dmp /grant <user>:R before analysing them unelevated. cdb.exe ships inside the WinDbg store package (…\Microsoft.WinDbg_*\amd64\cdb.exe). The waited object is identified, its signaller is not: Find-LsmEventHolder.ps1 reads R10 as described below and finds an auto-reset Event, HandleCount 2, whose only handle any process holds is LSM’s own (draft § The waited object) — and one wrong way to try is recorded here because it looked convincing: reading the FIRST KERNELBASE!WaitForSingleObjectEx in the process names the SCM dispatcher’s own idle wait (sechost!ScDispatcherLoop), which every service process has, not LSM’s. Everything derived from that handle (HandleCount 2, “exactly one holder”) described the wrong object and was retracted 2026-09-02; the R10 re-read of the right object later measured the same two numbers. kb’s argument columns are home-space reconstructions and untrustworthy for a blocked wait; read R10 of the thread whose stack actually shows lsm!CService::Start (the x64 syscall stub does mov r10,rcx, so R10 still holds argument 1). Silo handles also resolve as Name <none> from outside, so the lsm!CEventDispatcher frames stay the reliable pointer. This is the concrete, reportable core for microsoft/Windows-Containers#547, which so far only describes the symptom — ready-to-file draft: upstream/windows-containers-lsm-session-event-hang.md.
Recurrence playbook — decode the timing before debugging anything. The signature is identical RUN durations regardless of what the step does. A RUN that started an sccache server adds the host’s TIME_WAIT on top of these: ~30 s with TcpTimedWaitDelay 30 s, ~120 s at the Windows default. That tail is #179 (windows-host-setup.md § C6), not the shim. On the current 5 min knob: ~10 s healthy (0.9 to 3.3 s measured on the fork build 04a9bdaa, 2026-10-14) · ~180 s the shim is env-configurable but the containerd Environment value is gone (a Stevedore update wiped it — silent stock 30 s; Set-ContainerdConfig.ps1 restores it) · ~450 s knob active, defect present · ~2841 s the 45 min constant build is back. Re-mitigate with Publish-ShimPatch.ps1 -ShimPath out\shim-builds\containerd-shim-runhcs-v1-fork-04a9bdaa.exe -ServiceEnvironment CONTAINERD_SHIM_RUNHCS_V1_TEARDOWN_TIMEOUT=5m (if the binary is lost: Install-NewHost.ps1 -SkipCni -SkipGcPolicy -SkipDufs rebuilds it from the pinned fork commit 04a9bdaa and deploys it with the 5m knob; by hand: fork branch feature/configurable-teardown-timeout, go build .\cmd\containerd-shim-runhcs-v1). Confirm a suspected hang cheaply with docker logs/docker top on the stuck container — output present + no process = lost notification, not a hung command. And never conclude “wedge” from a killed probe: give any timing probe ≥15 min. Diagnose the rest with admin: Get-ComputeProcess, fltmc instances -f bindflt (the orphaned-instance signature from hcsshim-teardown-timeout/ISSUE.md), ctr -n buildkit tasks ls, the Hyper-V-Compute logs. Do not judge a step by its console silence and kill buildctl — that manufactures the 0xb7 debris two rows up; a 240 s timeout is what made this look like a hard wedge for a day. The practical lever is the timeout, and 45 min was never the requirement: the measured legitimate worst-case teardown on this host is 117 s (hcsshim-teardown-timeout/ISSUE.md, OpenCV), so 2700 s is 23× the number it was raised to cover. Deploying the upstream-env shim variant — Publish-ShimPatch.ps1 -ShimPath <fork build> -ServiceEnvironment CONTAINERD_SHIM_RUNHCS_V1_TEARDOWN_TIMEOUT=5m (a later retune is Set-ContainerdConfig.ps1 -TeardownTimeout <duration> — no rebuild, no redeploy) — keeps ~2.5× headroom over the real worst case while capping the pathological case at 5 min, taking a RUN step from ~47 min to ~7 min without rebuilding the shim for every retune. The value is a Go duration string and a bare number is not one: =300 fails time.ParseDuration, and the patch treats an unparseable value as unset, so it would silently give you the stock 30 s. The task-close timeout is then derived automatically to 2*5m+30s. Force-terminating at the cap is known to be safe here: docker stop on a hung container returns in 91 s and the layer still exports (exporting layers 1.7s, unpacking 5.2s). Still an owner decision — it trades against the ExportLayer 0x3 corruption the 45 min was raised to prevent. Do not conclude the patch itself is obsolete: checked 2026-09-01, 2026-09-22 and 2026-10-14, upstream main (56195bbd, 0e1f18b7, bd97a054) still hardcodes every 30 s constant, hcsshim#2855 sits unanswered, and Windows-Containers#547 is closed without a fix — dropping to stock re-opens the 0x3 A/B of 2026-08-06 the moment the host is healthy again. Build the shim from the fork branch (Kataglyphis/hcsshim@feature/configurable-teardown-timeout — owner directive; code-identical to the in-tree patch, current-main base incl. the e6580439 leaked-layer-reader deadlock fix), not from the in-tree patch file.
hcsshim::ActivateLayer failed (0x20) during build#
Symptom. hcsshim::ActivateLayer failed (0x20) during build
Cause. Windows Defender scanning new layer files + containerd snapshot contention
Fix. Rule out the two other 0x20 entries first: an enabled RDNA4 GPU (on an AMD Radeon host) and --isolation process on a docker build (on commit). Then exclude the container stores from Windows Defender: windows\scripts\host\Sync-DefenderExclusions.ps1 (elevated) applies the full set, C:\ProgramData\containerd and C:\ProgramData\nerdctl among them.
ActivateLayer 0x20 "file used by another process" on commit#
Symptom. hcsshim::ActivateLayer failed ... 0x20 "file used by another process" on commit
Cause. --isolation process was used for a docker build — it cannot commit layers on this host
Fix. Never pass --isolation process to a docker build. Build through windows/Build-Buildkit.ps1: buildctl commits process-isolated layers, so every RUN gets all host CPUs (the docker run --cpu-count N + docker commit path went with build.ps1 on 2026-08-31). Not Defender/Search/SysMain (all ruled out).
ImportLayer ... (0xb7) "already exists" — deterministic, burns the retry budget#
Symptom. BK lane: failed to commit … during finalize: failed to reimport snapshot: hcsshim::ImportLayer failed in Win32: cannot create a file when that file already exists (0xb7), DETERMINISTIC — identical snapshot IDs on every attempt, burns the driver’s whole retry budget
Cause. A half-committed snapshot is in the way. Prime cause, measured 2026-08-07: killing buildctl mid-finalize leaves exactly this debris (a chain was aborted deliberately at 23 GB free to escape the disk danger band, and the next run died three times on the same IDs). prune does NOT clear it — it is not a reclaimable BK cache record (495 MB returned, nothing relevant); the transient-retry engine cannot help either, because the failure is deterministic, not a flake.
Fix. -NoCache on the affected stage only — e.g. .\windows\Build-Buildkit.ps1 -Gpu -Stages sdk -NoCache. Re-running the RUN yields a NEW layer digest (its output is not bit-identical), hence fresh chain IDs downstream, and the poisoned snapshot is simply no longer in the path. Verified 2026-08-07: the stage that had failed 3× exported cleanly, Done in 00:17:10. Prefer this over a CACHE-BUST comment edited into the RUN’s script (the old technique): same effect, costs one stage re-run, leaves NO trace in the source. Only reach for a source-level cache-bust when the debris sits in a layer you cannot isolate with -Stages. Corollary: prefer letting a doomed solve fail cleanly over killing it — a clean finalize failure leaves no debris, a kill does.
ImportLayer ... (0xb7) on the SAME chain-IDs across retries#
Symptom. BK lane: hcsshim::ImportLayer failed ... (0xb7) "already exists" on the SAME chain-IDs across retries
Cause. Persistent snapshotter debris from an earlier low-disk finalize failure — NOT transient, buildctl prune cannot reach it (0B reclaimable). The step the log names need not hold it: on 2026-11-04 the error sat beside a COPY, and changing that file left the IDs unchanged, because the debris was in a cached layer below.
Fix. If the IDs survive a content change, run -Stages base -NoCache (80 min on 2026-11-05, and it cleared this). Non-admin sidestep: cache-bust the layer above (any content change to the COPY’d/mounted file → new chain-IDs; live examples in the 2026-08-06 headers of Install-ScoopTools.ps1 and Install-Vcpkg.ps1, the latter this exact 0xb7 case). Admin fix: prune/GC under the active gcpolicy.
failed to reimport snapshot / failed to write compressed diff — the hcs-temp flake family#
Symptom. BK lane: failed to reimport snapshot / failed to write compressed diff at finalize/export
Cause. hcs-temp flake family (2026-08-05): realtime scanner racing C:\WINDOWS\SystemTemp\hcs* scratch, and/or low disk (<~25 GB free makes hcsshim “weird” before disk-full)
Fix. Auto-retried by the BK driver’s transient pattern. Root remedies (applied 2026-08-05): Defender exclusions for buildkitd/containerd + their ProgramData dirs; keep ≥40 GB free; gcpolicy active. ALWAYS check free disk first — disk-full mimics the same message.
Finalize dies unknown stream ID 9 on a Windows Update .msu#
Symptom. BK lane: a RUN finishes, then finalize dies failed to reimport snapshot: Files/Windows/SoftwareDistribution/Download/<id>/Windows11.0-KB…-x64.msu: unknown stream ID 9, byte-identical on every retry (same snapshot IDs — the RUN result is cached, only the finalize re-runs)
Cause. Windows Update ran INSIDE the build container (servercore ships wuauserv + UsoSvc, trigger-started, and the container has network) and dropped an .msu into the update spool during the RUN; BuildKit’s Windows layer writer cannot carry that file’s alternate stream. Measured 2026-08-25 on the amd64 media-core-onnx stage (150 s RUN, KB5120233)
Fix. Prevention, not cleanup: Disable-ContainerWindowsUpdate (WindowsSourceBuild.Common.psm1) stops + disables both services and sets NoAutoUpdate=1 as the first step of every build script (Initialize-SourceBuildEnvironment) and reports the spool count — an entry inherited from the parent image (1 item at RUN start on every media stage) is harmless, only a file written during the RUN lands in the diff. Nothing under C:\Windows is deleted by any script (protected-root rule). A layer that already carries a download is fixed by re-running its RUN with the guard in place (any module edit re-keys it); retrying the same cached RUN cannot help.
exporting layers prints nothing for 20+ minutes#
If a failed import names Files/temp/qnn-sdk-extract/.../lib-safe/aarch64-android
and reports disk-full, inspect the source-chain SDK scrub before repeating it.
The extraction is separate from the container profile’s %TEMP%; unused
platform files must be removed in the creating RUN after runtime staging.
See the QNN scratch policy.
Do not delete hcs* directories or snapshot-store files by hand.
Symptom. BK lane: exporting layers (or the following unpacking to …) prints NOTHING for 20+ minutes after a heavy amd64 layer (the LiteRT-LM Bazel output is the measured case) — or the merge fan-in COPY --from=media-core C:\runtime C:\runtime sits silent for 10–15 minutes on a step that took 5 s the run before — and every daemon — buildkitd, containerd, vmcompute, wcifs — sits at 0.00 s CPU, no shim/container process is left, and buildctl debug workers still answers in <1 s
Cause. Not a hang — a slow, mostly kernel-side layer export/unpack. Measured 2026-08-24/25: exporting layers 1216.3s done after 20 idle-looking minutes, then unpacking … 1277.0s done, and the stage went OK at 58:08 (17 min of actual build); arm64 run 12 (2026-08-25): the fan-in COPY finished DONE 847.4s after 14 idle-looking minutes (run 11: 5.1 s), no eventlog entry, nothing written under the buildkitd root
Fix. Wait. Killing buildctl here is exactly the “mid-finalize” kill that manufactures the 0xb7 debris two rows up and costs a -NoCache re-run. Bound the wait (a watcher on the log’s mtime) instead of judging by CPU: the export shows no user-mode activity by design.
Every new RUN sits silent while C: gains hundreds of GB#
Symptom. BK lane: a RUN header prints and nothing follows, for every step and every solve, even a trivial probe. No containerd-shim-runhcs-v1 process exists, and ctr -n buildkit containers ls lists the waiting containers while tasks ls is empty. containerd does thousands of small file operations per second at little CPU. Free space on C: climbs by GB per minute, and one rm-<n> directory under C:\ProgramData\containerd\root\io.containerd.snapshotter.v1.windows\snapshots has a current LastWriteTime.
Cause. containerd is deleting snapshots, and a new container waits for it. A new container needs a fresh snapshot, and while the sweep ran none was created (the rm-<n> directory is the one in flight). Measured 2026-09-29: containerd deleted about 440 GB, most likely the 27-28 Sep rocm runs’ cache after buildkit’s [history] retention (48 h, 10 entries) let go of it. New RUNs stalled from about 20:37 to 21:31, and buildctl du ended at 24 GB. Nothing failed: the waiting RUNs started on their own the second the sweep ended.
Fix. Wait, and do not kill buildctl (the 0xb7 row above). Watch C:’s free space: while it grows, the sweep is running, and the RUN starts when it stops. Afterwards the next chain solve is colder, because the sweep took the unpinned cache of earlier runs with it (tagged bk-* images are kept).
A stage fails instantly with exit code: 1 and zero container output#
Symptom. BK lane: a stage fails instantly with exit code: 1 and ZERO container output — no script banner, no stderr, deterministic across retries
Cause. Two solves racing on the same freshly-invalidated ancestor stage. Measured 2026-08-07: a second Build-Buildkit.ps1 was started while the main chain ran, right after a change to the common stage invalidated it for BOTH. Each solve tried to build the same new snapshot chain; one died before its process ever started, hence no output. NOT a script bug — a probe running the identical mounts, module import and Initialize-SourceBuildScript against the same base passed cleanly.
Fix. Do not run a second solve that shares an ancestor stage you just invalidated. -ConcurrentAux is safe because its two branches sit on an ALREADY-BUILT common ancestor. Wait for the running chain, then start the second build. If you must parallelise, first build the shared ancestor once on its own.
A Python module imports nowhere though its distribution is installed#
Symptom. In the :winamd64 and :winarm64 images of 2026-10-04, C:\temp\cpython\PCbuild\amd64\python.exe -c "import Cython" fails with ModuleNotFoundError: No module named 'Cython.Shadow', while pip list shows Cython 3.3.0. Cython\ holds shadow.py, utils.py and stringiotree.py where cython-3.3.0.dist-info\record names Shadow.py, Utils.py and StringIOTree.py. A pip install --force-reinstall cython in a container then leaves a lowercase cython\ directory, and the import still fails.
Cause. A Windows container layer that replaces a file a lower layer holds stores the name lowercased (invariant), and the media fan-in replaced thousands. It COPYed media-core’s whole site-packages and then media-tvm’s. Both branches install the same Cython, numpy, pip, setuptools, wheel and packaging into the toolchain’s CPython, so the second COPY lowercased every file of those six distributions, 451 RECORD entries, and the first COPY the toolchain’s README.txt. Distributions only one branch carries (av, onnxruntime, tvm, iree) kept their names, and so did meson, which built installs later. Measured 2026-10-07 on the local stage images: bk-windows-media-core and bk-windows-media-tvm each import Cython.Shadow, and bk-windows-media is the first image that cannot. NTFS opens either spelling, so pip, importlib.metadata and every DLL load still work. CPython’s import compares the directory listing exactly, and Cython is the one distribution of the six with CamelCase module files. The force-reinstall hits the same trap: pip moves the old Cython\ away and creates it again in the same layer.
Fix. Since 2026-10-07 the fan-in merges both trees in one RUN from bind mounts, never by COPY (Merge-SitePackageTree in WindowsSitePackages.Common.psm1). robocopy overwrites in place, so names survive. The merge stops when the branches carry one distribution at two versions, or when any RECORD entry is spelled otherwise on disk afterwards. Both branches install cython==PY_CYTHON_VERSION. The smoke gate’s section 2 imports Cython.Shadow and runs the same RECORD check over the base interpreter. In an image built before the fix, pip uninstall -y cython in one RUN and pip install cython==3.3.0 in the next restores it: a delete and a create in different layers keep the name. A venv never had the fault, since its files are new.
A bind mount of a branch image lists its files but opens none#
Symptom. The media fan-in’s site-packages merge fails with robocopy ERROR 3 (0x00000003) … The system cannot find the path specified for every entry of C:\bkmnt\site-packages\media-tvm, files and directories alike, while the media-core tree beside it merges. The first attempt after the branch image was unpacked may fail earlier, with failed to activate layer …: hcsshim::ActivateLayer failed in Win32: The process cannot access the file because it is being used by another process. (0x20), and the driver’s retry then reaches the robocopy failure.
Cause. Not established. A RUN that bind-mounts the media-tvm image sees its listing (49 entries) but cannot open cython.py. Mounted alone or beside media-core, the result is the same. The same files open in a RUN on that image, and through a bind of a stage that adds one empty RUN layer on top. Measured 2026-10-09 with buildctl probes, after a drastic buildctl prune and a full chain rebuild. It held across a -NoCacheStage media-tvm rebuild (a new top layer) and a restart of containerd and buildkitd. The same merge had passed in three solves on 2026-10-07/08.
Fix. The merge binds media-core-view and media-tvm-view, two stages that add RUN cmd /c exit 0 on top of each branch image (Dockerfile.media-merge-builder). The COPY --from= steps keep reading the images themselves, which works. The view layer never reaches the image, since only the merged files are kept.
The same symptom was observed for a seven-file C:\bkmods COPY closure on
2026-11-17: WindowsSourceBuild.Common.psm1 was listed but not loadable before
Hailo and ONNX compilation, including after a successful cache-only cleanup.
A forced-fresh diagnostic COPY briefly restored reads but replaced two mutable
cache generations; it was not a durable fix. Use the module source-view
invariant:
each shared, TVM-private, merge and ROCm module COPY stage ends with its own
empty RUN. Keep the final COPY before that view, keep compiler-cache mounts
and image tags intact, and validate actual reads separately from a directory
listing or a cached probe. Do not infer a kernel cause from the cleanup timing.
On 2026-11-19 LiteRT reproduced this failure despite an already-cached COPY and final empty RUN. The actual toolchain control could read and import the same seven modules through individual host-file mounts, also after inheriting the first consumer layer. Both LiteRT build RUNs now use that narrow file closure. Keep the other module views and compiler caches; neither a listing nor these read/import probes establish full product or architecture acceptance.
The later 2c40a98d CUDA repeat stopped at the same required-module import
before ONNX compilation. Its independent control could open none of the seven
cached-directory modules and opened, hashed and imported the identical seven
through direct file mounts. The media-core consumers now use that narrow
delivery too; TVM adds only its private module. No compiler-cache reset,
forced no-cache build or daemon restart is the repair. New-source full
qualification, builds and typed CUDA hits remain separate requirements.
Windows: container networking#
Windows ONNX source returns HTTP 404 while other public repositories work#
An inaccessible repository is not evidence of broken container DNS or a deleted project. Check the exact URL and retain the failure. The Windows core pairs its release with a full original commit; its bounded fallback checks the same commit, version and recursive submodules from the maintained mirror before any patch. See pinned source recovery. QNN separately needs its older header release; its verified local archive retains CMake population and all original patches, with a SHA256 transport check. See the QNN header transport.
QNN source patches fail with different line endings after a local Git archive#
Windows Git can apply host core.autocrlf while exporting a source ZIP. That
changes LF source bytes and prevents the fork’s original patches from applying.
The QNN archive command fixes core.autocrlf=false and core.eol=lf for that
invocation while retaining repository export attributes. Its regression uses
an enabled host conversion and a later HEAD to check the requested commit’s
exact header bytes. A separate real CMake probe applies all six original patches
and reverses them to the canonical export; it proves no plugin compilation.
Could not resolve host: github.com seconds into the first downloading RUN#
Symptom. BK lane, seconds into the first downloading RUN: Could not resolve host: github.com / git clone failed (exit 128)
Cause. The CNI .conf is missing — buildkitd then gives the container NO NETWORK ADAPTER AT ALL (not a DNS fault). Confirm in 30 s with a probe RUN: ipconfig prints nothing and a raw TCP connect to a literal IP fails “unreachable network”; the containerd debug log shows the HcsCreateComputeSystem spec with no networking block. Usual cause: someone “converted” 0-containerd-nat.conf → .conflist to fix nerdctl (2026-08-07, cost a launched chain). The subnet-drift guard does NOT catch this and stays green.
Fix. Restore it (admin): pwsh -File windows\scripts\host\Set-ContainerdConfig.ps1 derives the .conf from the .conflist (never hand-edit a copy — invariant), then Restart-Service buildkitd -Force. Keep BOTH files — buildkitd needs .conf, nerdctl needs .conflist. Build-Buildkit.ps1 now fail-fasts (Get-CniConfFormIssue) and Test-HostSetup.ps1 FAILs on a missing .conf.
The remote name could not be resolved — CNI nat subnet drift#
Symptom. BK RUN steps: The remote name could not be resolved (and even direct-IP queries time out)
Cause. CNI nat subnet drift: dockerd restarts recreate the nat HNS network on a new subnet; the static CNI conf then hands out IPs whose gateway doesn’t exist
Fix. Update ipam.subnet/GW in the authored C:\Program Files\containerd\cni\conf\0-containerd-nat.conflist to match the live vEthernet (nat) adapter (ipconfig), re-derive the .conf with windows\scripts\host\Set-ContainerdConfig.ps1, then Restart-Service buildkitd -Force (admin). Build-Buildkit.ps1’s preflight guard (Get-CniNatSubnetDrift) detects this and prints the fix.
nerdctl DNS failure in build#
Symptom. nerdctl DNS failure in build
Cause. BuildKit container can’t resolve hostnames on Windows without a CNI nat CONFIG (--dns and --network host unsupported)
Fix. Fixed 2026-08-03: install 0-containerd-nat.conf into C:\Program Files\containerd\cni\conf\ (nat.exe was already in …\cni\bin) — buildkitd RUN steps then have full NAT+DNS. Today both forms are installed (the .conflist authored, the .conf derived by Set-ContainerdConfig.ps1). There is no docker.exe fallback: the classic driver went on 2026-08-31 and the Dockerfiles need BuildKit.
Windows: buildkitd and the store#
A BK compile step freezes silently after [output clipped, log limit 2MiB reached]#
Symptom. BK compile step freezes silently minutes in (0 % CPU, zombie ninja, no log growth) right after [output clipped, log limit 2MiB reached]
Cause. buildkitd step-log clip deadlock (Windows buildkitd v0.32): after the 2 MiB clip the stdio pipe stops being drained; every process blocks on its next write. ONNX’s warning flood hits the clip in ~3 min
Fix. Set service env BUILDKIT_STEP_LOG_MAX_SIZE=-1 + BUILDKIT_STEP_LOG_MAX_SPEED=-1 on buildkitd (registry MultiString Environment), Restart-Service buildkitd -Force. See docs/windows-build-lanes.md § Getting it going, step 4. Build-Buildkit.ps1 refuses to start without it (Assert-BuildkitdStepLogEnv; -SkipStepLogGate for one launch), and Install-NewHost.ps1 sets it.
buildctl prune returns Total: 0B no matter what you pass#
Symptom. buildctl prune returns Total: 0B no matter what you pass
Cause. CHECK du -v FOR Shared: true FIRST — that is almost always the answer. Shared records are pinned by containerd IMAGE TAGS and NO prune flag can take them; prune only ever gets the Private slice, and Reclaimable describes the LEASE state, not what prune will hand back. reservedSpace is a red herring for this symptom. Otherwise: refs pinned by BUILD HISTORY (every record incl. failed attempts pins its refs indefinitely) and/or by named bk-* image generations
Fix. In order: (1) buildctl du -v and look for Shared: true — those records are pinned by containerd image tags and no prune flag can take them, so the lever is an admin nerdctl --namespace buildkit rmi of dead stage tags. (2) Non-admin: buildctl prune --free-storage <MB> — a minimum-free target, not an amount to delete; it takes the least recently used records first, which can be the chain’s own base (next entry). (3) prune-histories second, never first. (4) Look for a superseded lineage, the big hidden reclaim. The full decision procedure with every measurement: windows-build-lanes.md.
After a buildctl prune, the next chain rebuilds Dockerfile.base from step 2#
Symptom. A chain that was fully cached minutes earlier rebuilds Dockerfile.base from step 2/17 (about 65 min), every later stage misses, and free disk drops by 80+ GB until a stage gate refuses with below the 40 GB floor.
Cause. On this host any buildctl prune drops the solver’s cache keys, whichever records it removes; the records themselves survive. On 2026-10-29 a prune of eleven unrelated records by ID was followed by a base rebuild while base’s records were all still present, and after a second prune by ID even the step 2-4 results of a run cancelled minutes earlier missed. Every superseded generation then stays on disk without a key that could reach it (three generations, 420 GB, before the cleanup). The rebuilt base reproduces its image digest (dce07030… twice), so the miss is not a changed input.
Fix. Treat every buildctl prune as a full chain rebuild (about 65 min for base alone) and reclaim only when that cost is accepted, never between the stages of a warm chain. When reclaiming, take everything superseded in one go: inUse there is an in-memory reference that Restart-Service buildkitd clears between runs, after which the old generations’ records prune leaves first with buildctl prune --filter id==<id>, repeating until a pass removes nothing. Keep the current generation, which the bk-* tags hold; local copies of pushed tags go by admin nerdctl --namespace buildkit rmi, Stevedore’s nerdctl by full path (next entry). A cache hit does not refresh lastUsedAt, so --free-storage and --keep-duration pick base’s records first on a warm chain.
nerdctl --namespace buildkit images lists nothing in an admin shell#
Symptom. nerdctl namespace ls shows k8s.io and rancher-desktop-extensions, the buildkit namespace has 0 images, and rmi of a bk-* tag fails no such image.
Cause. Rancher Desktop’s nerdctl.exe precedes Stevedore’s on PATH and talks to Rancher’s Linux VM, not the Windows containerd that holds the bk-* images.
Fix. Call & 'C:\Program Files\Stevedore\bin\nerdctl.exe' --namespace buildkit ...; Get-Command nerdctl -All shows the order. Its image list prints local/kataglyphis:bk-* without the docker.io/ prefix, so match tags on that form.
buildctl local export dies file already closed on a Windows rootfs#
Symptom. buildctl local export of a Windows image dies error from receiver: write ...\Boot\Fonts\<font>.ttf: file already closed (nondeterministic file; every layer had already committed)
Cause. The type=local exporter cannot receive a full Windows rootfs client-side — NOT a host/commit defect (measured 2026-08-10 on a host whose type=image,...,unpack=true export of the same solve was green)
Fix. Export type=image (what Build-Buildkit.ps1 and, since 2026-08-10, Test-BuildCopy.ps1 do) or the tar-stream type=docker,dest=<file> (-FinalTar); never judge host health from a type=local export of a Windows image.
Windows: Stevedore and the docker service#
cannot access containerd socket ... Zugriff verweigert (non-admin)#
Symptom. nerdctl ...: cannot access containerd socket ... Zugriff verweigert (non-admin)
Cause. containerd’s pipe is admin-only (its service lacks --group docker-users, unlike dockerd/buildkitd)
Fix. Use docker.exe (dockerd pipe) or buildctl (buildkitd pipe) — both are docker-users-accessible. nerdctl needs an elevated shell.
runtime "com.docker.hcsshim.v1" binary not installed#
Symptom. Stevedore docker build: runtime "com.docker.hcsshim.v1" binary not installed
Cause. Service default runtime uses hcsshim-v1 shim which isn’t shipped
Fix. Change to runhcs-v1: sc config stevedore binPath="..." --default-runtime=io.containerd.runhcs.v1" (see docs/windows-stevedore-and-docker.md § Fix 2)
failed to create TTRPC connection#
Symptom. Stevedore docker build: failed to create TTRPC connection
Cause. Shim binary mismatch (runhcs copied as hcsshim)
Fix. Remove the bad shim copy: del "C:\Program Files\Stevedore\bin\containerd-shim-hcsshim-v1.exe". Apply Fix 2 instead.
Stevedore service won’t start (1053 timeout)#
Symptom. Stevedore service won’t start (1053 timeout)
Cause. Windows Defender blocking dockerd.exe OR stale daemon.json from Docker Desktop
Fix. Add-MpPreference -ExclusionProcess "dockerd.exe" AND delete C:\ProgramData\docker\config\daemon.json
error getting credentials - err: exit status 1#
Symptom. error getting credentials - err: exit status 1
Cause. wincred credential helper fails because dockerd runs as SYSTEM without interactive session
Fix. Treat the helper failure as a failed registry setup even for a public image. The containerd 2.4.2 transfer client logs a credential error and continues without answering the pending authentication request (source). The 2026-11-20 rootless Linux preflight stopped making progress before creating a container; the same pinned Ubuntu image pulled in 17 seconds with a private empty Docker configuration. This supports the credential-stream diagnosis; it does not prove every registry stall has that cause.
For a pinned public base, use a per-run DOCKER_CONFIG containing
{"auths":{}}, and select the native Linux nerdctl rather than a Windows/Rancher
wrapper inherited through PATH. Keep the user’s credential and context files
unchanged. Start a new client after the failed preparatory pull has ended; verify
its exact PID/command and that no build/container started before cancelling it.
Active builds and exports remain protected. Private registries still require their
normal authenticated configuration. See the local proof workflow.
failed to extract layer ... failed to find link target pulling servercore#
Symptom. failed to extract layer ... failed to find link target when pulling servercore
Cause. containerd windows snapshotter can’t handle certain Windows reparse points in the layer
Fix. Use docker.exe pull instead of nerdctl pull. Docker Engine’s layer extraction handles reparse points correctly.
Windows: build content and toolchain#
No match was found for Pester or PSScriptAnalyzer in Windows CI#
Symptom. A PowerShell quality or submodule-pin job stops during
Install-Module with No match was found; lint or Pester assertions never run.
Cause. PowerShell Gallery temporarily returned an empty module lookup. The requested pinned versions still exist, and another job can succeed on the same pin while this job fails.
Fix. The shared WindowsCi.ModuleBootstrap.psm1 accepts an already installed
matching version, retries Gallery installation with terminating errors, and
verifies the version after each attempt. A final failure stays red; rerun the
job after checking the Gallery when the retry budget is exhausted.
fatal: remote helper 'https' aborted session during Windows CI checkout#
Symptom. The short-path Windows clone walks through
third_party/ANTfrastructure/third_party/DocumANTation/.../third_party/ANTfrastructure
until Git reports fatal: remote helper 'https' aborted session; the container
build never starts.
Cause. The clone treated the submodules: true input as --recursive.
That descends into a cyclic documentation subtree and eventually exceeds Git’s
internal gitdir limit.
Fix. The shared short-path clone now distinguishes true (direct entries)
from recursive (nested entries). Use recursive only for lanes that need
nested source trees, and exclude irrelevant cyclic submodules when recursion is
required. The reusable Windows Python CI workflow exposes the same choice
through its submodules input. See the action contract
and Python CI setup.
Windows media build crawls; Building with ninja -j2#
Symptom. Windows media build crawls; Building with ninja -j2 in the stage log (logs\windows-build-logs\bk-<runid>-Dockerfile.media-builder-media-core-*.log)
Cause. -j2 is the FLOOR of Get-BuildJobCount (max(2, min(cores, MEMORY_LIMIT_GB/4))), so the container resolved a near-zero memory budget — BK RUN steps are process-isolated with all host CPUs, so this is memory-bound, not a CPU cap. (Historical: on the classic lane the same line meant media-core had fallen back to a 2-CPU docker build instead of Invoke-RunCommitStage; that driver went on 2026-08-31.)
Fix. Check the driver’s preseed: memory-limit-gb=<N> published line and that the stage carries SCCACHE_WEBDAV_ENDPOINT — #51 publishes the budget to the WebDAV rather than as an ARG/ENV (both are cache keys), and a container that cannot read it falls back to CIM host RAM. Worked numbers: windows-build-resources.md § Media fan-out and memory budgeting.
Rust smoke test: “rustup could not choose a version of cargo/rustc”#
Symptom. Rust smoke test fails: “rustup could not choose a version of cargo/rustc”
Cause. A toolchain-less rustup (proxy shims in CARGO_BIN that resolve no toolchain) — e.g. rustup-init --default-toolchain none, or an image from before the Cargokit fix
Fix. rustup WITH a default toolchain (RUST_VERSION, pinned since 2026-10-05) IS the sole provider (Install-RustToolchain.ps1); CARGO_BIN on the rustup path is by design. Fix with rustup default $env:RUST_VERSION; never add a second provider (no scoop rust) (windows-build-invariants.md).
A GitLab download “succeeds” with HTTP 200 but is a few KB#
Symptom. A download from gitlab.freedesktop.org / code.videolan.org “succeeds” (HTTP 200) but is a few KB and extraction fails — e.g. GStreamer wraps “downloaded but extraction into X failed”
Cause. Anubis anti-scraper: browser User-Agents without JS get an HTML challenge page as a 200 (the shared Invoke-DownloadWithRetry sends a browser UA). Second variant: .git left in a GitLab /-/archive/ URL serves HTML even to curl. Both burned a merge run on 2026-08-17.
Fix. Both halves live in Invoke-GstWrapProvisioning (in WindowsMeson.Common.psm1 since 2026-08-31 — the merge-lane leaf mounted by Dockerfile.media-merge-builder only, so editing it costs the GStreamer layer and not the whole media chain): it fetches via Invoke-WrapDownload (curl-native UA + gzip/bzip2 magic-byte check) and strips .git from GitLab archive URLs in both branches. Diagnosis in 10 s: read the first bytes — <!doctype html> = challenge page, not a corrupt archive.
TVM: llvm-config.exe not found on PATH#
Symptom. tvm stage: TVM: llvm-config.exe not found on PATH (#47 gate)
Cause. Scoop LLVM never ships llvm-config or dev libs — TVM was silently USE_LLVM=OFF (no CPU codegen) until 2026-08-17. NOT a broken PATH.
Fix. The self-heal in Build-TvmFromSource.ps1 builds a pinned minimal LLVM from source (windows-build-invariants.md). On amd64 TVM links the patched toolchain’s llvm-config, so the heal runs only under -StockLlvm and on the rocm TVM_ROCM=1 spike. If the gate throws, check the heal’s download/SHA pin for the current LLVM_WINDOWS_VERSION — do NOT fall back to the official /MT dev tarball or USE_LLVM=OFF.
TVM ROCm spike: C:\llvm-patched\bin\llvm-config.exe has no AMDGPU target#
Symptom. A -Variant rocm run, media-tvm RUN: TVM ROCm spike: C:\llvm-patched\bin\llvm-config.exe has no AMDGPU target (targets-built: 'AArch64 X86') -- the rocm codegen cannot emit hsaco, thrown before TVM configures. IREE, in the same RUN, never runs.
Cause. Until 2026-09-23 TVM built its own AMDGPU-capable LLVM only when PATH had no llvm-config, and on amd64 the patched toolchain LLVM (AArch64;X86) is always on PATH.
Fix. Fixed in Build-TvmFromSource.ps1 (Get-TvmLlvmChoice): on the spike a PATH llvm-config without AMDGPU counts as absent, and TVM builds a minimal LLVM with AMDGPU (windows-rocm.md § IREE and TVM). If the message names C:\llvm-patched, the choice was bypassed; if it names C:\temp\llvm-dev\install\bin\llvm-config.exe, the minimal build ignored its target list. -NoRocmSpikes is the workaround.
TVM: no member named 'matchIntrinsicSignature' in namespace 'llvm::Intrinsic'#
Symptom. amd64 TVM compiler build: codegen_llvm.cc(1119): error: no member named 'matchIntrinsicSignature' in namespace 'llvm::Intrinsic' plus 7 more errors on MatchIntrinsicTypes_*, then ninja: build stopped. The arm64 lane is unaffected (runtime-only, no compiler).
Cause. TVM 0.26’s codegen_llvm.cc uses llvm::Intrinsic::matchIntrinsicSignature / MatchIntrinsicTypes_* which were removed or renamed in LLVM 23.1.0. The forced LLVM_WINDOWS_VERSION bump from 22.1.8 to 23.1.0 (scoop reshaped the artifact, #135) broke the TVM compiler’s LLVM API surface. The llvm_module.cc LLJITBuilderState::ObjectLinkingLayerCreator conversion also fails (API change).
Fix. Fixed (#134; rebuilt green 2026-09-02): TVM_COMMIT in versions.env pins TVM to upstream main (994e0216), which carries the TVM_LLVM_VERSION >= 230 guards, and Build-TvmFromSource.ps1 prefers it over TVM_REF. TVM v0.27.0 ships those guards (#20189), and TVM_COMMIT now pins that tag’s commit; it stays set, because a branch named v0.27.0 shadows the tag (linux-cross-builds.md). The arm64 lane needs no fix — it builds runtime-only and never compiles codegen_llvm.cc.
lld-link: error: undefined symbol for template instantiations after a green compile#
Symptom. Compile fully green, then lld-link: error: undefined symbol for template instantiations (QkvToContext<...>, BiasSoftmaxImpl<double>) at the DLL link — identical on every retry AND on a fresh cache mount
Cause. the sccache nvcc path produced objects lacking arch/define-guarded instantiations during REAL compiles — runs 10+11 with launcher failed identically, runs 5+12 bare-nvcc linked green. Poisoning is excluded on BOTH levels (run 11: fresh L0 mount; L2 turned out to hold only 9 probe entries — the chain’s write-through never fed it). Minimal wrapped-vs-bare nm-diff repros (define-guard + arch-guard shapes; plain, ORT-ish and --options-file command lines, fresh disk-only cache) are all CLEAN — the loss needs real-ORT invocation complexity (untested: -MD/-MF depgen, -forward-unknown-to-host-compiler, quoted rsp defines, client concurrency). Same machinery also crashed the server on fused_moe (10054, upstream family #1098) and produced the Severity::k0 phantom; arch-guard×preprocessing has upstream history (#2299)
Fix. Root-caused to sccache’s dryrun quote-collapse (mozilla/sccache#2811, shipped in 0.18.0); the launcher is ON BY DEFAULT again since 2026-08-18 (ARG SCCACHE_CUDA_LAUNCHER="1" in Dockerfile.media-builder’s onnx stage, OPENCV_CUDA_LAUNCHER="1" for OpenCV). The wiring site is unchanged — Invoke-CmakeConfigure adds CMAKE_CUDA_COMPILER_LAUNCHER only under SCCACHE_CUDA_LAUNCHER=1; opt out per run with -BuildArg SCCACHE_CUDA_LAUNCHER=. NEVER trust a new sccache with it without all THREE canaries: Test-CudaCache.ps1 + fused_moe compile + a full providers_cuda LINK (the miscompile is invisible until link). C/CXX launcher stays safe.
meson cross: Summary section 'Build environment' already have key 'host cpu', then Subproject "subprojects/glib" required but not found#
Symptom. arm64 GStreamer merge (cross file + native file): glib-2.86.3/meson.build:2777:0: Exception: Summary section 'Build environment' already have key 'host cpu' right after glib’s build-machine configure reached its summary, then gstreamer| Subproject subprojects\glib-2.86.3 is buildable: NO (disabling), dozens of Dependency 'libpcre2-8' is required but not found re-tries, and finally libnice-0.1.23/meson.build:214:4: Exception: Subproject "subprojects/glib" required but not found → gst-libs/gst/webrtc/nice/meson.build:16:14: ERROR: Subproject "subprojects/libnice" required but not found (arm64 run 25, 2026-08-26). The host glib configured fine minutes earlier.
Cause. Three meson bugs around “build-only” subprojects (1.12.0 and master, checked 2026-08-26). Nothing in the monorepo asks for a build-machine glib; meson’s gnome module does (mkenums_simple → find_tool → dependency('glib-2.0', native: true, required: false)), so under forcefallback glib’s meson.build runs a second time for the build machine. (1) Interpreter.summary is keyed by NAME and shared across interpreters → the second run throws at its summary({'host cpu': …}). (2) do_subproject’s failure paths call disabled_subproject(subp_name, exception=e) without for_machine (default HOST) → the failed build-machine holder overwrites the healthy host glib holder — that is the poison: libnice’s anonymous dependency('', fallback: ['glib', 'libglib_dep']) reaches glib by NAME and inherits the failure (the gio-2.0 lookup survives through the override table), and every later native: true request re-runs the whole failing configure because the BUILD key never got the disabled entry. (3) configure_file writes to the unprefixed self.subdir while targets/include dirs of a build-only subproject live under build.<subdir> → the build machine’s glibconfig.h/config.h/fficonfig.h overwrite the host’s, and a build-machine compile cannot find them (run 27). Not a toolchain problem — the build-machine sanity checks link x64 via /vctoolsdir+/winsdkdir and its libffi assembles with the x64 cl/ml64 named in the native file (backlog #128 runs 23–27 for the earlier costumes of this chain).
Fix. Invoke-MesonBuildSubprojectPatch (in WindowsMeson.Common.psm1 since #134, 2026-08-26 — a merge-lane leaf module mounted by Dockerfile.media-merge-builder only, so editing it costs the GStreamer layer and not the whole media chain; it lived inside Build-GstreamerFromSource.ps1 until then because the only module home was the shared buildmods six) patches the pip-installed mesonbuild/interpreter/interpreter.py before meson setup: for_machine=for_machine at both disabled_subproject failure sites, and the project prefix on configure_file’s output path and returned File. Bug (1) is deliberately left alone — a build-machine glib that configures is one that compiles (5772 targets) into more unprefixed paths, and nothing consumes it; with (2) fixed its failure is recorded under BUILD only, with (3) fixed it clobbers nothing, gnome’s find_tool falls through to the host override as designed, and libnice/webrtc configure against the host glib. Idempotent by marker; THROWS when a site count is off so a newer meson cannot silently skip it and resurface as the libnice error two hours later. Fixture test SourceBuild.MesonBuildSubprojectPatch.Tests.ps1; upstream draft out/upstream-issue-meson-summary-build-subproject.md (all three). If you see this on a meson newer than 1.12.0, check whether upstream fixed it before re-anchoring the regexes.
Windows base: scoop cannot install a pinned tool, 404 on the installer#
Symptom. Dockerfile.base dies in the scoop layer, ~14 minutes in (i.e. after the Visual
Studio Build Tools layer), with The remote server returned an error: (404) Not Found. naming an
installer URL, then Where-Object: Cannot bind argument to parameter 'AppName' because it is an empty string — scoop’s own follow-on error, not the cause. Both halves of this hit on 2026-08-26,
twenty minutes apart.
Cause. The pin names a version whose WINDOWS artifact does not exist. Two distinct ways in:
The upstream reshaped the artifact. LLVM changed its Windows packaging at 23.1.0 from
.exeto.msi, and the scoopmain/llvmmanifest followed within the hour.scoop install app@<ver>synthesises its URL from the CURRENT manifest’s autoupdate template, so the still-valid 22.1.8 pin began asking forLLVM-22.1.8-win64.msi, which was never published. Measured:LLVM-22.1.8-win64.exe206 /.msi404;LLVM-23.1.0-win64.exe404 /.msi206. A pin can go uninstallable without the pinned version changing.The upstream versions per platform and the key is shared. LunarG publishes the Vulkan SDK per platform and Windows lags:
https://vulkan.lunarg.com/sdk/latest.jsonread{"linux":"1.4.357.1","mac":"1.4.357.1","windows":"1.4.357.0"}.VULKAN_VERSIONfeeds the linux base/sdk AND the windows scoop layer, and the bump tool resolved it fromlatest/linux.txt.
Fix. Check the artifact, not the version number:
curl -sS -o NUL -w '%{http_code}' -L --max-time 30 -r 0-0 <installer-url> # 206 = there, 404 = not
curl -s https://raw.githubusercontent.com/ScoopInstaller/Main/master/bucket/<app>.json | grep -A2 autoupdate
spec_vulkan in bump_versions.py now reads latest.json and pins the OLDEST platform this repo
installs — a shared key can only carry a version that exists on every lane consuming it — and
prints the disagreement. Build-Buildkit.ps1’s Vulkan preseed probes the installer URL before any
solve and throws on 404 ONLY (403/5xx/timeouts stay fail-open, so a LunarG outage cannot block a
build the container could still complete). Note the preseed had ALREADY warned “host download
failed (exit 22)” and fallen through by design; a 404 is a wrong pin, not an outage.
AArch64 cross compile aborts with error: fixup value out of range#
Symptom. A cross TU aborts with error: fixup value out of range, or with
error: value evaluated as <N> is out of range. — no source location, no fixup kind, no
instruction. Appeared with clang-cl 23.1.0; 22.1.8 compiled the same tree. Observed in OpenCV’s
CPU-dispatch TUs and in the bundled protobuf.
Cause — ONE defect, reaching two passes that both pick an encoding from an ESTIMATE of block
offsets and are then contradicted by the assembler. Under async EH (/EHa, which OpenCV passes)
AsmPrinter emits a NOP after an EH_LABEL whose next instruction can fault, but
getInstSizeInBytes reports EH_LABEL as a zero-size meta-instruction — so every MIR-level
block-size estimate is 4 bytes short per label. AArch64CompressJumpTables then picks a 1-byte
jump-table entry for a span that does not fit (1), and BranchRelaxation leaves a branch that
cannot reach its target (2).
This entry has now been wrong twice, in opposite directions; both corrections are kept because
each wrong version was acted on. 2026-08-27 it said “one signature at two sites” with a shared
cause — refuted, and the investigation split. Later the same day it said the two were unrelated,
that (2) was llvm#202716 and that only a
toolchain move to LLVM main would retire /Ob1 — also wrong. A census is recorded as settling it — 1,869 objects
green with BOTH workarounds off, on pinned 23.1.0 plus only the two getInstSizeInBytes patches,
a compiler containing no llvm#202716 — but it was run by hand and left no log, so it is a
claim, not evidence. It was acted on anyway: #135 closed 2026-08-29 with the patched toolchain
as the default and both workarounds removed (below). Full evidence in
windows-backlog-archive-2026-08-26.md § #135.
Jump-table entry width →
value evaluated as <N> is out of range.AArch64CompressJumpTablesselects 1-byte entries wheneverspan>>2fits in 8 bits — a ceiling of 255×4 = 1020 bytes. EveryNmeasured here sits JUST past it: 256 (= 1024 B, four bytes over), then 258, 259, 260, 262, 272, 281, 284. Offender class: the bundled libprotobuf (descriptor.cc, generated_message_reflection.cc, wire_format.cc), which is known-fragile on windows-arm64 — but read that citation carefully (protobuf#24758 is a LOOSER match than it looks: Ruby/upb, notdescriptor.cc, and its symptom isFailed to evaluate function length in SEH unwind info, i.e. llvm#47432 — the same bug this page already warns about under-align-all-*, and NOT the jump-table overflow). It was closed as an LLVM bug with nothing to fix in protobuf, which is the useful precedent: the offender library is the trigger, not the defect. Root cause, FOUND 2026-08-28 — FIXED by the patched toolchain (llvm#219275 + #219276,BUILD_PATCHED_LLVM=1, now the default).EH_LABELunder/EHaemits a 4-byte nop counted as zero bygetInstSizeInBytes; the pass is sound given correct instruction sizes. The workarounds (+force-32bit-jump-tablesand per-TU/Ob1) have been REMOVED fromBuild-OpencvFromSource.ps1. The stock scoop clang-cl still has the bug — use-StockLlvmonly for patch debugging.Branch relaxation →
fixup value out of range. Inmedian_blur.dispatch.cpp,/O2collapses the whole baseline median filter into ONE function —cv::cpu_baseline::medianBlur, 8,465 instructions ≈ 33,860 bytes — and inside ittbnz w9, #31, .LBB546_847
has to reach a block ~32,916 bytes away (counted from the emitted listing, instructions × 4).
tbz/tbnzcarry a 14-bit displacement: ±32,768 bytes. It misses by roughly 150 bytes — a hair, not an order of magnitude. LLVM’sBranchRelaxationpass exists to catch exactly this and rewrite the branch; it did not, because its layout estimate came out short. Root cause: the same EH_LABEL undercount as (1) — ~150 bytes is 37 labels at 4 bytes each. Retired by the same two patches on pinned 23.1.0; measured 2026-08-28,/Ob1off, this TU compiles clean. Superseded claim, kept because it was acted on: this once read “root cause FOUND, fixed upstream byc6e184686cd7, only a toolchain move tomainretires/Ob1”. The census compiler contains no such commit, so #202716 is not the cause here. What the earlierbranch-relax-tbz.mirrevert actually showed was that the commit is load-bearing for upstream’s own test — never evidence aboutmedian_blur.dispatch.cpp.
Fix — HISTORICAL (both removed 2026-08-29; the patched toolchain above is the fix): two settings, one per site, both cross-lane only.
(1)
-Xclang -target-feature -Xclang +force-32bit-jump-tables, whole build. This disables the compression pass —if (ST.force32BitJumpTables() && !MF->getFunction().hasMinSize()) return false;(AArch64CompressJumpTables.cpp, 23.1.0) — so every table keeps 4-byte entries:.word .LBB0_2-.Ltmp0/ldrsw, ±2 GB, instead of.hword (.LBB0_2-.LBB0_2)>>2/ldrh. Cost on a reproducer: 4522 → 4650 bytes of object, ~2.8 %, all of it jump-table DATA; full/O2retained.(2)
/Ob1on the two offending TUs —median_blur.dispatch.cppandmultiview_calibration.cpp— were appended to theirbuild.ninjaFLAGS lines byBuild-OpencvFromSource.ps1. It does not lower the optimisation level: every kernel keeps/O2, vectorisation and unrolling. It stops the inliner from gluing file-static helpers into one oversized function; onmedian_blurthe largest function drops 33,860 → 10,620 bytes, i.e. 3.1× headroom under the ceiling instead of a 148-byte miss.-mllvm -inline-threshold=100and=25do NOT achieve this (measured, both still fail): those helpers have a single call site and are inlined regardless of threshold.Get the list by census, not one rebuild at a time.
NINJA_KEEP_GOING=1(honoured byInvoke-NinjaBuildWithRetry) turns the stage intoninja -k 0, so one run compiles all 1,870 objects and reports EVERY offender instead of stopping at the first. That is how the list above was closed at two. It matters again only if the patched toolchain is dropped: the ceiling is a property of what the inliner produces, so a new offender is one source change away. (No Dockerfile declaresNINJA_KEEP_GOINGas an ARG, so-BuildArg NINJA_KEEP_GOING=1is silently dropped.)
+force-32bit-jump-tables and -mllvm -aarch64-enable-compress-jump-tables=false are the same
thing — byte-identical .asm from clang-cl 23.1.0, verified locally on 2026-08-27. An earlier
version of this page claimed the feature “keeps the pass enabled with its adr check intact”
while the -mllvm flag removes it, and used that difference to explain (2). Both halves were
wrong. With the pass off, the adr that materialises a table base is self-relative (.Ltmp0:
sits on the adr itself, displacement 0) and cannot go out of range. The target feature is
preferred only because it is a supported spelling where -mllvm is a debug knob.
Do NOT reach for these — each one cost a run:
-fno-jump-tablesfor (2): no jump table is involved; it fails identically (measured).-align-all-*to nudge an estimate: the padding makes the function length unevaluable for the Windows SEH unwind writer and clang-cl dies withFailed to evaluate function length in SEH unwind info(llvm#122707, a duplicate of llvm#47432)./Odor/O1to dodge a pass: they move the failure to the next TU (measured three times) and cost code quality on a lane whose point is a real build. A 148-byte miss flips on ANY perturbation, which is exactly why blunt flags keep appearing to “work”.-max-jump-table-size: caps the entry COUNT while the ceiling is a BYTE SPAN. Accepted by the driver, no effect.
Diagnose it in minutes, not in build-hours. The message carries no location because it comes
from the MC layer, after codegen. /FA makes clang-cl assemble its own listing, which puts a
file:line and the offending instruction on the error:
clang-cl.exe --target=aarch64-pc-windows-msvc /O2 /c /FA /Fat.asm /Fot.obj t.cpp
One trap on 23.1.0: that listing does not round-trip. A catch funclet’s block address prints
as add x0, x0, .LBB0_903 with the :lo12: specifier MISSING, so LLVM’s own assembler stops
there with expected compatible register, symbol or integer in range [0, 4095] — before reaching
the fixup you are chasing. Direct object emission is unaffected (it gets the specifier right), so
repair the listing and assemble that instead:
(Get-Content t.asm) -replace '^\s*add\s+(x\d+),\s*(x\d+),\s*(\.L\S+)\s*$', "`tadd`t`$1, `$2, :lo12:`$3" | Set-Content t2.s
clang.exe --target=aarch64-pc-windows-msvc -c t2.s -o t2.obj # the error now has a line number
That printing bug reproduces in 15 lines — one try/catch with a body big enough to push the
continuation block past 4 KB — and deserves its own upstream report.
Work against a LOCAL toolchain, not the container: it turns 4-minute lane runs into 2-second experiments.
curl -sSfL -o llvm.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-<ver>/clang+llvm-<ver>-x86_64-pc-windows-msvc.tar.xz
tar -xf llvm.tar.xz
Then read the listing: .byte/.hword/.word says which jump-table width was chosen, adr vs
adrp says how a base is reached, and the instruction count between a branch and its target
label — ×4 for bytes — says whether relaxation failed and by how much.
Deciding whether a new stock compiler can replace the patched toolchain. Do not answer that from a lane
run, and do not answer it from a synthetic reproducer — a 148-byte miss flips on any perturbation,
so a hand-written test case proves nothing about these TUs.
Invoke-LlvmAarch64Layout.ps1 is
the A/B: it freezes the five real offenders as preprocessed .i files (-Capture, once per
OpenCV bump) and then compiles them with the workaround OFF against any candidate clang-cl.
Because a frozen .i has no #includes left, the run phase needs no OpenCV tree, no VsDevCmd and
no container — only a compiler that can target aarch64-pc-windows-msvc.
Its plan builder separates token selection and workaround removal from each
compiler run; the run phase validates corpus hashes before it grades candidates.
It gates every verdict on its own control arms: the stock compiler must still reproduce the
abort with the workaround off, and must still compile clean with it on. If either fails the run
reports INVALID and exits 2, because a green candidate under a broken control is not evidence —
it is a stale corpus. A FIXED verdict is necessary and not sufficient: the frozen set is a
census taken at one commit, and the ceiling is a property of what the inliner produces, so
dropping the patched toolchain (BUILD_PATCHED_LLVM=1) still requires a full arm64 OpenCV build
over all ~1,870 objects. Its command-line surgery — in particular that
both spellings of the jump-table workaround are stripped, so the “off” arm is genuinely off — is
pinned by windows/scripts/tests/Diagnostics.Llvm135Repro.Tests.ps1 against the real ninja
command line.
A source build produces UNPATCHED sources and says SKIP: ... (already applied)#
Symptom. Invoke-SourcePatch reports SKIP: <patch> (already applied) for every
patch on a fresh source tree, the build succeeds, and the artefact behaves as though
no patch was ever applied. No error anywhere.
Cause. Invoke-SourcePatch falls back to patch.exe when the source tree is not
a git repo, and until 2026-08-27 it passed the patch file as a POSITIONAL argument.
To GNU patch a bare path is the file to be patched, not the patch — so it read an
empty patch from stdin, changed nothing and exited 0. The helper’s reverse-check
reads exit 0 as “already applied” and skips. Measured against a file containing only
the word placeholder: both the forward and the reverse dry-run returned 0 and
printed nothing. With -i the same call returns 1 and prints Hunk #1 FAILED.
Only non-git trees were affected. OpenCV and opencv_contrib are git clones and take
the git apply path, where the positional form is correct — which is why this sat
undiscovered until the LLVM release tarball became the first non-git consumer.
Fix. Already applied: the three patch.exe scriptblocks in
WindowsSourceBuild.Patches.psm1 now pass -i $PatchFile.
The transferable lesson. This was caught only because
Build-LlvmFromSource.ps1 asserts on the PATCHED CONTENT afterwards
(if ($text -notmatch 'eh-asynch') { throw ... }), not on the patch step’s exit
code. A source build whose patch silently vanishing would matter should check the
result, not the return value — otherwise you ship a compiler that reports the right
version, passes the provenance gate, and still has the bug you patched out.
atlbase.h not found when building LLVM in the container#
Symptom. DIASupport.h(25): fatal error C1083: ... "atlbase.h" partway through an
LLVM source build.
Cause. LLVM’s PDB/DIA support needs ATL, which the container’s VS Build Tools installation does not include.
Fix. -DLLVM_ENABLE_DIA_SDK=OFF (already in Build-LlvmFromSource.ps1). DIA
only powers PDB symbolisation in the LLVM tools; the compiler itself needs none of it.
A build script dies with The term ... is not recognized, in the container only#
Symptom. A build script dies with FATAL ERROR: The term 'Resolve-BuildMachineMsvcTool' is not recognized as a name of a cmdlet, function, script file, or executable program. — well into a
compile stage, on the build host only. The same script runs fine on a dev box.
Cause. The function exists and is exported by its owning module, but the script reaches that
module INDIRECTLY through WindowsSourceBuild.Common’s re-export list, and the name was never
added there. Module-internal use never needs an export entry; a direct script call does. On a dev
box the whole modules directory is on disk and earlier imports pollute the session, so nothing
fails. Export-ModuleMember also silently ignores names with no matching function, so the reverse
mistake is equally quiet. This class has cost two incidents (#113/verify12, and #134 two hours into
arm64 run 37).
Fix. Exporting is TWO edits: Export-ModuleMember in the owning module AND the re-export list
in WindowsSourceBuild.Common.psm1. Modules.ScriptCallClosure.Tests.ps1 proves in a fresh pwsh —
importing only what the script itself imports — that every module function a build script CALLS
resolves; Modules.ReExport.Tests.ps1 checks the other direction. Neither replaces the other, and
the check takes seconds where the build takes hours.
Test-Elevated is not recognized during host lavapipe setup#
Symptom. A Windows consumer finishes its container build and verified lavapipe
downloads, then its host Vulkan test fails with The term 'Test-Elevated' is not recognized.
Cause. Install-LavapipeHost.ps1 imported WindowsContainerImage.Common.psm1,
whose own import of WindowsScripts.Shared.psm1 was private to the module. The host
script could not call the shared elevation predicate.
Fix. The host entry imports WindowsScripts.Shared.psm1 directly without -Force;
it keeps elevated-only ICD registration. Lavapipe.HostVisibility.Tests.ps1 checks the
host import AST and probes the shared export in a cold PowerShell process; removing
the direct import makes its mutation check fail.
A Windows portable bundle fails because Bundle is missing#
Symptom. Packaging finishes its licence checks, then the build fails with
The property 'Bundle' cannot be found on this object.
Cause. A successful New-PortableBundle package checker wrote its proof line to
the success stream. PowerShell returned that string together with the bundle object.
Fix. Route the package-check callback through Out-Host, as the CMake runner
already does. Keep checker failures fatal. CrossBundle.PackageCheck.Tests.ps1 rejects
output contamination and swallowed failures; separate licence suites check package bytes.
A bundle mutation baseline fails before applying its edit#
Symptom. Linux preflight reports an unmutated baseline failure from Windows
path assertions or a fake cmake.cmd install.
Cause. The callback mutation selected the whole Windows-specific bundle suite.
Fix. Use the cold, host-portable CrossBundle.PackageCheck.Tests.ps1 with the
shared install fixture. Both output and rejection mutants must fail there on Linux
and Windows. Keep the native batch cases in full Windows discovery.
A consumer’s CMake says clang-cl “is not able to compile a simple test program”#
Symptom. A consumer’s Windows CI lane, building inside :winamd64, stops at CMake’s compiler
check: The C compiler "clang-cl.exe" is not able to compile a simple test program. Each
sccache client in the check’s log waits 10-12 s and exits 2; the sccache server log (if you
can find it) says tcp connect error. The lane’s own output may show none of this: consumer
wrappers ran $null = Invoke-ContainerBuild, which discarded the build’s stdout until
2026-09-23. Seen on AccelerANTgine and OmniAccelerANT (runs 35921977157, 35912798986).
Cause. The published image carried the build host’s SCCACHE_WEBDAV_ENDPOINT (a LAN address)
in its ENV. The consumer’s wiring turns the sccache launchers on whenever sccache is on PATH;
sccache 0.18 checks its storage when the server starts, cannot reach the endpoint from a runner,
and exits, so every compile behind the launcher fails.
Fix. A hub at or after 2026-09-23 removes an unreachable endpoint before it wires the
launchers (Clear-UnreachableSccacheEndpoint, one WARN), so bumping the hub pin is enough on an
old image. Images built from that hub no longer carry the variable, and three gates refuse one
that does: windows-build-resources.md § What the published image carries.
By hand on an old hub: clear SCCACHE_WEBDAV_ENDPOINT in the container before the build.
CodeQL database create hangs for hours at near-zero CPU#
Symptom. A Windows -CodeQL run (Invoke-BuildCodeQL) sits in database create for hours
with seconds of CPU. Since 2026-10-05 the phase watchdog kills it and names the phase
(CodeQL database create did not finish within … min). Inside the container, a cargo metadata
started by CodeQL’s Rust extractor, or a traced build step, waits beside an sccache.exe that
has no arguments.
Cause. The image sets SCCACHE_IDLE_TIMEOUT=0, so sccache’s server never exits. A client
started under the CodeQL tracer spawns the server, the server keeps the client’s output pipe
open, and the caller waits for an end-of-file that never comes. Killing the server releases one
call, and the next call starts a new server and blocks again (OmniAccelerANT, 2026-10-05). A
cache hit would also hide the compile from the extractor.
Fix. Since 2026-10-05 Invoke-BuildCodeQL turns sccache off for the traced build:
Disable-SccacheForTrace clears RUSTC_WRAPPER, CC_WRAPPER, CXX_WRAPPER and both CMake
launcher variables and sets KATAGLYPHIS_NO_SCCACHE=1, which Initialize-BuildCacheEnvironment
and Get-SccacheStatsText honour. A consumer that wires sccache itself must honour the marker
too, including a preset’s COMPILER_CACHE=sccache (pass -DCOMPILER_CACHE=).
A Windows chain stops in seconds at [bk:publish-gate:bk-windows-…]#
Symptom. Right after its preflight, before the stage you expected, Build-Buildkit.ps1 fails
in a stage labelled publish-gate:<tag> with LEAK [Process] SCCACHE_WEBDAV_ENDPOINT=… in the
log and <tag> was not built by this run and failed the publish gate … Rebuild it.
Cause. The run inherits a parent image it did not build (its -Stages leaves out the stage
that produces it), and that image predates the 2026-09-23 fix, so its config ENV still carries the
endpoint. Every stage built on it would inherit it, up to the published image.
Fix. Put the producing stage in -Stages (after that fix: toolchain and everything after
it) and start a fresh driver process; never resume a run that was started before the fix:
windows-build-resources.md § An image this run did not build.
A declaration that masks its command’s exit status#
local x="$(cmd)" returns local’s status, not cmd’s. Under set -e the
failure is invisible and x silently holds "".
Live example, fixed 2026-09-01 — _gst_monorepo_install
(03-media/build/gstreamer/common/build-gstreamer-monorepo.sh):
local gst_stage="$(mktemp -d "/tmp/gst-stage.XXXXXX")"
/tmp is a tmpfs on every Dockerfile.media RUN, so a full tmpfs makes mktemp
fail. With gst_stage empty the whole staging design inverts:
line |
intended |
with an empty value |
|---|---|---|
|
stage into a temp tree |
|
|
is anything staged? |
|
|
as above |
|
|
drop the staging tree |
|
The sting: the only line reaching the build log is the same
WARNING: GStreamer cross-install had errors a healthy cross run prints, so the
broken run is indistinguishable in the log.
The gate. verify_masked_assignments.py (preflight slug masked-decls)
fails on any NEW local/export/declare/readonly declaration containing a
command substitution; the pre-existing sites (54 when frozen on 2026-09-01) are
listed in masked-assignments.allow, keyed by file+variable so a site does not re-flag
when something above it moves. Fixing one means deleting its line.
Two reasons shellcheck alone was not enough: SC2155 does not fire on
local x="${y:-$(cmd)}" (verified), and lint-shell.sh gates at -S error,
where a warning can never fail the build.
The fix shape:
local x
x="$(cmd)" || return 1
RV1-FREETYPE: riscv64 OpenCV freetype/harfbuzz#
RV1-FREETYPE — FIXED (2026-08-24); the coming rebuild is the
final validator. History (2026-08-23 investigation, still true):
riscv64 had no TARGET harfbuzz dev surface at configure time —
pass-2 (FROM gstreamer, libfreetype-dev pre-satisfied) got only
the RUNTIME libharfbuzz0b — so ocv_check_modules(HARFBUZZ
harfbuzz) resolved a HOST harfbuzz (find_library fall-through
under CMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH) → “file in wrong
format” at link. The ports dev package stays banned
(libharfbuzz-dev:riscv64 → Depends: libglib2.0-dev = RV1-GST-PC
poison), so install-deps.sh now stages a PIC STATIC target
harfbuzz (HB_HAVE_FREETYPE=ON, hb-ft glue included) at
/usr/-lharfbuzz -lfreetype, so HARFBUZZ_LIBRARIES becomes
[libharfbuzz.a, target libfreetype.so] and the module link
(
our pkgconfig dir is prepended to PKG_CONFIG_PATH, which outranks PKG_CONFIG_LIBDIR — pass-2 puts /opt/gstreamer first in PKG_CONFIG_PATH and its meson-subproject harfbuzz may export a competing harfbuzz.pc; ours must win;
the pkgcfg_lib_* cache vars FindPkgConfig/ocv_check_modules resolve libraries through are pre-seeded with absolute TARGET paths, so no find_library ever runs, let alone falls through to a host lib (OCV-FF1’s determinism discipline, pinned by file path instead of -L ordering). Static harfbuzz keeps the runtime surface: the only new NEEDED is libfreetype.so.6, which validate-media-runtime’s so-package-map already resolves to libfreetype6 (and the gstreamer stack pulls it in on riscv64 today anyway). If install-deps could NOT stage the static harfbuzz, keep the module hard-OFF rather than let detection wander back to host libs — absence then still surfaces as the wheel smoke’s riscv64-only opencv-freetype warning, and after a green rebuild that warning’s “expected on riscv64” status is STALE (parity follow-up for the orchestrator).
GenAI extensions clone fails while the root source is available#
The 82c0d0b5 NVIDIA run on 2026-11-19 passed ONNX, FFmpeg, OpenCV and
Hailo, then CMake failed to clone microsoft/onnxruntime-extensions with
terminal prompts disabled. Host GitHub reads returned 404 too. Recovering
the GenAI root alone does not recover this nested FetchContent dependency.
The builder now fetches the exact extensions commit from upstream deps.txt,
tries the original repository first and uses the same commit in CodeLinaro
only after clone failure. Its explicit FetchContent source keeps the normal
extensions build. Wrong or ambiguous pins and failed recursive fetches fail.
See the source contract.
A half-fetched dependency that every retry inherits#
ONNX Runtime CPU build failed after 3 attempts on media-riscv64, 2026-09-02,
with the same CMake error each time:
add_subdirectory: The source directory
.../_deps/dawn-src/third_party/spirv-headers/src
does not contain a CMakeLists.txt file.
Dawn’s dependency fetch was interrupted, leaving the directory present but
EMPTY. _deps is in the image layer, not a cache mount, so a fresh run recovers
— but the three retries inside one RUN all inherited the ruin, so the retry
bought nothing. amd64 and arm64 passed the identical build; only the riscv64 run
hit the transient failure.
30-build-native.sh now drops any *-src/third_party/*/src that carries no
CMakeLists.txt before each attempt. A retry that inherits the state that broke
the previous attempt is not a retry.
GitLab is currently unable to handle this request due to load clones Eigen#
The Windows media-litert and media-core hailo branches failed on 2026-10-29 with
Failed to clone repository after Had to git clone more than once: 3 times.
Eigen lives only on GitLab, and GitLab shed load for minutes. CMake’s
ExternalProject retries three times within a second.
Build-LitertFromSource.ps1 now clones the commit tflite’s eigen.cmake pins
through Invoke-GitClone -MaxAttempts 8 (about three minutes of backoff) and
passes FETCHCONTENT_SOURCE_DIR_EIGEN to both configure passes. HailoRT’s
externals take the same budget. A longer outage still fails the build; resume
the chain from the media stage.
RVV changed what the optimizer can prove#
media-riscv64 failed on 2026-09-02, after the RVA23 switch, in vvdec:
thirdparty/simde/x86/ssse3.h:370: error: 'r_.simde__m128i_private::i8'
may be used uninitialized [-Werror=maybe-uninitialized] → vvdec_x86_simd
SIMDe emulates x86 intrinsics on non-x86, so a riscv64 cross build really does
compile that header. -Wmaybe-uninitialized is optimization-dependent, and
enabling vector plus Zba/Zbb changes what the optimizer can prove — a diagnostic
that did not fire before the ISA change now does, in upstream third-party code.
install-vvdec.sh waives it exactly where the same file already waives
-Wno-error=unused-but-set-variable. The waiver is scoped to vvdec, not global:
this is a false-positive class in one dependency, not a reason to stop treating
warnings as errors elsewhere.
Expect more of this shape as the vector baseline lands. Waive per component, never tree-wide, and record why here.
webrtcbin’s action signals never reply; ffi_prep_cif returns FFI_BAD_TYPEDEF#
create-offer, get-stats and create-data-channel on webrtcbin do nothing,
not even the closed error a webrtcbin in NULL state must answer with. Signals
without arguments still work. GLib’s generic marshaller runs every signal with
arguments through libffi, and ffi-7.dll exported its ffi_type_* descriptors
as zeros: ffi_type_sint32 size=0 align=0 type=0, so ffi_prep_cif failed and
g_cclosure_marshal_generic returned without calling the handler. The build log
shows the cause as 60 lld-link: warning: duplicate symbol: ffi_type_* lines at
Linking target subprojects/libffi/src/ffi-7.dll, a warning only because of
/FORCE:MULTIPLE. Mechanism and fix:
windows-builds.md § libffi’s type exports.
Assert-LibffiTypeExport now fails the build on it.
dtlsconnection ... unexpected eof while reading at the first DTLS step#
Signalling and ICE complete, then both peers fail with ssl error: ...:error:0A000126:SSL routines::unexpected eof while reading:ssl\record\rec_layer_d1.c:254
from gst_dtls_enc_change_state, and the consumer reports Connection state failed. OpenSSL 4.0 takes the empty read GStreamer 1.29.2’s DTLS BIO returns as
end of file:
windows-builds.md § DTLS with OpenSSL 4.
If it comes back after a GSTREAMER_VERSION bump, check that the build log still
says the patch applied or that upstream carries it.
static_assert failed: 'unexpected size' from std::find under clang-cl#
Symptom. A clang-cl build stops in the STL’s <xutility> at _Find_vectorized with
unexpected size, at a find, count, remove, remove_copy or replace (or its
ranges:: form) over a struct with a defaulted operator==. BeschleunigerBallett run
36052511207 stopped there on a 24-byte key.
Cause. The image’s MSVC STL 14.51 (19.51.36231) takes its vectorized path for every type clang calls trivially equality-comparable, then asserts the type is 1, 2, 4 or 8 bytes (microsoft/STL#6294). Fixed upstream by microsoft/STL#6298 (merged 2026-10-18), not yet in a VC Tools release the image ships.
Fix. find_if with a predicate, which is a plain loop; or a hand-written operator==,
which is not trivially comparable. Drop the workaround once the image’s VC Tools carry the
fix.
Native crash fixture: NMake does not support platform x64#
CrashDump.Native.Tests.ps1 uses -A x64 for its real MSVC fixture. If CMake
selects NMake on a host without Visual Studio, configuration fails before the
fixture is compiled. Check the installed compiler and selected CMake generator;
run the full suite in the required host environment.
Retain the failed local result until the real fixture passes there or in CI.
A Windows test exits 0xC0000005 with no gtest line and no dump#
Symptom. A GoogleTest executable on a Windows runner ends with exit code -1073741819
(0xC0000005, access violation) and prints no [ FAILED ] line; a rerun often passes.
BeschleunigerBallett’s arm64 lavapipe suites showed it from 2026-10-16 (#97), and a WER
LocalDumps key set in the job left no dump.
Cause. gtest catches an SEH exception on the main thread and reports it as a failure, so
a raw exit code means another thread crashed: a worker of the engine or of the Vulkan
driver. GitHub’s runners queue WER reports (ForceQueue=1) and set AeDebug to -, so
LocalDumps writes nothing there.
Fix. Link the hub’s handler with kataglyphis_add_crash_dump(<exe>)
(cmake/README.md) and set KATAGLYPHIS_CRASH_DUMP_DIR for
the test step. The crashing process then prints the exception, the faulting thread’s frames
as module+0xRVA and the path of its minidump on stderr, and still exits with the original
code. Upload the dump with the executable’s PDB; llvm-symbolizer --obj=<exe> 0x<base+RVA>
names a frame in that executable. On arm64 lavapipe, suspect LP_NATIVE_VECTOR_WIDTH=256 first: a
frame with no module is llvmpipe’s JIT code (BACKLOG.md CON44). The Windows lavapipe (26.3.0 on)
no longer sets it; the Linux image still does while its Mesa predates 26.3.
A regex patch inserts the same header after every include#
Symptom. GStreamer’s OpenCV 5 port adds repeated geometry.hpp or other
required headers when an upstream file already has several OpenCV includes.
Cause. The fourth argument of static [regex]::Replace(text, pattern, replacement, 1) is regex options, not a replacement count. The value 1 enables
case-insensitive matching and replaces every match.
Fix. ConvertTo-GstOpenCv5Text constructs a case-insensitive regex instance
and calls its count-limited Replace overload. It inserts each required header
once after the first OpenCV include, retains existing headers and remains
idempotent. SourceBuild.PatchQuiet.Tests.ps1 covers multi-include input and a
replace-all mutant; it does not compile GStreamer or OpenCV.
clang-format rewrite reports an unset clangFormatSource#
When clang-format is absent from PATH and both common LLVM installation paths,
older formatting helpers could report an uninitialized clangFormatSource
variable under strict mode. Shared executable lookup now reports that
clang-format is missing. Install the formatter or expose its executable on PATH;
mandatory checks still fail, while advisory checks retain their skip diagnostic.
$cdb is unset during a manual LSM handle scan#
Find-LsmEventHolder.ps1 -LsmPid ... -Handle ... could fail under StrictMode
when optional debugger detail read $cdb, initialized only by automatic discovery.
Initialize that optional state before the branch. Manual mode now scans the supplied
process/handle pair without requiring cdb; automatic discovery retains its debugger
steps. The regression exercises the actual branches without attaching to a process.
A smoke check fails and names no finding#
[FAIL] ORT TensorRT EP finds every TensorRT DLL it loads in TENSORRT_ROOT\current\bin : missing from the shipped TensorRT runtime: ,
with nothing after the colon, on a complete TensorRT runtime. An if/else that yields no output assigns
PowerShell’s empty result; bound to Assert-Test -Finding, that becomes $null, and @($null).Count is 1.
Assert-Test treats a $null finding list as empty, and a finding list built from if/else is wrapped in
@() around the whole statement. Smoke.FindingVerdict.Tests.ps1 and lib.smoke-finding-empty-if-result hold it.
the GIL was re-enabled, first by iree._runtime_libs._runtime on an ARM64 device#
The ARM64 bundle’s free-threaded step loads every cp3XYt twin with the GIL off. IREE’s cross twin
configured nanobind without free-threading. CMake 4.4.5’s FindPython queries no interpreter on the cross
lane and sets Python_SOABI empty, which also hides a -DPython_SOABI cache value, so nanobind’s
NB_ABI had no trailing t. The twin now passes SKBUILD_SOABI, which nanobind reads first, and fails
its configure without a nanobind-static-*-ft library
(windows-builds.md has the measurements).
Failed building wheel for iree-base-runtime: gcc: fatal error: no input files on a Linux cross twin#
The arm64 or riscv64 app wheelhouse links _runtime.cpython-315t-<triple>.so with no inputs, after the CMake
install copied _runtime.cpython-315-<triple>.so. It is the same CMake 4.4.5 cause as the ARM64 entry above: nanobind
kept the GIL pass’s cached NB_SUFFIX. _iree_free_threaded_rebuild drops it, passes SKBUILD_SOABI and fails its
rebuild when build.ninja builds no nanobind-static-*-ft library.
qemu: uncaught target signal 6 (Aborted) in rustup on the arm64 package stage#
The package stage reinstalls Rust natively for arm64 and riscv64 under qemu-user. rustup 1.29 aborts during a
download, in rustup-init or in rustup component add rustfmt, and three retries can all abort. Its default TLS
backend does it: in the arm64 wrapper, the rustls backend aborted 3 of 6 component installs and the curl backend
none of 18. ensure_native_rust_toolchain runs the installer with RUSTUP_USE_CURL=1. rustup warns that the curl
backend is deprecated; it still works in 1.29.3.
no unique successful free-threaded WebGPU factory proof (riscv64) on a proved factory#
The riscv64 runtime smoke passes the native and GIL WebGPU factories, then fails the free-threaded one. Under
qemu-riscv64, ORT writes Unknown CPU vendor to stderr before the proof. The probe captured stderr with stdout, so
the warning headed the FTS WEBGPU row, and the check wants the row to start with WEBGPU-FACTORY OK:. The probe
now reads the proof from stdout alone and shows stderr only when the proof fails.
content digest sha256:…: not found when the runtime lane pushes a wrapper#
The wrapper built and passed its smoke, and the push fails in 2 s right after nerdctl image convert --zstd --oci.
nerdctl 2.4’s in-place convert, with the source tag as the target, loses the source manifest when no other image
holds its content. The wrapper is built from an OCI layout, so nothing does, and the tag is left on a missing blob.
_runtime_zstd_convert converts to <tag>-zstd, tags that back and removes it. Rebuild the wrapper; the broken
local tag cannot be pushed.
torch owns no compiled module, so its wheel is no binary build on the riscv64 torch twin#
The media stage’s store check then says the twin is missing, and the twin pass logs torch wheel lacks torch/_C*.so.
scikit-build-core sets Python_FIND_ABI=ANY;ANY;ANY;ON for a 3.Xt interpreter. CMake 4.4.5’s cross FindPython
fails with any set FIND_ABI. torch then reports missing components: Development.Module NumPy and turns
BUILD_PYTHON off, so the wheel has no _C. The twin unsets both FIND_ABI values and fails without
BUILD_PYTHON:BOOL=ON in the CMake cache.
riscv64 OpenCV: jpeglib.h: fatal error: jconfig.h: No such file or directory in 3rdparty/libtiff#
OpenCV reports Could NOT find TIFF and builds its bundled libtiff, which reads the host’s jpeglib.h. The
cause is the best-effort riscv64 deps install: after a libtiff security update, apt 3’s solver printed
libtiff-dev:riscv64 : Depends: libtiff6:riscv64 (= …) but it is not going to be installed. Named together
with libtiff6, which also moves the amd64 copy in step, it resolves, and so does --solver internal.
opencv/install-deps.sh names libtiff6 for riscv64.
onnxinference exits 0xC0000005 on an ARM64 device#
Program "gst-launch-1.0.exe" ended with non-zero exit code: -1073741819, 0.1 s into the bundle
gate’s onnxinference step, while the DirectML MatMul step runs the same chain ORT from Python. A
native exit used to throw before the gate kept the output. Assert-GstOnnxInferenceRun now
keeps it and, on a failure, reruns the frames without onnxinference, the full pipeline with
ORC_CODE=backup and with GST_DEBUG=onnx*:6, so the next device run names the failing
element. The cause is open until that run.
QNN configure loses a completed CUDA build to a transient protoc download#
Symptom. NVIDIA ARM64 media run 20261109-002505-d3b3c0b7 completed the preceding CUDA
compilation, then QNN --update failed downloading protoc-21.12-linux-x86_64.zip with GitHub
HTTP 504. The QAIRT zip had passed its SHA256 check. The shared GPU RUN failed, so this produced
no final ARM64 media image, runtime wrapper or acceptance receipt.
Fix. qnnep_configure uses the existing retry helper for three attempts with ten-second delays.
It preserves every attempt in the tee log and returns the last raw configure status after exhaustion;
headers and compilation remain unreachable on failure. The compile command runs once. The fork’s
dependency hashes remain authoritative; an unrelated host protoc cannot replace its pinned version.
test-qnn-plugin-ep.sh and eight mutations prove the command boundaries, logs, limits and failures.
These fixtures execute fake tools, with no CMake, download, image rebuild or device inference.
The canonical failed-build cache salvage runs before a new chain; its completion does not repair
the failed RUN. See the QNN build for its fresh-worktree requirement.
The wrapper requires an in-tree GPU provider after the plugin move#
Symptom. ONNX Runtime does NOT have MIGraphXExecutionProvider! in the Torch wrapper after the
ROCm media and Android stages pass, or a TensorRT availability assertion names TensorrtExecutionProvider.
Seen in ROCm run 20261108-161535-562db2ce; the concurrent package smoke passed, but no new wrapper existed.
Cause. verify_project_environment still checked the removed in-tree providers. The AMD venv now uses
the CPU ORT wheel and a separate plugin. Registering that plugin is not a GPU-less replacement: its factory
calls hipGetDeviceCount and fails with HIP error 100 when the build container has no GPU.
Fix. verify_ort_plugin_library loads the selected plugin with ctypes.CDLL and requires
CreateEpFactories and ReleaseEpFactory; the Torch HIP/CUDA checks remain. The fixture suite
test-app-venv-plugin-eps.sh rejects missing or invalid modules, missing exports and invalid roots, and
exercises both selected call sites with no in-tree provider. This proves loading and exports, not
registration or inference. After the active chain finishes, rerun ROCm from runtime; manifest-only
promotion cannot repair a run that produced no new wrapper.
A plugin module with both exports fails its export check#
Symptom. ERROR: …/libonnxruntime_ep_tensorrt.so does not export CreateEpFactories (and
ReleaseEpFactory) from plugin_ep_exports_ok or the verify stage, while readelf --dyn-syms
on the same file lists both. The MIGraphX and QNN plugins pass the same check.
Cause. readelf … | grep -qE ' CreateEpFactories…$' under set -o pipefail. grep -q exits at
its first match; readelf is still writing the rest of ~4000 dynamic symbols into a closed pipe,
dies of SIGPIPE (141), and pipefail makes the pipeline fail. The small plugins have a few hundred
symbols, so readelf finishes before grep closes the pipe and the trap never fires (shell safety
class 2, the printf | grep -q form).
Fix. plugin_ep_module_has_export (plugin-ep-exports.sh, the one probe the plugin builds and the verify stage share) reads the whole table:
grep -E … >/dev/null, never grep -q. The suites hold it with a readelf stand-in that names the
first export early and then writes 200 000 lines; the recipes onnx-ep-amdgpu.exports-grep-reads-whole-table
and onnx-ep-tensorrt.verify-exports-grep-reads-whole-table prove the stand-in bites.
A ROCm Python bundle stops on capi/libmigraphx-ep.so: libonnxruntime.so.1#
Symptom. The == ELF closure step of python-app-bundle.sh in :latest-rocm ends with
ERROR: 1 library reference(s) resolve neither inside the bundle nor to the system allowlist:
and runtime/lib/python3.15/site-packages/onnxruntime/capi/libmigraphx-ep.so: libonnxruntime.so.1.
Or G6 reports UNRESOLVED … libmigraphx-ep.so -- no libonnxruntime.so.1 on its ld.so search path.
Cause. AMD’s plugin names libonnxruntime.so.1 in DT_NEEDED, but the wheel’s core sits in
capi under its full version. The module is --protected (byte for byte the image’s), so the
closure may not patch an $ORIGIN RUNPATH into it, and its own RUNPATH names image paths, which are
dead on the target. Nothing in the bundle answered the name.
Fix. The builder copies the chain’s CPU core to capi/libonnxruntime.so.1, checks its sha256, and
states capi as the launchers’ library path to the closure, bundle-loader.sh and G6
(python-app-bundles.md). Never patch the module, never
--allow-unresolved the core, never exempt the census finding. A hub pin older than that fix
keeps failing here; bump it.
TVM imports but pip reports apache-tvm-ffi 0.1.dev1 below its requirement#
A tagless vendored checkout can make setuptools-scm label the pinned release as a development version. On Windows, use the shared FFI source-version selector and the distribution-specific SCM override for both the GIL install and twin build. Do not substitute a PyPI binary or merely suppress the warning. Require the installed/archive metadata gate as well as the existing imports. Details and proof limits.
GCC warns in a SYSTEM header anyway: -Wstringop-overflow at the LTO link#
Symptom. A third-party library added as SYSTEM still shows warnings from its headers, but only in an LTO
build: BeschleunigerBallett’s profiling job logged 8 spdlog/fmt/bundled/format.h:1209: -Wstringop-overflow=
after spdlog became a SYSTEM subdirectory, while its GCC test job logged none (2026-11-23).
Cause. SYSTEM silences the front end’s diagnostics. -Wstringop-overflow and its kin come from GCC’s middle
end, which at an LTO link runs again over the inlined code with no memory of which header it came from.
Fix. Build that library with INTERPROCEDURAL_OPTIMIZATION OFF (BeschleunigerBallett does for spdlog), or
count those warnings as the library’s in a warning ratchet; do not drop SYSTEM.
The docs lock check asks for setuptools#
Symptom. docs/uv.lock is missing or stale, right after Failed to build sphinx-kataglyphis-theme,
No solution found when resolving: setuptools>=83.0.0 and the network was disabled.
Cause. No setuptools bound is at fault, and the image’s own setuptools already meets it. uv reads a
dynamic-version theme’s dependencies from pyproject.toml and builds nothing, provided the lock records no
version. A lock that disagrees (version = "0.1.0" left from a static-version pin) makes uv build the theme to
find out, and an isolated build offline has no setuptools to download. check_docs_lock names that disagreement.
Fix. uv lock --project docs and commit the one-line change with the gitlink that caused it. Do not add
--no-build-isolation or lower the theme’s bound: the check would still read the lock as stale.
Consumer-hook empty-directory cases inherit a parent repository#
test-consumer-hooks.sh can fail its three final “not a git checkout” assertions
when TMPDIR belongs to a real checkout. Git walks from the empty fixture to that
ancestor and runs the gates instead of refusing the missing repository.
The suite now initializes an owned parent repository and exports a discovery ceiling using Git’s canonical root spelling. Child consumer repositories remain discoverable; empty-directory cases stop before their parent. A valid mutation removes the export and must break those existing assertions on both platforms. The image-runner fixture uses that same native spelling before its path crosses Git’s configuration boundary; Windows must still match the complete diagnostic. These tests grade hook wiring with stubbed downloaded linters, not the linters themselves or a complete preflight result.
QNN query receipts differ between filesystems#
test-qnn-runtime-query.sh can fail its original 120-case receipt comparison
while the other QNN assertions pass. In the 2026-11-20 rootless preflight,
40 cases selected target/lib instead of the recorded target/deep after an
injected query failure. Both contained matching files, and the fixture inherited
the filesystem’s unsorted enumeration before the production fallback took its
first match.
The fixture captures the real find output in a private per-process file and
sorts that output under LC_ALL=C, preserving the tool’s raw status before the
configured fault is returned. Its argument trace and all original receipt bytes
remain checked. The suite also forces reverse tool output; a valid mutation
that removes the fixture sort must break those same receipts. These synthetic
checks cover query, transport and status policies. Real SDK staging, provider
loading and device inference require their own evidence.
QNN Community test fails with a spaced PATH#
The last test-qnn-community-zip.sh case reports empty output, no rc=0 and zero fake downloads,
while the same unchanged suite passes with a Linux-only PATH. Its old _run word-split a string
of environment assignments; a PATH entry such as Program Files became another env argument
before Bash could run the resolver. The fixture now supplies per-call bindings as individually
quoted environment values and tests both plain and spaced PATH/cache/extract directories.
All original selection cases remain covered; three valid unquoting mutations reject the broken
transport on the deliberately spaced case. Fake download/extraction tests do not grade real SDK
downloads, installation or inference. A diagnostic clean-PATH pass does not replace a failed full
preflight result.
IREE AVX512 ukernel says it was compiled without avx512f#
Symptom. conv_nchwc_x86_64_avx512_base.c fails on _mm512_loadu_ps, _mm512_fmadd_ps or _mm512_storeu_ps. Its command contains both /clang:-march=x86-64-v3 and /arch:AVX512.
Cause. clang-cl forwards the explicit baseline -march after interpreting its MSVC-style architecture option. Moving the arguments does not restore the missing AVX512 features.
Fix. Set-IreeX86KernelCmakeFlags adds the five explicit clang-cl AVX512-base feature flags to upstream’s dispatched target options before configuration. GNU/MSVC options and all other targets remain unchanged. Missing, changed or partially patched input fails; repeated patching is byte-identical. Keep the baseline and the kernels enabled. The small compiler reproduction does not prove the shipped Windows compiler, complete IREE, runtime dispatch or GPU execution; those still need their actual builds and acceptance checks.