darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.55k stars 446 forks source link

SYS_clone3 not define #1444

Closed foursunZero closed 1 year ago

foursunZero commented 1 year ago

Build Log

14 warnings generated.
[  1%] Linking CXX static library libdarlingserver_duct_tape.a
[  1%] Built target darlingserver_duct_tape
[  1%] Building CXX object src/external/darlingserver/CMakeFiles/darlingserver.dir/src/darlingserver.cpp.o
/root/darling/src/external/darlingserver/src/darlingserver.cpp:699:29: error: use of undeclared identifier 'SYS_clone3'
        launchdGlobalPID = syscall(SYS_clone3, &launchdCloneArgs, sizeof(launchdCloneArgs));
                                   ^
1 error generated.
make[2]: *** [src/external/darlingserver/CMakeFiles/darlingserver.dir/build.make:76: src/external/darlingserver/CMakeFiles/darlingserver.dir/src/darlingserver.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:14248: src/external/darlingserver/CMakeFiles/darlingserver.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

System Information

Software Version
Clang clang-11
CMake 3.22.1
Linux Kernel 5.18.17-amd64-desktop-community-hwe
Darling 7b2aa573bdd9b3ce143ef2f0acf54841e51b9895

Other System Information

~ # find /usr/include -name syscall.h
/usr/include/syscall.h
/usr/include/sys/syscall.h
/usr/include/x86_64-linux-gnu/sys/syscall.h
/usr/include/x86_64-linux-gnu/bits/syscall.h