https://github.com/lispc/circom-on-apple-silicon
  
  
     
    https://github.com/lispc/circom-on-apple-silicon
  
        Last synced: 8 months ago 
        JSON representation
    
- Host: GitHub
 - URL: https://github.com/lispc/circom-on-apple-silicon
 - Owner: lispc
 - Created: 2021-03-17T09:45:14.000Z (over 4 years ago)
 - Default Branch: master
 - Last Pushed: 2021-07-06T08:07:17.000Z (over 4 years ago)
 - Last Synced: 2025-01-28T03:16:53.419Z (9 months ago)
 - Language: C
 - Size: 475 KB
 - Stars: 1
 - Watchers: 1
 - Forks: 0
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 
 
Awesome Lists containing this project
README
          # Problem
I want to run circom witness generator (it needs ADX/BMI2 instructions) on Apple M1 using Rosetta 2. Of course, it fails.
```
# it will output "Illegal instruction: 4"
run_mac_m1.sh
```
# Solution 
Finally I succeeded by starting an aarch64 Debian docker container, then inside this container, I installed QEMU-user to emulate the x86\_64 binary.
Check the `docker` folder for details