Unable to run arm64 wine on arm Mac, killed instantly

Questions about Wine on macOS.
Locked
satelli
Newbie
Newbie
Posts: 1
Joined: Sat Jan 20, 2024 3:56 am

Unable to run arm64 wine on arm Mac, killed instantly

Post by satelli »

Greetings. I am trying to build arm64 Wine to run arm64 Windows programmes.

I have consulted the following resources to build my Wine. Much appreciated for the help of relevant authors.

Minimum requirement to build arm64 wine
viewtopic.php?t=37259

Gcenx's Crossover Wine CI script
https://github.com/Gcenx/crossover-wine ... acports.sh

Whisky's Wine builder workflow
https://github.com/Whisky-App/wine/blob ... /build.yml

I am using wine-10 source, Xcode Command Line Tools, llvm-mingw for aarch64 Windows toolchain only (by appending its location after $PATH). Notable configure options are --enable-win64 --with-mingw --enable-archs=aarch64.

I have successfully built the binaries; however, when I try to execute wine, it is killed instantly by macOS. I tried the following, but none of them work:
- adhoc codesign
- codesign using a free developer account certificate
- disable GateKeeper
- disable SIP
- copy to another arm Mac / VM

I am not able to find relevant logs from Console. I also tried
lldb wine
(lldb) run

However, it came up with
error: Cannot allocate memory

Upon searching, it may be similar to this problem of unable to side load iOS apps.
https://talk.macpowerusers.com/t/so-app ... s/21390/46

I am aware that macOS rejects unsigned arm64 binaries, but adhoc signing is sufficient AFAIK. Please point out where I did wrong. Thank you.
Locked