8000 A stale prebuilt stdlib is reported as a compiler bug, with a pre-filled bug report · Issue #751 · kexhq/kex · GitHub
[go: up one dir, main page]

Skip to content

A stale prebuilt stdlib is reported as a compiler bug, with a pre-filled bug report #751

Open

Description

@akoskovacs

When the prebuilt standard library is older than the stdlib sources (any checkout ahead of the last build, e.g. after git pull or switching branches), every command fails with:

Internal error: invalid prebuilt standard library: source digest mismatch — rebuild the stdlib artifacts
This is a bug in the Kex compiler, not in your program. Please report it, with what is filled in here:
  https://github.com/kexhq/kex/issues/new?labels=Bug&title=Internal%20error%3A%20invalid%20prebuilt…

This is a stale build, not a compiler bug, and the pre-filled report invites issues that cannot be acted on. It is easy to hit: one build one commit behind main produced it, and so did switching back to an older branch with a newer binary.

Expected: a plain diagnostic that says the toolchain's prebuilt stdlib does not match its sources and names the fix (cmake --build <build dir>, or reinstalling the toolchain via tey kex install), without the crash-report text. The check is preludeSourceHash in src/common/prelude_interfaces.hxx.

Seen on 0.4.0-rc.4 (0292db50), macOS arm64, OTP 29.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0