Hi!
This error appeared through an issue I got here: Installation problems · Issue #401 · formalsec/smtml · GitHub .
Running #require “alt-ergo-lib”
(a library that depends on dune-build-info
) in utop
raises the following error:
utop # #require "alt-ergo-lib";;
Error: Reference to undefined compilation unit `Build_info__Build_info_data'
Hint: This means that the interface of a module is loaded, but its implementation is not.
Did you mean to load a compiled implementation of the module
using #load or by passing it as an argument to the toplevel?
However, if I run the same #require “alt-ergo-lib”
inside dune utop
, it succeeds.
This seems somewhat similar to this thread `Reference to undefined compilation unit` in utop , but dune-build-info
doesn’t look like a virtual library to me: dune/otherlibs/dune-build-info/src/dune at main · ocaml/dune · GitHub .
Any idea what might be happening here?