-
Notifications
You must be signed in to change notification settings - Fork 1.2k
M1 Support #2666
Comments
Workaround is to install buck using Rosetta terminal. Afterwards buck can be used from any terminal as usual. Follow section |
Excuse me, I have follow your step and also have same error msg.
|
That's because you should also use an x64 JDK to build |
Using rosetta installation to build I'm building using rosetta and when using native arm64, it's still having error Is there any way we can define in the compiler to also build specific CPU arch? |
I succeeded doing a local build after updating a few dependencies, will create a PR later today 👍 |
@ajanuar I published my PR, feel free to try it :) but be aware, Java 8 support is dropped due to upstream changes. |
Hi @marcesengel, were you able to build using
|
Hi @hendych, actually you getting this error is good news for me 😅 I got the same error building Edit: to be completely honest with you I haven't ran the tests and assumed all was fine when I was able to build Buck on my M1. In case there are failing tests this could make fixing all of this a lot easier. If there aren't any I suppose we should add one. |
I saw someone having the same issue in Buck slack channel without any solution though 😅. This issue should have nothing to do with the version bump of the third party libraries because this issue exist since building buck with rosetta and iphonesimulator-arm64. Did check it before. I think there is something should be changed in the FileScrubber code. I think this related to the symbol generation in linking phase or something. Tried to use FileScrubber on the dev branch but I think the changes is too far with master. Didn't have the chance to look further due to another project. But will do after the project. |
@marcesengel @hendych Any further luck using buck on M1? |
@Solace-Studios I got this working on my M1, the most important part is to make sure you're using an x64 JDK and brew running with roseta |
@Solace-Studios I had applied code changes by @marcesengel, now I'm using Buck on M1 but cannot get it working with iphonesimulator-arm64. It can run
@gabrieldonadel Can you run tests on arm64 simulator? |
@hendych I only use |
IIRC I got the same error after the build was successful...
My goal was to actually have it run natively, but no luck as of now. |
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:
I believe the relevant snippet is
(fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e'))
The text was updated successfully, but these errors were encountered: