You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A fresh worktree cannot build against an out-of-tree SDK named by LLVM_PREFIX #2353
Spec / doc reference:docs/spec/toolchain/with-release-runbook.md §"clean worktree" tells a fresh worktree to point LLVM_PREFIX at the main checkout's already-built SDK (export LLVM_PREFIX=/home/quixi/with/.deps/llvm-22.1.6-linux-x86_64). That recipe fails at e4861e1.
Repro (Linux x86_64, eric-5090):
git -C ~/with worktree add --detach ~/with-hostlibs e4861e1d
cd ~/with-hostlibs
LLVM_PREFIX=$HOME/with/.deps/llvm-22.1.6-linux-x86_64 WITH=<compiler at e4861e1d> with build :dev
Actual (two independent defects, same run):
error: action target 'linux-sysroot' failed during comptime evaluation: build/sdk.w:21:5:
linux-sysroot: the LLVM SDK at .deps/llvm-22.1.6-linux-x86_64 has no clang or ld.lld;
reached through run_linux_sysroot_action -> sdk_fail
error: action target 'sdk-build-tools-pack' failed during comptime evaluation: build/sdk.w:2701:21:
ToolFs path escapes project root in read_text: /home/eric/with/.deps/llvm-22.1.6-linux-x86_64/bin/cmake;
reached through run_sdk_build_tools_pack_action
linux-sysroot ignores LLVM_PREFIX.run_linux_sysroot_action (build/sdk.w:2243) takes compiler_default_llvm_prefix() unconditionally, while the compiler link and sdk-build-tools-pack (build/sdk.w:2692) read ctx.env_input("LLVM_PREFIX"). Two derivations of "which SDK this build uses", and they disagree. One function should own it and every target read it.
An out-of-tree LLVM_PREFIX is unreadable.sdk-build-tools-pack honors a named prefix outside the root (sdk_owned_text(named)) but reads it through ToolFs, which refuses any path outside the project root. So the path the runbook prescribes can never succeed. Either the SDK named by LLVM_PREFIX is a declared read scope for the targets that consume it, or the runbook (and every lane that sets an out-of-tree LLVM_PREFIX) is wrong. That decision belongs to the maintainer; the current state is a silent contradiction.
Expected: the runbook recipe builds, or LLVM_PREFIX outside the root is refused up front with one diagnostic that names the supported route.
Workaround used:with build :deps in the worktree (fetches the pinned SDK into its own .deps), then with build :dev. Remove the workaround from the hunt notes once fixed.
Triage 2026-10-25, with v0.15.3.0 (main a261b65): reproduced on Linux x86_64 (eric-5090, a fresh worktree at c88f3ee, driven by the pinned seed):
$ git -C ~/with worktree add --detach ~/triage2353 c88f3eef
$ cd ~/triage2353 && LLVM_PREFIX=~/with/.deps/llvm-22.1.6-linux-x86_64 WITH=~/with/src/main ~/with/src/main build :dev
error: linux-sysroot: the LLVM SDK at .deps/llvm-22.1.6-linux-x86_64 has no clang or ld.lld
error: action target 'sdk-build-tools-pack' failed during comptime evaluation: …/build/sdk.w:2714:21: ToolFs path escapes project root in read_text: /home/eric/with/.deps/llvm-22.1.6-linux-x86_64/bin/cmake
error: build.w targets wait on one another: none of the remaining targets is ready (a dependency cycle)
rc=1
The release runbook still teaches this recipe (docs/spec/toolchain/with-release-runbook.md:392: export LLVM_PREFIX=/home/quixi/with/.deps/llvm-22.1.6-linux-x86_64).
pre-release: the release runbook's own recipe fails; the fix is to honor LLVM_PREFIX or to document the .deps symlink recipe.
Fixed on main by 2396bc9 (PR #2657, stack #2658; battery green on the stack top 48c1c72). The commit message names the root-cause line and the regression test.
Activity
ehartford commentedon Oct 25, 2026
Triage 2026-10-25,
with v0.15.3.0(main a261b65): reproduced on Linux x86_64 (eric-5090, a fresh worktree at c88f3ee, driven by the pinned seed):The release runbook still teaches this recipe (
docs/spec/toolchain/with-release-runbook.md:392:export LLVM_PREFIX=/home/quixi/with/.deps/llvm-22.1.6-linux-x86_64).pre-release: the release runbook's own recipe fails; the fix is to honor
LLVM_PREFIXor to document the.depssymlink recipe.build: one function owns the SDK a build's actions read, and an LLVM_…
ehartford commentedon Oct 25, 2026
Fixed on main by 2396bc9 (PR #2657, stack #2658; battery green on the stack top 48c1c72). The commit message names the root-cause line and the regression test.