Skip to content

build.w: a failed early target is reported as "a dependency cycle" #3024

Closed

Description

@ehartford

When a :dev build fails in an early object target (bootstrap-llvm-link-metadata, bootstrap-clang-bridge-object: a compile error in ClangBridge.w), the survey skips every dependent and the run ends with

error: build.w targets wait on one another: none of the remaining targets is ready (a dependency cycle)

There is no cycle: the remaining targets wait on a target that failed. Seen twice on 2026-11-03 (a fresh worktree whose first :dev lost bootstrap-llvm-link-metadata, and a ClangBridge.w edit that did not compile in the bridge unit). Both times the real error was 400 lines up and the summary sent the reader looking for a cycle. Expected: the summary names the failed target(s) that the rest waited on ("N target(s) failed: …; M skipped") and says "dependency cycle" only when every remaining target has all its dependencies succeeded and still none is ready.

Activity

  1. added 2 commits that reference this issue on Nov 7, 2026
  2. ehartford commented on Nov 7, 2026

    @ehartford
    ContributorAuthor

    Fixed in #3065 (baff8e4): when the remaining targets wait on one that failed, the survey's summary names the failed targets and the waiters; "dependency cycle" is the verdict only when nothing failed (src/main.w, the survey loop).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions