Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /var/tmp/portage/net-p2p/monero-0.17.1.9/work/monero-0.17.1.9_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_05eb9 && [1/2] Building C object CMakeFiles/cmTC_05eb9.dir/src.c.o [2/2] Linking C executable cmTC_05eb9 FAILED: cmTC_05eb9 : && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/cmTC_05eb9.dir/src.c.o -o cmTC_05eb9 && : /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/cmTC_05eb9.dir/src.c.o: in function `main': src.c:(.text.startup+0x23): undefined reference to `pthread_create' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src.c:(.text.startup+0x2c): undefined reference to `pthread_detach' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src.c:(.text.startup+0x35): undefined reference to `pthread_cancel' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src.c:(.text.startup+0x40): undefined reference to `pthread_join' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: #include <pthread.h> static 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 memset_s exists in the c failed with the following output: Change Dir: /var/tmp/portage/net-p2p/monero-0.17.1.9/work/monero-0.17.1.9_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_d53cf && [1/2] Building C object CMakeFiles/cmTC_d53cf.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_d53cf FAILED: cmTC_d53cf : && /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -pthread -DCHECK_FUNCTION_EXISTS=memset_s -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/cmTC_d53cf.dir/CheckFunctionExists.c.o -o cmTC_d53cf -L/var/tmp/portage/net-p2p/monero-0.17.1.9/work/monero-0.17.1.9_build/CMakeFiles/CMakeTmp/string.h -Wl,-rpath,/var/tmp/portage/net-p2p/monero-0.17.1.9/work/monero-0.17.1.9_build/CMakeFiles/CMakeTmp/string.h -lc && : /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/cmTC_d53cf.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0xc): undefined reference to `memset_s' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Determining if the -Wl,-z,noexecheap linker flag is supported failed with the following output: Change Dir: /var/tmp/portage/net-p2p/monero-0.17.1.9/work/monero-0.17.1.9_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_9ff90 && [1/2] Building C object CMakeFiles/cmTC_9ff90.dir/CheckLinkerFlag.c.o [2/2] Linking C executable cmTC_9ff90 /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: -z noexecheap ignored