Skip to content

Windows: the build graph cannot compile the bootstrap LLVM bridge from a plain shell (import module not found: rt.rt_core); the same compile by hand succeeds #2637

Closed

Description

@ehartford

In the win10 tree at main c88f3ee, driven by its pinned seed (nightly-20261024-local-4-0cca9aee2744, matching seed.lock), the build graph cannot compile the bootstrap LLVM bridge from a plain shell, so :no-host-toolchain (and anything that needs bootstrap-llvm-link-metadata) stops at bootstrap. The same compile run by hand with the same seed succeeds.

Repro (win10, plain ssh shell, no LLVM_PREFIX set)

> cd C:\Users\Eric\wtr
> src\main.exe version
with nightly-20261024-local-4-0cca9aee2744
> src\main.exe build :bootstrap-llvm-bridge-object
[cache] bootstrap-llvm-bridge-object: build store entry d63a525b1d8c does not apply (made under another LLVM_PREFIX); running it
error: error: import module not found: 'rt.rt_core'
 --> C:/Users/Eric/wtr/src/compiler/LlvmBridge.w:10:1
error: import module not found: 'rt.platform'
 --> C:/Users/Eric/wtr/src/compiler/LlvmBridge.w:11:1
error: build.w target 'bootstrap-llvm-bridge-object' failed with exit code 1

> src\main.exe build src/compiler/LlvmBridge.w --emit-obj --no-prelude -O1 -o out/triage-bridge.o
(succeeds; the object is written)

> src\main.exe build :no-host-toolchain
… bootstrap-llvm-bridge-object and bootstrap-clang-bridge-object fail the same way …
error: build.w targets wait on one another: none of the remaining targets is ready (a dependency cycle)

The 2026-10-25 seed leg built this tree with LLVM_PREFIX set; the cache line shows the stored object came from that environment. The difference between the action's compile and the manual one (environment, runtime root, or argument form from with_object_target / comp_compile_args) is not yet located. Also note the trailing "dependency cycle" message is false (see #2452/#2484).

Expected: the bootstrap bridge builds from a plain shell as it does by hand, or the action says which input it is missing.

Found during the 2026-10-25 issue triage (#1915).

Activity

  1. added
    bug
    on Oct 25, 2026
  2. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, Windows x86_64 (win10, with.exe from main c88f3ee): reproduced; the runs are in the body.

    post-release: developer-only, and the seed leg's environment builds it; it blocks the Windows :no-host-toolchain evidence #1915 still needs.

  3. ehartford commented on Oct 28, 2026

    @ehartford
    ContributorAuthor

    Fixed on main in b434398 (stack #2783, #2784, #2785, #2787); each commit's message names the root cause and the evidence. The Windows battery's remaining reds are tracked separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreproduced

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions