opam-repository
opam-repository copied to clipboard
BER MetaOCaml for arm64
While creating the switch for BER Metaocaml I face this issue. Of course this doesnt happen when I run the shell under Rosetta shell but it would be preferable to use the "native" dependency.
❯ opam switch create 4.11.1+BER
<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["ocaml-variants" {= "4.11.1+BER"}]
[ERROR] Could not determine which packages to install for this switch:
* Missing dependency:
- ocaml-variants = 4.11.1+BER
unmet availability conditions: '!(os = "macos" & arch = "arm64")'
If someone volunteers to assist me I can provide and test the fix in a separate PR.
metaocaml is not available for arm macos versions, this seems to be the issue here. Only ocaml versions 4.10.2 and > 4.12 support macos with arm64
Darn. I was hoping to demo metaocaml to my class today, and ran into this problem.
A workaround for me back then was to enable the emulation mode via the following command:
env /usr/bin/arch --x86_64 /bin/zsh --login
Thanks - that worked beautifully. I've also emailed Oleg, asking what his plans are for upgrading metocaml to > 4.12.