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
Follow steps at https://preview.dune.build/ to install dune and a build a hello world project. This builds an OCaml 5.2.1.
Run 'ocamllsp'. This downloads an ocamlformat and ocamllsp for 5.2.1, but it is a binary download for the musl toolchain (the one built by dune previously was using a GCC toolchain).
Run an editor (e.g. Helix, or probably any other editor), and observe the error message.
Version of ocaml (output of ocamlc --version)
4.14.0
(not relevant, because dune builds its own)
Operating system (distribution and version):
Additional information
I think this is because ocamllsp is a binary download built using the musl toolchain, and the hello world project uses a locally built OCaml compiler. Obviously interface hashes won't agree between the two, since it is a different compiler.
I assume ocamllsp would have to be built instead of downloaded as binary, since the musl version doesn't appear to be truly portable yet if it can only parse a musl based compiler.
Thanks for the report! I was hoping that using a different linker between ocamllsp and the code being analyzed wouldn't be an issue but I might be wrong. Can you share what linux distro/version you're using so I can try setting up a similar environment in docker to reproduce/investigate.
Expected Behavior
ocamllsp works
Actual Behavior
ocamllsp fails.
Reproduction
Specifications
dune
(output ofdune --version
):Version of
ocaml
(output ofocamlc --version
)4.14.0
(not relevant, because dune builds its own)
Operating system (distribution and version):
Additional information
I think this is because ocamllsp is a binary download built using the musl toolchain, and the hello world project uses a locally built OCaml compiler. Obviously interface hashes won't agree between the two, since it is a different compiler.
I assume ocamllsp would have to be built instead of downloaded as binary, since the musl version doesn't appear to be truly portable yet if it can only parse a musl based compiler.
dune
with the--verbose
flag):The text was updated successfully, but these errors were encountered: