Here's a minimal test case:
(* myocamlbuild *)
let lib = Project.lib "test_lib"
let app = Project.app
let () = Project.basic1 ~project_name:"test" ~version:"dev" [lib; app]
(* app/app.ml *)
(* lib/mylib.ml *)
let foo = 5
Getting the following error:
ocamlbuild -use-ocamlfind -plugin-tag "package(solvuu-build)" app/test_app.byte
Finished, 0 targets (0 cached) in 00:00:00.
+ ocamlfind ocamlc -I . -o app/test_app.byte -package '' -linkpkg ./test_lib.cma app/app.ml
File "app/app.ml", line 1, characters 10-19:
Error: Unbound module Mylib
Command exited with code 2.
Compilation unsuccessful after building 3 targets (2 cached) in 00:00:00.
make: *** [_build/project.mk:4: _build/app/test_app.byte] Error 10
When using ~style:`Pack it works. It's also possibly to refer to Mylib from other packages when it is installed, just not internally.
Fix in a4c96cf. Thanks for reporting.