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 path dependency standing in for a version dependency: import 'std' has CRC mismatch #1008
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
Check out mcpp main and mcpplibs/os at 0.4.8 next to it.
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.
Activity
speak-agent commentedon Nov 27, 2026
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.