Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /var/tmp/portage/dev-util/apitrace-9.0-r1/work/apitrace-9.0_build-abi_x86_64.amd64/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_251df && [1/2] Building C object CMakeFiles/cmTC_251df.dir/src.c.o [2/2] Linking C executable cmTC_251df FAILED: cmTC_251df : && /usr/lib/llvm/10/bin/x86_64-pc-linux-gnu-clang -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -DCMAKE_HAVE_LIBC_PTHREAD -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=lld -rdynamic CMakeFiles/cmTC_251df.dir/src.c.o -o cmTC_251df && : ld.lld: error: undefined symbol: pthread_create >>> referenced by src.c >>> CMakeFiles/cmTC_251df.dir/src.c.o:(main) ld.lld: error: undefined symbol: pthread_detach >>> referenced by src.c >>> CMakeFiles/cmTC_251df.dir/src.c.o:(main) ld.lld: error: undefined symbol: pthread_cancel >>> referenced by src.c >>> CMakeFiles/cmTC_251df.dir/src.c.o:(main) ld.lld: error: undefined symbol: pthread_join >>> referenced by src.c >>> CMakeFiles/cmTC_251df.dir/src.c.o:(main) clang-10: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Source file was: #include void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /var/tmp/portage/dev-util/apitrace-9.0-r1/work/apitrace-9.0_build-abi_x86_64.amd64/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_72108 && [1/2] Building C object CMakeFiles/cmTC_72108.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_72108 FAILED: cmTC_72108 : && /usr/lib/llvm/10/bin/x86_64-pc-linux-gnu-clang -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=lld -rdynamic CMakeFiles/cmTC_72108.dir/CheckFunctionExists.c.o -o cmTC_72108 -lpthreads && : ld.lld: error: unable to find library -lpthreads clang-10: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Determining if the function getexecname exists failed with the following output: Change Dir: /var/tmp/portage/dev-util/apitrace-9.0-r1/work/apitrace-9.0_build-abi_x86_64.amd64/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_5405e && [1/2] Building C object CMakeFiles/cmTC_5405e.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_5405e FAILED: cmTC_5405e : && /usr/lib/llvm/10/bin/x86_64-pc-linux-gnu-clang -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -fvisibility=hidden -Wall -Wno-sign-compare -fno-strict-aliasing -fmessage-length=0 -fno-omit-frame-pointer -DCHECK_FUNCTION_EXISTS=getexecname -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=lld -rdynamic CMakeFiles/cmTC_5405e.dir/CheckFunctionExists.c.o -o cmTC_5405e && : ld.lld: error: undefined symbol: getexecname >>> referenced by CheckFunctionExists.c >>> CMakeFiles/cmTC_5405e.dir/CheckFunctionExists.c.o:(main) clang-10: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Determining if the include file libdwarf/dwarf.h exists failed with the following output: Change Dir: /var/tmp/portage/dev-util/apitrace-9.0-r1/work/apitrace-9.0_build-abi_x86_64.amd64/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_fd9aa && [1/2] Building C object CMakeFiles/cmTC_fd9aa.dir/CheckIncludeFile.c.o FAILED: CMakeFiles/cmTC_fd9aa.dir/CheckIncludeFile.c.o /usr/lib/llvm/10/bin/x86_64-pc-linux-gnu-clang -D_GNU_SOURCE -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -fvisibility=hidden -Wall -Wno-sign-compare -fno-strict-aliasing -fmessage-length=0 -fno-omit-frame-pointer -MD -MT CMakeFiles/cmTC_fd9aa.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_fd9aa.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_fd9aa.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c CheckIncludeFile.c:1:10: fatal error: 'libdwarf/dwarf.h' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed.