aantron/dream

Quick start script broken by ocamlfind 1.9.6

Closed this issue · 2 comments

This issue is for tracking a failure upstream in the recent release of ocamlfind 1.9.6. See ocaml/opam-repository#23501. If there isn't a ready fix for that, we can work around it on the Dream side by adding a constraint on ocamlfind in the examples' esy.json.

For search purposes:

ocamlfind 1.9.6 is failing to build in Dream's quick start script on Ubuntu with

   Cannot find file /home/runner/.esy/3__________________________________________________________________/s/opam__s__ocamlfind-opam__c__1.9.6-fa4fed9f/lib/findlib/findlib.cma.
    Cannot find file /home/runner/.esy/3__________________________________________________________________/s/opam__s__ocamlfind-opam__c__1.9.6-fa4fed9f/lib/findlib/findlib_top.cma.
    File "/home/runner/.esy/3__________________________________________________________________/i/ocaml-4.12.1001-d0588c96/lib/ocaml/topfind", line 53, characters 0-22:
    53 | Topfind.add_predicates [ pred; "toploop" ];
         ^^^^^^^^^^^^^^^^^^^^^^
    Error: Unbound module Topfind
    Hint: Did you mean Topdirs?
    Unknown directive `require'.
    error: command failed: 'ocaml' 'pkg/pkg.ml' 'build' '--dev-pkg' 'false' '--with-base-unix' 'true' '--with-cmdliner' 'false' (exited with 2)

It is also failing on macOS with

    install: /Users/runner/.esy/3_________________________________________________________________/i/ocaml-4.12.1001-00b0534a/lib/ocaml//topfind: Operation not permitted

ocamlfind 1.9.5 builds succeeded on both Ubuntu and macOS earlier on the same day (the day ocamlfind 1.9.6 was released).

Probably will be fixed by esy-ocaml/esy-opam-override#129.

Now fixed upstream.