darlinghq / darling

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

Failure to build on Arch #1177

Open superbonaci opened 2 years ago

superbonaci commented 2 years ago

Build Log What is the build error?

[ 33%] Linking C shared library libremovefile.dylib
Consolidate compiler generated dependencies of target system_copyfile
clang-13: warning: argument unused during compilation: '-nostdinc' [-Wunused-command-line-argument]
[ 33%] Linking C shared library libcopyfile.dylib
[ 33%] Built target WTF
[ 33%] Built target gcc_s
[ 33%] Built target launch
[ 33%] Linking C shared library libsystem_notify.dylib
ld: can't open file, errno=13 file '../kernel/libsystem_kernel.dylib' for architecture x86_64
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/libremovefile/CMakeFiles/removefile.dir/build.make:166: src/libremovefile/libremovefile.dylib] Error 1
make[1]: *** [CMakeFiles/Makefile2:18574: src/libremovefile/CMakeFiles/removefile.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
ld: can't open file, errno=13 file '../kernel/libsystem_kernel.dylib' for architecture x86_64
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/copyfile/CMakeFiles/system_copyfile.dir/build.make:123: src/copyfile/libcopyfile.dylib] Error 1
make[1]: *** [CMakeFiles/Makefile2:17600: src/copyfile/CMakeFiles/system_copyfile.dir/all] Error 2
ld: can't open file, errno=13 file '../../kernel/libsystem_kernel.dylib' for architecture x86_64
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/external/libnotify/CMakeFiles/system_notify.dir/build.make:100: src/external/libnotify/libsystem_notify.dylib] Error 1
make[1]: *** [CMakeFiles/Makefile2:18454: src/external/libnotify/CMakeFiles/system_notify.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
superbonaci commented 2 years ago

After make clean:

/builds/darling/src/private-frameworks/kperf/src/kperf.c:132:52: warning: implicit declaration of function 'puts' is invalid in C99 [-Wimplicit-function-declaration]
void* kperf_typefilter_invert(void) { if (verbose) puts("STUB: kperf_typefilter_invert called"); return NULL; }
                                                   ^
[ 54%] Building C object src/external/security/OSX/libsecurityd/CMakeFiles/securityd_ucspc.dir/mig/ucspClientC.c.o
107 warnings generated.
clang-13: error: no such file or directory: '/builds/darling/build/src/external/security/OSX/libsecurityd/mig/ucspClientC.c'
clang-13: error: no input files
make[2]: *** [src/external/security/OSX/libsecurityd/CMakeFiles/securityd_ucspc.dir/build.make:96: src/external/security/OSX/libsecurityd/CMakeFiles/securityd_ucspc.dir/mig/ucspClientC.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:61726: src/external/security/OSX/libsecurityd/CMakeFiles/securityd_ucspc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 54%] Linking C shared library kperf
ld: warning: static initializer found in 'CMakeFiles/kperf.dir/src/kperf.c.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
[ 54%] Linking C shared library login
ld: warning: static initializer found in 'CMakeFiles/kperf.dir/src/kperf.c.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
[ 54%] Built target kperf
[ 54%] Built target login
[ 54%] Linking CXX shared library libicucore.A.dylib
[ 54%] Linking CXX shared library AppleSauce
ld: warning: static initializer found in 'CMakeFiles/AppleSauce.dir/src/AppleSauce.cpp.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
ld: warning: static initializer found in 'CMakeFiles/AppleSauce.dir/src/AppleSauce.cpp.o'. Use -no_inits to make this an error.  Use -no_warn_inits to suppress warning
[ 54%] Built target AppleSauce
[ 54%] Built target icucore
make: *** [Makefile:136: all] Error 2