Skip to content

#use_output "dune ocaml top" fails in a project where dune utop works #8626

Open
@Khady

Description

@Khady

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions