I'm trying to upgrade my forester on a Macbook M1 Pro. When I run "nix
run sourcehut:~jonsterling/ocaml-forester" (or develop a flake.nix
file), I get the following output:
trace: warning: `overrideScope'` (from `lib.makeScope`) has been
renamed to `overrideScope`.
error: builder for
'/nix/store/3xh5bisv9bkqvg5d9p252p5s1k7nq548-cf-0.5.0.drv' failed with
exit code 1;
last 10 log lines:
> 29 | (enabled_if
> 30 | (= %{system} macosx))
> 31 | (deps
> 32 | detect.c
> 33 | (package ctypes))
> 34 | (action
> 35 | (run %{cc} -I %{ocaml_where} -I %{lib:ctypes:} -o
%{targets} %{deps})))
> Error: File unavailable:
> /nix/store/fv9jc9p2qfmj2dx0n1h1divhfpkbrs1n-ctypes-0.22.0/lib/stublibs/dllctypes_stubs.so
>
error: 1 dependencies of derivation
'/nix/store/4ji6wbr57k8n6ib1zdjn0pj09m2rhnrs-cf-lwt-0.5.0.drv' failed
to build
error: 1 dependencies of derivation
'/nix/store/jk0c0j01pnaqrkzzd4xhvfgbrn0zxw3x-fsevents-0.3.0.drv'
failed to build
error: 1 dependencies of derivation
'/nix/store/6s2gnp4iwplgfj5jkpa253fz8p1xvv66-irmin-watcher-0.5.0.drv'
failed to build
error: 1 dependencies of derivation
'/nix/store/54x6k5i52b0akxr5y12x40r3hpfgpqcz-irmin-git-3.9.0.drv'
failed to build
error: 1 dependencies of derivation
'/nix/store/p13phcwjc67g114mm22cd329vzn6m3mx-forester-4.0.1.drv'
failed to build
I also cannot build it from "opam install forester" (even with a
freshly-wiped .opam/), with the following output:
[ERROR] The compilation of ssl.0.7.0 failed at "dune build -p ssl -j 7
@install".
[ERROR] The compilation of lwt.5.7.0 failed at "dune build -p lwt -j 7".
#=== ERROR while compiling ssl.0.7.0 ==========================================#
# context 2.1.6 | macos/arm64 | ocaml.5.2.0 |
https://opam.ocaml.org#f4fe6a19
# path ~/.opam/default/.opam-switch/build/ssl.0.7.0
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p
ssl -j 7 @install
# exit-code 1
# env-file ~/.opam/log/ssl-53612-26f4df.env
# output-file ~/.opam/log/ssl-53612-26f4df.out
### output ###
# [...]
# (cd _build/default/src && config/discover.exe)
# which: pkg-config
# -> found: /opt/homebrew/Cellar/pkg-config
# which: brew
# -> found: /opt/homebrew/bin/brew
# run: /opt/homebrew/bin/brew --prefix
# -> process exited with code 0
# -> stdout:
# | /opt/homebrew
# -> stderr:
# run: /opt/homebrew/Cellar/pkg-config --print-errors openssl
# Fatal error: exception Unix.Unix_error(Unix.EACCES,
"create_process", "/opt/homebrew/Cellar/pkg-config")
#=== ERROR while compiling lwt.5.7.0 ==========================================#
# context 2.1.6 | macos/arm64 | ocaml.5.2.0 |
https://opam.ocaml.org#f4fe6a19
# path ~/.opam/default/.opam-switch/build/lwt.5.7.0
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p lwt -j 7
# exit-code 1
# env-file ~/.opam/log/lwt-53612-9d9045.env
# output-file ~/.opam/log/lwt-53612-9d9045.out
### output ###
# -> stderr:
# [...]
# which: pkg-config
# -> found: /opt/homebrew/Cellar/pkg-config
# which: brew
# -> found: /opt/homebrew/bin/brew
# run: /opt/homebrew/bin/brew --prefix
# -> process exited with code 0
# -> stdout:
# | /opt/homebrew
# -> stderr:
# run: /opt/homebrew/Cellar/pkg-config --print-errors libev
# Fatal error: exception Unix.Unix_error(Unix.EACCES,
"create_process", "/opt/homebrew/Cellar/pkg-config")
Has anyone else experienced something like this?
Best,
Kris
Could it be that this patch fixes it?
https://lists.sr.ht/~jonsterling/forester-devel/patches/51464
In any case, Jon recently expressed interest in doing a dependency audit
before the next release. I haven't had the time to develop the ideas
that involve the irmin dependency, so I am not opposed to removing the
dependency for now, at least until I find the time again to work on this
further.
Best, Kento