https://bugs.winehq.org/show_bug.cgi?id=53848
Bug ID: 53848 Summary: wine: Bad CPU type in executable (Apple Silicon M1) Product: Wine-staging Version: 7.19 Hardware: aarch64 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: b1779506@trbvn.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
user@users-Apple-M1 ~ % brew tap homebrew/cask-versions
Running `brew update --auto-update`... ==> Auto-updated Homebrew! Updated 2 taps (homebrew/core and homebrew/cask). ==> New Casks anytype
==> Tapping homebrew/cask-versions Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-cask-versions'... remote: Enumerating objects: 250611, done. remote: Counting objects: 100% (250611/250611), done. remote: Compressing objects: 100% (76523/76523), done. remote: Total 250611 (delta 173598), reused 250577 (delta 173577), pack-reused Receiving objects: 100% (250611/250611), 64.00 MiB | 3.71 MiB/s, done. Resolving deltas: 100% (173598/173598), done. Tapped 230 casks (261 files, 71MB). user@users-Apple-M1 ~ % brew install --cask --no-quarantine wine-staging ==> Caveats wine-staging supports both 32-bit and 64-bit. It is compatible with an existing 32-bit wine prefix, but it will now default to 64-bit when you create a new wine prefix. The architecture can be selected using the WINEARCH environment variable which can be set to either win32 or win64.
To create a new pure 32-bit prefix, you can run: $ WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg
See the Wine FAQ for details: https://wiki.winehq.org/FAQ#Wineprefixes
==> Downloading https://github.com/Gcenx/macOS_Wine_builds/releases/download/7.1 ==> Downloading from https://objects.githubusercontent.com/github-production-rel ######################################################################## 100.0% ==> Installing Cask wine-staging Warning: macOS's Gatekeeper has been disabled for this Cask ==> Moving App 'Wine Staging.app' to '/Applications/Wine Staging.app' ==> Linking Binary 'appdb' to '/opt/homebrew/bin/appdb' ==> Linking Binary 'winehelp' to '/opt/homebrew/bin/winehelp' ==> Linking Binary 'msiexec' to '/opt/homebrew/bin/msiexec' ==> Linking Binary 'notepad' to '/opt/homebrew/bin/notepad' ==> Linking Binary 'regedit' to '/opt/homebrew/bin/regedit' ==> Linking Binary 'regsvr32' to '/opt/homebrew/bin/regsvr32' ==> Linking Binary 'wine' to '/opt/homebrew/bin/wine' ==> Linking Binary 'wine64' to '/opt/homebrew/bin/wine64' ==> Linking Binary 'wineboot' to '/opt/homebrew/bin/wineboot' ==> Linking Binary 'winecfg' to '/opt/homebrew/bin/winecfg' ==> Linking Binary 'wineconsole' to '/opt/homebrew/bin/wineconsole' ==> Linking Binary 'winedbg' to '/opt/homebrew/bin/winedbg' ==> Linking Binary 'winefile' to '/opt/homebrew/bin/winefile' ==> Linking Binary 'winemine' to '/opt/homebrew/bin/winemine' ==> Linking Binary 'winepath' to '/opt/homebrew/bin/winepath' ==> Linking Binary 'wineserver' to '/opt/homebrew/bin/wineserver' ???? wine-staging was successfully installed! user@users-Apple-M1 ~ % winecfg /opt/homebrew/bin/winecfg: line 46: /opt/homebrew/bin/wine: Bad CPU type in executable /opt/homebrew/bin/winecfg: line 46: /opt/homebrew/bin/wine: Undefined error: 0 user@users-Apple-M1 ~ % wine --version zsh: bad CPU type in executable: wine user@users-Apple-M1 ~ % wine zsh: bad CPU type in executable: wine user@users-Apple-M1 ~ % brew list --versions|grep wine wine-staging 7.19