M1 Support
See original GitHub issueThis tracking ticket can state the current issues blocking builds on M1 (Apple Silicon) machines.
Currently, when running on an M1 machine we will get output like this:
╰─ ~/.buck/buck build //ios:AirbnbApp
Unable to connect to Buck daemon, restarting it...
Not using buckd because daemon failed to start.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.facebook.buck.cli.bootstrapper.ClassLoaderBootstrapper.main(ClassLoaderBootstrapper.java:55)
Caused by: java.lang.UnsatisfiedLinkError: /Users/stevenhepting/workspace/apps/buck-out/tmp/buck_run.82_1dr8k/jna-1265810726/jna2060014269842800161.tmp: dlopen(/Users/stevenhepting/workspace/apps/buck-out/tmp/buck_run.82_1dr8k/jna-1265810726/jna2060014269842800161.tmp, 0x0001): tried: '/Users/stevenhepting/workspace/apps/buck-out/tmp/buck_run.82_1dr8k/jna-1265810726/jna2060014269842800161.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e')), '/usr/lib/jna2060014269842800161.tmp' (no such file)
I believe the relevant snippet is (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e'))
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (4 by maintainers)
Top Results From Across the Web
M1 Support Services, L.P.
About M1 Support Services, L.P. ... M1's program management principles ensure flawless mission execution from transition to mission completion.
Read more >M1 Finance | Help Center
All money movements between M1, your bank and other brokerages ... App Store is a service mark of Apple Inc. Google Play and...
Read more >Is Apple Silicon ready?
Application M1 optimized Rosetta 2 M1 Supported version
GitKraken ✓ ✓ 8.3.0
Whatsapp ⚠️ ✓ beta
Mac Mouse Fix ✓ ‑ 2.0
Read more >M1 Support Services – Ft. Rucker
We provide quality maintenance and logistics support services for aircraft assigned to the U.S. Army and U.S. Air Force (USAF) in support of...
Read more >Mac computers with Apple silicon
MacBook Pro (13-inch, M1, 2020). On Mac computers with Apple silicon, About This Mac shows an item labeled Chip, followed by the name...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Workaround is to install buck using Rosetta terminal. Afterwards buck can be used from any terminal as usual.
Follow section
Configuring Rosetta for ARM64 MacBook
https://github.com/valhalla/valhalla#configuring-rosetta-for-arm64-macbook . After that use Rosetta terminal withibrew
and follow sectionBuild from Source
from https://buck.build/setup/getting_started.html .@ajanuar I published my PR, feel free to try it 😃 but be aware, Java 8 support is dropped due to upstream changes.