Leorik icon indicating copy to clipboard operation
Leorik copied to clipboard

Leorik 3.1 macOS ARM doesn't start

Open twoplan opened this issue 1 year ago • 5 comments

Hi,

the arm version of Leorik 3.1 doesn't start on my m4 mac running macOS 15.4.

Leorik 3.01-arm and Leorik 3.1-x86 work fine.

./Leorik-3.1 
zsh: killed     ./Leorik-3.1


lldb ./Leorik-3.1
(lldb) target create "./Leorik-3.1"
Current executable set to '/Users/max/chess/UCI/Leorik/Leorik-3.1' (arm64).
(lldb) run
error: process exited with status -1 (no such process)
(lldb) quit

twoplan avatar Apr 11 '25 10:04 twoplan

Sadly I don't have a Mac to try that but maybe the executable is not "secure" enough for the OS to run it?

It could be in quarantine status and according to chat-gpt you could remove that by running

xattr -d com.apple.quarantine ./Leorik-3.1

Or maybe there's codesign issue? Then this might help:

codesign -s - ./Leorik-3.1

Let me know if any of this worked! :)

lithander avatar Apr 12 '25 09:04 lithander

I had already removed the quarantine flags from the downloaded binaries. Along with granting the execution permission, this was enough for the x86 version of Leorik 3.1 and the ARM version of Leorik 3.01 to work.

However, the ARM version of Leorik 3.1 also required the step you mentioned, codesign -s - ./Leorik-3.1!

Thanks 👍, I've never had to do that before ... never stop learning. 🤓

./Leorik-3.1      
Leorik 3.1 Classic
Loading NNUE weights from 640HL-S-5288M-Tmix-Q5-v19.nnue!
uci
id name Leorik 3.1
id author Thomas Jahn
option name Hash type spin default 50 min 1 max 2047
option name Threads type spin default 1 min 1 max 8
option name Temperature type spin default 0 min 0 max 1000
uciok
go depth 22
info depth 1 score cp 47 nodes 27 nps 5400 time 5 pv g1f3
..
..
info depth 22 score cp 55 nodes 37782419 nps 2878660 time 13125 pv e2e4 c7c5 g1f3 e7e6 c2c3 g8f6 e4e5 f6d5 g2g3 b8c6 f1g2 d7d6 e5d6 f8d6 e1g1 e8g8 d2d4 c5d4 f3d4 c6d4 d1d4 d8c7
bestmove e2e4

twoplan avatar Apr 12 '25 13:04 twoplan

Thanks for confirming that the Mac version work and how to get them to run! 🏅

lithander avatar Apr 12 '25 22:04 lithander

I had the same problem with ARM version on Mac, but the non ARM works fine on Mac M4 silicon after chmod permissions. The ARM versions works after codesign. Not good at Unix so used Warp

Image

AI terminal and it did the job for me.See attached file. Thanks

pdoaks avatar Apr 28 '25 12:04 pdoaks

👍 👍 ...that AI terminal is really cool!

lithander avatar Apr 28 '25 21:04 lithander