Skip to content

A path dependency standing in for a version dependency: import 'std' has CRC mismatch #1008

Open

Description

@Sunrisepeak

Summary

Building mcpp itself with mcpplibs.os stated as a path dependency, { path = "<checkout of os 0.4.8>" }, in mcpp.toml and in the three modules that depend on it fails:

In module imported at src/build/progress.cppm:37:1:
mcpp.ui.dots_screen: error: import 'std' has CRC mismatch

The same tree builds when the four pins name the version (mcpplibs.os = "0.4.8") and the index serves it from a local [indices] path. The toolchain is gcc 16.1.0 on x86_64-linux-gnu.

Measurements

Variation Result
bmi_cutoff = "ignore-locations" (default) CRC mismatch
MCPP_BMI_CUTOFF=exact CRC mismatch
MCPP_BUILD_CACHE=local (os compiled in the project, Compiling os v0.4.8 (../ok-impl/os)) CRC mismatch
gcm.cache/.../mcpp.ui.dots_screen.gcm removed before the build CRC mismatch; the BMI is written again
version pins, [indices] path builds
  • std.gcm is written again on the first build after the switch.
  • The dyndep of mcpp.build.progress.gcm names mcpp.ui.dots_screen.gcm, std.gcm and mcpplibs.os.fs.gcm.
  • The dyndep of mcpp.ui.dots_screen.gcm names std.gcm and its partitions.

Because the mismatch survives removing the BMI and bypassing the build cache, the two units appear to be compiled against two different std BMIs within one build. This points at the std module's identity when a path dependency stands in for a version one: where std's BMI is placed, or which flags it is built with.

Reproduce

  1. Check out mcpp main and mcpplibs/os at 0.4.8 next to it.
  2. Replace mcpplibs.os = "0.4.8" with mcpplibs.os = { path = "../os" } in mcpp.toml, modules/toolchain-model/mcpp.toml, modules/manifest/mcpp.toml and modules/invocation/mcpp.toml.
  3. Run mcpp build.

Activity

  1. speak-agent commented on Nov 27, 2026

    @speak-agent
    Member

    This was not measured in mcpp 2026.11.27.1: the reproduction was not run this round, so the cause is not established. The issue stays open.

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