https://bugs.winehq.org/show_bug.cgi?id=54256
Bug ID: 54256 Summary: Compile for wine under arm macOS (for running aarch64 windows apps) fails Product: Wine Version: unspecified Hardware: aarch64 OS: Mac OS X Status: UNCONFIRMED Severity: blocker Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: jintanzhong@gmail.com
Created attachment 73809 --> https://bugs.winehq.org/attachment.cgi?id=73809 Output of make
Error Output:
gcc -c -o dlls/ntdll/unix/signal_arm64.o dlls/ntdll/unix/signal_arm64.c -Idlls/ntdll -Iinclude -D__WINESRC__ -D_NTSYSTEM_ \ -D_ACRTIMP= -DWINBASEAPI= -DWINE_UNIX_LIB -Wall -pipe -fcf-protection=none -fno-stack-protector \ -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self \ -Wno-pragma-pack -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \ -Wwrite-strings -Wpointer-arith -gdwarf-4 -fPIC -fasynchronous-unwind-tables -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 In file included from dlls/ntdll/unix/signal_arm64.c:71: dlls/ntdll/unix/dwarf.h:915:45: warning: taking the absolute value of unsigned type 'ULONG_PTR' (aka 'unsigned long') has no effect [-Wabsolute-value] case DW_OP_abs: stack[sp] = labs(stack[sp]); break; ^ dlls/ntdll/unix/dwarf.h:915:45: note: remove the call to 'labs' since unsigned values cannot be negative case DW_OP_abs: stack[sp] = labs(stack[sp]); break; ^~~~ <inline asm>:305:2: error: conditional branch requires assembler-local label. '.L__wine_syscall_dispatcher_return' is external. cbnz w16, .L__wine_syscall_dispatcher_return ^ 1 warning and 1 error generated. make: *** [dlls/ntdll/unix/signal_arm64.o] Error 1
Commands run: ./configure; make
Dependencies: all installed using homebrew latest version.
./configure output and make output: see attachment
https://bugs.winehq.org/show_bug.cgi?id=54256
--- Comment #1 from Joy Jin jintanzhong@gmail.com --- Created attachment 73810 --> https://bugs.winehq.org/attachment.cgi?id=73810 Output for ./configure
https://bugs.winehq.org/show_bug.cgi?id=54256
--- Comment #2 from Joy Jin jintanzhong@gmail.com --- Oh, forgot about this:
Wine version: latest git clone of wine repository.
https://bugs.winehq.org/show_bug.cgi?id=54256
Brendan Shanks bshanks@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bshanks@codeweavers.com
--- Comment #3 from Brendan Shanks bshanks@codeweavers.com --- This should be fixed by this MR: https://gitlab.winehq.org/wine/wine/-/merge_requests/2158
https://bugs.winehq.org/show_bug.cgi?id=54256
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #4 from Fabian Maurer dark.shadow4@web.de --- Any news on this?
https://bugs.winehq.org/show_bug.cgi?id=54256
--- Comment #5 from Brendan Shanks bshanks@codeweavers.com --- Yes, this was fixed by 41e708dafa0e917951a9cfb331f97a09d46b2aa6
https://bugs.winehq.org/show_bug.cgi?id=54256
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |41e708dafa0e917951a9cfb331f | |97a09d46b2aa6 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #6 from Fabian Maurer dark.shadow4@web.de --- Marking fixed by https://gitlab.winehq.org/wine/wine/-/commit/41e708dafa0e917951a9cfb331f97a0...
https://bugs.winehq.org/show_bug.cgi?id=54256
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.0-rc4.
https://bugs.winehq.org/show_bug.cgi?id=54256
--- Comment #8 from Joy Jin jintanzhong@gmail.com --- After putting `llvm` and `bison` from homebrew in my path and running `./configure` on the git HEAD, I got this error at the end: ``` configure: WARNING: can't build Wine preloader; many programs won't work ```
https://bugs.winehq.org/show_bug.cgi?id=54256
Joy Jin jintanzhong@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|FIXED |---
--- Comment #9 from Joy Jin jintanzhong@gmail.com --- Trying again on latest release (9.7): ``` gcc -o tools/winegcc/winegcc tools/winegcc/utils.o tools/winegcc/winegcc.o -L/opt/homebrew/opt/libpcap/lib tools/winegcc/winegcc -o dlls/acledit/aarch64-windows/acledit.dll --wine-objdir . -b aarch64-windows -Wl,--wine-builtin -shared \ dlls/acledit/acledit.spec -Wb,--prefer-native dlls/acledit/aarch64-windows/main.o \ dlls/winecrt0/aarch64-windows/libwinecrt0.a dlls/ucrtbase/aarch64-windows/libucrtbase.a \ dlls/kernel32/aarch64-windows/libkernel32.a dlls/ntdll/aarch64-windows/libntdll.a \
tmp66292af1/acledit-00000000.spec-00000000.s:200:2: error: unknown directive .seh_save_fplr_x 48 ^ tmp66292af1/acledit-00000000.spec-00000000.s:202:2: error: unknown directive .seh_set_fp ^ tmp66292af1/acledit-00000000.spec-00000000.s:222:2: error: unknown directive .seh_save_fplr_x 48 ^ tmp66292af1/acledit-00000000.spec-00000000.s:224:2: error: unknown directive .seh_set_fp ^ winebuild: /opt/homebrew/cellar/llvm@11/11.1.0_4/bin/clang failed with status 1 winegcc: ./tools/winebuild/winebuild failed make: *** [dlls/acledit/aarch64-windows/acledit.dll] Error 2 ```
https://bugs.winehq.org/show_bug.cgi?id=54256
Joy Jin jintanzhong@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |9.7
https://bugs.winehq.org/show_bug.cgi?id=54256
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #10 from Alexandre Julliard julliard@winehq.org --- The original bug was fixed, please open new bugs for new errors.
https://bugs.winehq.org/show_bug.cgi?id=54256
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org --- Closing.