http://bugs.winehq.org/show_bug.cgi?id=58567
Bug ID: 58567 Summary: Wine AARCH64 fails to launch on macOS Product: Wine Version: 10.12 Hardware: aarch64 OS: MacOS Status: UNCONFIRMED Severity: normal Priority: P2 Component: wineserver Assignee: wine-bugs@winehq.org Reporter: computers57@hotmail.com
As of 17fb31af617cfb65de411c352480d0751f9c14e9, attempting to build and run Wine built for the native aarch64 target doesn't work. I used the llvm-mingw compiler from https://github.com/mstorsjo/llvm-mingw , but I don't think the PE compilers are the issue.
Attempting to run any Wine program results in the wine process crashing: attempting to debug the loader executable using macOS' lldb says that the file is a "Malformed Mach-o file". Removing the `-Wl,-segalign,0x1000,-pagezero_size,0x1000` sections does result in the executable being launchable, but results in an executable incapable of running a Wine environment:
```` % ./wine mine err:virtual:map_fixed_area out of memory for 0x7ffe0000-0x7ffe1000 err:virtual:allocate_virtual_memory out of memory for allocation, base 0x7ffe0000 size 00001000 err:virtual:virtual_alloc_first_teb wine: failed to map the shared user data: c0000017 ````
config flags: --without-pulse --without-gnutls --prefix=[~]/wineinstall --without-dbus --without-gphoto --without-v4l2 --without-sane --with-vulkan 'CFLAGS=-I/opt/local/include -Wno-enum-conversion -I/usr/local/include' 'LDFLAGS=-L/opt/local/lib -L/usr/local/lib -Xlinker -rpath -Xlinker [~]/wineinstall/lib -Xlinker -rpath -Xlinker /opt/local/lib -Xlinker -rpath -Xlinker /usr/local/lib' 'CPPFLAGS=-I/opt/local/include -Wno-enum-conversion' 'CXXFLAGS=-I/opt/local/include -Wno-enum-conversion -I/usr/local/include' --enable-archs=aarch64,arm64ec,x86_64,i386,arm