cmo
files have different digest on different platforms and ocaml 5.1.1 variant option
#12983
Labels
cmo
files have different digest on different platforms and ocaml 5.1.1 variant option
#12983
This issue comes from this Discuss post and encouraged by @dra27 .
We used to deliver students some reference implementation using compiled
cmo
files for years. They're built on one platform and can run on all platforms (macOS, Ubuntu, wsl2).We just found this approach doesn't work for OCaml 5.1.1. When utop loads those pre-compiled
cmo
files, it reports errors likeCorrupted compiled interface
(forcmi
) anddisagree over interface Stdlib
(forcmo
). It's related to they have computed different digest values for the standard library therefore never compatible anymore. Here are some of my results to see the digest:OCaml 5.1.1 on ubuntu on a real linux machine
OCaml 5.1.1 on ubuntu on windows wsl2
OCaml 5.1.1 (ocaml-option-afl.1,ocaml-option-flambda.1,ocaml-variants.5.1.0+options) on ubuntu on windows wsl2
OCaml 5.1.1 on (probably) macOS
The text was updated successfully, but these errors were encountered: