Closed jserot closed 1 year ago
Is it possible the OCaml toolchain is compiled for x86 and using Rosetta?
Both of these messages suggest something unusual is going on ld: symbol(s) not found for architecture x86_64
and 2.1.4 | macos/x86_64 | ocaml-base-compiler.5.0.0
I don't have an M1 machine available but we do macOS M1 builds as part of CI -> https://ci.ocamllabs.io/github/mirage/ocaml-github/commit/91edfae6f63d9990e030013b0397012b8cbc6843/variant/macos-homebrew-5.0.0_arm64_opam-2.1
Right guess, thanks ;):
file `which ocamlc`
/Users/.../opam/5.0.0/bin/ocamlc: Mach-O 64-bit executable x86_64
I remember having installed the OpenSSL
system package using arch arm64 brew install
. This could explain the problem.
Seems i have two solutions:
OpenSSL
)The OCaml toolchain on M1(ARM64) macOS is very usable. I would recommend that option over using Rosetta emulation.
Ok, thanks ! Btw, do you know if its possible to have both versions of the toolchain (ARM64 and x86_64) in distinct opam switches ?
Mac OS 12.6 OCaml 5.0 Opam 2.1.4
I had a similar error when trying to build
cohttp-lwt-unix.5.0.0
but solved it by installingcohttp-lwt-unix.6.0.0alpha0
instead.I'm puzzled by the reference to
x86_64
arch name.