https://bugs.winehq.org/show_bug.cgi?id=57372
Bug ID: 57372 Summary: wine fails to compile on FreeBSD-15.0/aarch64 (dlls/ntdll/unix/signal_arm64.o) Product: Wine Version: 9.20 Hardware: x86-64 OS: FreeBSD Status: NEW Keywords: download, source Severity: critical Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
Created attachment 77340 --> https://bugs.winehq.org/attachment.cgi?id=77340 build log
Note for those with cfarm access; this is on cfarm247.
I've built llvm-mingw-20241015 and it is available in $PATH.
`./configure && make` then fails with: cc -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 -fvisibility=hidden -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wpointer-arith -Wno-pragma-pack -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -gdwarf-4 -fPIC -fasynchronous-unwind-tables -g -O2
$ grep -A1 error log.txt dlls/ntdll/unix/signal_arm64.c:334:28: error: expression is not assignable 334 | FP_sig(sigcontext) = context->Fp; /* Frame pointer */ -- dlls/ntdll/unix/signal_arm64.c:335:28: error: expression is not assignable 335 | LR_sig(sigcontext) = context->Lr; /* Link register */ -- dlls/ntdll/unix/signal_arm64.c:336:28: error: expression is not assignable 336 | SP_sig(sigcontext) = context->Sp; /* Stack pointer */ -- dlls/ntdll/unix/signal_arm64.c:337:28: error: expression is not assignable 337 | PC_sig(sigcontext) = context->Pc; /* Program Counter */ -- dlls/ntdll/unix/signal_arm64.c:338:28: error: expression is not assignable 338 | PSTATE_sig(sigcontext) = context->Cpsr; /* Current State Register */ -- dlls/ntdll/unix/signal_arm64.c:339:57: error: expression is not assignable 339 | for (i = 0; i <= 28; i++) REGn_sig( i, sigcontext ) = context->X[i]; --
$ cc --version FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67) Target: aarch64-unknown-freebsd15.0 Thread model: posix InstalledDir: /usr/bin