question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This 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:open
  • Created 2 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
OleksiyAcommented, Nov 29, 2021

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 with ibrew and follow section Build from Source from https://buck.build/setup/getting_started.html .

3reactions
marcesengelcommented, Mar 3, 2022

@ajanuar I published my PR, feel free to try it 😃 but be aware, Java 8 support is dropped due to upstream changes.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found