You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "duniverse/mirage-logs/src/dune", line 4, characters 50-55:
4 | (libraries logs mirage-clock lwt mirage-profile ptime))
^^^^^
Error: Library "ptime" not found.
-> required by library "mirage-logs" in
_build/default/duniverse/mirage-logs/src
-> required by executable main in dune.build:12
-> required by _build/default/main.exe
-> required by _build/default/hello
-> required by _build/default/dist/hello
-> required by alias dist/all
-> required by alias dist/default
The previous commit of opam-repository still works:
I am not sure yet, where the issue lies (here, with opam-nix or somewhere else), but I am still able to build the example unikernel without nix. (mirage configure -t unix followed by make)
As a work-around, adding package "ptime" ~max:"1.1.0" to the packages in the config.ml allows the build with nix to work again.
The text was updated successfully, but these errors were encountered:
Building outside the nix derivation with make uses the opam monorepo solver which filters out non-dune dependent packages so that only those with overlays are returned. We're using opam's default solver which doesn't filter out non-dune dependent packages, hence this problem. This issue is tracked here: #3
I also tried to build a repository for using the solver on that had the non-dune dependent packages filtered out, but that was ridiculously slow: tweag/opam-nix#18 (comment).
Until #3 is resolved, manually specifying the dependency version seems like a reasonable workaround.
Updating the flake inputs of the example repo causes it to fail to build
since the release of
ptime.1.1.0
, even when ensuring ocaml 4 is used.This invocation fails to build (my fork just updates the
flake.lock
and addspackage "ocaml" ~max:"5.0.0"
to thepackages
in theconfig.ml
):With the following error:
The previous commit of
opam-repository
still works:The first bad commit is ocaml/opam-repository@49c3ad3, which adds
ptime.1.1.0
I am not sure yet, where the issue lies (here, with opam-nix or somewhere else), but I am still able to build the example unikernel without nix. (
mirage configure -t unix
followed bymake
)As a work-around, adding
package "ptime" ~max:"1.1.0"
to thepackages
in theconfig.ml
allows the build with nix to work again.The text was updated successfully, but these errors were encountered: