I confirm I encountered the same issue using gel to catch-the-bunny, as a nightly endeavor (don’t ask why!). Perhaps this has to do with that preview part?
I had this problem too. Somehow I discovered it was because I didn’t have the GNU patch program (gpatch) installed. I think I looked in opam’s installation log and saw some message about gpatch there.
Anyway, I installed it using homebrew, made sure gpatch was now on my path, cleared out everything and reinstalled successfully.
I once had a coworker who encountered strange errors with an open-source project on MacOS X, and these went away when he put his development environment on a case-sensitive filesystem (for POSIX compatibility). It’s been years since I’ve used a Mac, but I hear that case-insensitive is still the default.
- name: Install gpatch and add to PATH on macOS
if: runner.os == 'macOS'
shell: bash
run: |
brew update
brew install gpatch
echo "/opt/homebrew/opt/gpatch/libexec/gnubin" >> $GITHUB_PATH
And that fixed it.
To note, maybe there is something that takes care of this already when using opam via setup-ocaml, but here I’m in a workflow using nightly dune and setup-dune, which doesn’t have any gpatch special logic atm. It sounds like a good issued to discuss in this project. Reported here.
I’ve got gpatch installed on my ARM64 Mac, ran bash -c "sh <(curl -fsSL https://opam.ocaml.org/install.sh)", but still get The module Bin_prot.Shape.Location is an alias for module Bin_shape.Location, which is missing when I try to build gel.
~/s/c/gel % dune build
File "gel.ml", line 53, characters 4-38:
53 | type 'a t = 'a [@@deriving bin_io]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: The module Bin_prot.Shape.Location is an alias for module Bin_shape.Location, which is missing
File "gel.ml", line 53, characters 4-38:
53 | type 'a t = 'a [@@deriving bin_io]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: The module Bin_prot.Shape.Location is an alias for module Bin_shape.Location, which is missing
~/s/c/gel % ocaml --version
The OCaml toplevel, version 5.1.0```
Seems that OCaml 5.1.0 didn't help much. :(