hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

HHVM does not support ARM64 Macs (M1+)

Open Djakhangir opened this issue 3 years ago • 2 comments

Describe the bug illegal hardware instruction

Standalone code, or other way to reproduce the problem

This should not depend on installing any libraries or frameworks. Ideally, it should be possible to copy-paste this into a single file and reproduce the problem by running hhvm and/or hh_client

Steps to reproduce the behavior:

  1. Go to any hack/hhvm file
  2. Click on on any of them
  3. run the hhvm "NAME OF THE FILE"
  4. See an an error saying: "illegal hardware instruction"

Environment

  • Operating system

'MacOS Big Sur'.

  • Installation method

'homebrew'

Djakhangir avatar Aug 23 '21 01:08 Djakhangir

Sorry - this is a known issue we intend to work on (with native support), but don't currently have any kind of timeline.

fredemmott avatar Aug 23 '21 01:08 fredemmott

Would be useful for https://github.com/facebookincubator/Glean to have hhvm/hh_server .deb/ubuntu builds for linux/aarch64. (hh_server is the PHP indexer used for Hack source code). Currently we can't index PHP source on arm/linux, due to missing binaries in the nightlies/LTS for arm.

donsbot avatar Mar 22 '22 22:03 donsbot

Does anyone have a workaround for this issue?

malukenho avatar Dec 19 '22 21:12 malukenho

I created a docker image as a way to develop using HHVM on my M1 mac which can be found at this repo - https://github.com/justdan6/docker-hack-dev

justdan6 avatar Sep 16 '23 02:09 justdan6