-
Notifications
You must be signed in to change notification settings - Fork 470
Unexpected find result concerning included module #6153
Copy link
Copy link
Closed
ocaml/opam-repository
#22498Milestone
Description
Expected Behavior
Dune should build the project or tell me what's wrong.
Actual Behavior
$ dune build
Internal error, please report upstream including the contents of _build/log.
Description:
("Unexpected find result", { found = Not_found; lib.name = "lib_core" })
Raised at Stdune__code_error.raise in file "otherlibs/stdune/code_error.ml",
line 11, characters 30-62
Called from Fiber__scheduler.exec in file "src/fiber/scheduler.ml", line 69,
characters 8-11
-> required by ("<unnamed>", ())
-> required by ("<unnamed>", ())
-> required by ("<unnamed>", ())
-> required by ("load-dir", In_build_dir "default/bin")
-> required by ("<unnamed>", ())
-> required by ("build-alias", { dir = "default"; name = "default" })
-> required by ("toplevel", ())
I must not crash. Uncertainty is the mind-killer. Exceptions are the
little-death that brings total obliteration. I will fully express my cases.
Execution will pass over me and through me. And when it has gone past, I
will unwind the stack along its path. Where the cases are handled there will
be nothing. Only I will remain.
Reproduction
I manage to come up with a minimal example:
- download and unzip dune-bug.zip
cd dune-bugdune build
There is a package pack with
- a private module
lib_core - a package
packcontaining - a library
lib_depthat openlib_core - a top-level library
LIBwith a public name, openinglib_depand includinglib_core
And, in another directory bin, a program depending on this package pack.
❗ The problem occurs when there is a dune-project file in the bin directory.
Specifications
- Version of
dune(output ofdune --version): 3.3.1 - Version of
ocaml(output ofocamlc --version) 5.0.0~alpha1 - Operating system (distribution and version): Manjaro
Additional information
- Link to gist with verbose output (run
dunewith the--verboseflag): output ofdune build --verbose
Reactions are currently unavailable