Re: Apple Silicon compilation

Stefan Dösinger <[email protected]> Mon, 24 Feb 2025 11:38:57 +0300
Newsgroups gmane.comp.emulators.wine.devel
Message-ID <6546416.lOV4Wx5bFT@grey>
Am Montag, 24. Februar 2025, 03:55:59 Ostafrikanische Zeit schrieb robert 
lippmann:
> Hi all,
> 
> I tried to update the wiki to document how to compile Wine on Apple Silicon,
> but I’m not sure if it went through.
 
> Basically, you need to add lld (which pulls in llvm) in addition to the
> other build dependencies

Generally if you want to run x86 Windows applications run both configure and 
make with arch -x86_64. Then it will all behave as if you were on an Intel CPU 
mac. You don't need to run the built wine with arch because it will be an 
x86_64 only binary.

If you want to build things for arm to run arm64 Windows binaries you are in a 
world of trouble:

* MacOS won't allow you to map anything below 4 GB, so Wine can't place the 
KSHARED_USER_DATA at 0x7ffe0000.

* ARM MacOS has 16 kb pages whereas Windows has 4kb ones.

We are working on both of those issues, but running an arm64 wine is going to 
take a while.
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEQxb0tqoFWyeVMl1sPRO8yFRPGiIFAme8MCEACgkQPRO8yFRP
GiK57g//QEvBMJoXytPwL0zjBHmKifD5Bi0pscS4raD8Fkkbe495pYHk7oHH5Zfm
SzZx0+l1KMypPjMP0w5lx0FVu72Vl8JgXA6X3AsrbFCzdCIRCGUi7bwoqDZqmxCh
5pu8x0fOiECxjPV+s3OMzHzVLM50NNkdQ26+OeQa5HzeRZL8//TiCh1xaWDstWtu
HN1z468BQniGfSqHww5XvI1CS2zQtKRnE9MBTOYBr/P9gFy23PYc9JjXxLn4OXmR
QVSsrEu05rFdukTB1aaqHcg5+o5kiIJQvEIY4AX3ugkwQfw768bVhNQk4DQfZfv2
nSMUundcF65G6c0m0gyYG95M7jFIP4IlLQmZikss7LMa57Muo9euQ+A5xuwVT+Ge
WuT2xQf/FhMCQucsNNXnx2alp2CGzNHcBFVmewHL5xVZM0rZqPPehfnMG64g5q2d
fZWMkxyYg3JQREAe5tfo03x1HAlxlkEtM8ATSaXcZIF+dBOW6KpOjVWWUirXSdj1
fweR3iVSZMgiRnLw9Bjc8unyvNUKl8mUEIW9WxNWw01+ZrW5/1bqpiGetGU0pMDF
T+C6Ka2UhmxWQRl0jMZRhm5Gmo42uZ23E81xKezsyL+lMs1TaVvR4CZF9vVttzr/
/rslSRiW3tPS9a6pKf233CFkUB5g1JGmr2bKxWGmeyFfQPGulPI=
=b3Ka
-----END PGP SIGNATURE-----