tarides / ocaml-platform-installer

The best way for developers to write software in OCaml
ISC License
60 stars 8 forks source link

Wrong odoc binary #157

Open samoht opened 1 year ago

samoht commented 1 year ago

ocaml-platform is installing a broken odoc binary in my switch:

❯ dune build @doc
File "lib/.cmdliner_stdlib.objs/byte/_unknown_", line 1, characters 0-0:
ERROR: File "cmdliner_stdlib.cmti":
not an interface

The version of odoc is 2.2.0-ocaml5.0.0+platform

❯ ocaml-platform --version
0.8.0

It works if I install odoc.2.2.0 from sources with opam.

panglesd commented 1 year ago

Thanks for the report, that is strange. What is the output of odoc --version on a switch where odoc.2.2.0-ocaml5.0.0+platform is installed?

panglesd commented 1 year ago

Actually, the "not an interface" message is suggesting that the compiler that compiled the platform odoc package is different from the compiler in your switch, which is not supposed to be the case...

Are you in a switch with a custom compiler?

samoht commented 1 year ago

The version of odoc was 2.2.0 and it's just a normal 5.0.0 switch :-)