In ahrefs' codebase we can't use #use_output "dune ocaml top" in utop because it fails with an error. This is surprising as dune utop works flawlessly (if we don't consider the long build time)
Expected Behavior
#use_output "dune ocaml top" should work in all projects where dune utop is working.
Actual Behavior
utop # #use_output "dune ocaml top";;
File "(command-output)", line 1:
Error: Reference to undefined global `Dune_site__Dune_site_data'
^CFatal error: exception Stdlib.Sys.Break
^CFatal error: exception Stdlib.Sys.Break
Reproduction
Unfortunately I don't have an open source project to reproduce the error currently.
Specifications
- Version of
dune (output of dune --version): e1f3e19
- Version of
ocaml (output of ocamlc --version): 4.14.0
- Operating system (distribution and version): debian 11