pharo-project / pharo-vm

This is the VM used by Pharo
http://pharo.org
Other
111 stars 68 forks source link

Cannot compile 10.3 VM on Manjaro #839

Open gcotelli opened 1 month ago

gcotelli commented 1 month ago

Hi, I'm trying to compile the latest released VM in Manjaro but getting the following error:

 4439 | reapChildProcessWrapper(int sigNum, struct __siginfo * sigInfo, void * userData){
      |                                            ^~~~~~~~~
/home/gcotelli/Programming/repos/3rd-party-deps/pharo-vm/extracted/plugins/UnixOSProcessPlugin/src/common/UnixOSProcessPlugin.c: In function ‘setSigChldHandler’:
/home/gcotelli/Programming/repos/3rd-party-deps/pharo-vm/extracted/plugins/UnixOSProcessPlugin/src/common/UnixOSProcessPlugin.c:4454:43: error: assignment to ‘void (*)(int,  siginfo_t *, void *)’ from incompatible pointer type ‘void (*)(int,  struct __siginfo *, void *)’ [-Wincompatible-pointer-types]
 4454 |         sigchldHandlerAction.sa_sigaction = reapChildProcessWrapper;
....
make[2]: *** [CMakeFiles/UnixOSProcessPlugin.dir/build.make:76: CMakeFiles/UnixOSProcessPlugin.dir/extracted/plugins/UnixOSProcessPlugin/src/common/UnixOSProcessPlugin.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:693: CMakeFiles/UnixOSProcessPlugin.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

image

I'm following the instructions in the wiki, which are

Am I missing something obvious?

guillep commented 1 month ago

Hmm, I wonder if we should not use siginfo_t instead of struct __siginfo