Open Kirtai opened 3 months ago
Can confirm I get similar error on tag 202312181441 (and also on the recent Cog branch)
/home/nafiz/projects/opensmalltalk-vm/platforms/unix/vm/sqUnixMain.c:2324:38: error: incompatible function pointer types assigning to 'void (*)(int, siginfo_t *, void *)' from 'void (int, siginfo_t *, ucontext_t *)' (aka 'void (int, siginfo_t *, struct ucontext_t *)') [-Wincompatible-function-pointer-types]
2324 | sigsegv_handler_action.sa_sigaction = sigsegv;
| ^ ~~~~~~~
/home/nafiz/projects/opensmalltalk-vm/platforms/unix/vm/sqUnixMain.c:2331:38: error: incompatible function pointer types assigning to 'void (*)(int, siginfo_t *, void *)' from 'void (int, siginfo_t *, ucontext_t *)' (aka 'void (int, siginfo_t *, struct ucontext_t *)') [-Wincompatible-function-pointer-types]
2331 | sigusr1_handler_action.sa_sigaction = sigusr1;
| ^ ~~~~~~~
1 warning and 2 errors generated.
make[1]: *** [Makefile:299: sqUnixMain.o] Error 1
make: *** [Makefile:413: vm/vm.a] Error 2
Clang version:
clang version 18.1.6 (Fedora 18.1.6-3.fc40)
I'm on Fedora 40 Workstation.
Fails to compile on EndeavourOS (Arch Linux derivative with the following errors.
clang version 17.0.6 (gcc version 14.1.1 also fails)