While compiling a project with dune
that uses the fmt and logs packages , I ended up getting this weird error
File "_none_", line 1:
Error: No implementations provided for the following modules:
Fmt_cli referenced from bin/.main.eobjs/native/dune__exe__Main.cmx
Logs_fmt referenced from bin/.main.eobjs/native/dune__exe__Main.cmx
Fmt_tty referenced from bin/.main.eobjs/native/dune__exe__Main.cmx
Logs_cli referenced from bin/.main.eobjs/native/dune__exe__Main.cmx
This clearly indicates that the linker is missing the object file containing those modules.
Problem, I checked, those libraries are installed with opam
in the current switch, and my dune file contains
(libraries ... fmt logs))