opam-repository icon indicating copy to clipboard operation
opam-repository copied to clipboard

BER MetaOCaml for arm64

Open biboudis opened this issue 2 years ago • 4 comments

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.

biboudis avatar May 10 '22 21:05 biboudis

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

mseri avatar Aug 09 '22 08:08 mseri

Darn. I was hoping to demo metaocaml to my class today, and ran into this problem.

JacquesCarette avatar Jan 11 '24 17:01 JacquesCarette

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

biboudis avatar Jan 11 '24 17:01 biboudis

Thanks - that worked beautifully. I've also emailed Oleg, asking what his plans are for upgrading metocaml to > 4.12.

JacquesCarette avatar Jan 11 '24 21:01 JacquesCarette