Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Build error on ARM Mac (Apple Sillicon)

Open funatsufumiya opened this issue 1 year ago • 3 comments

I couldn't build Beef on my M1 Mac. This errors only occur on ARM mac, not on rosetta2 or x64. It seems ARM mac currently unsupported.

This happens on current latest version (v0.43.4). Any advices or informations about ARM mac are welcome.

Error log screenshots

screenshot 2024-10-21 15 21 02
---
screenshot 2024-10-21 15 21 13
---
screenshot 2024-10-21 15 21 24

funatsufumiya avatar Oct 21 '24 06:10 funatsufumiya

I would guess that this is because the libffi version that comes with beef does not support the M1 Mac, you could try simply replacing the libffi in the repo (here) with the one from https://github.com/libffi/libffi and see if it works.

disarray2077 avatar Nov 30 '24 17:11 disarray2077

I am new to Beef and tried building on my Mac Pro with M1 Chip. I gave it a fair attempt and concluded the libffi @disarray2077 @funatsufumiya doesn't support MacOS ARM. I also tried with the latest version libffi-3.4.5 and got the same results as above.

I guess the author of libffi does take request for adding additional architectures which I think would be the fist step for getting Beef working on M1. If that hasn't already been done?

codeWrapped1 avatar May 14 '25 20:05 codeWrapped1

This seems to indicate libffi as of 2022 should work: https://github.com/ffi/ffi/issues/922

bfiete avatar May 15 '25 06:05 bfiete