Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/pilab/pyside-setup/build/qfpd-py3.9-qt6.2.4-32bit-debug/build/pyside-tools/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_b1a4e && [1/2] Building C object CMakeFiles/cmTC_b1a4e.dir/src.c.o [2/2] Linking C executable cmTC_b1a4e FAILED: cmTC_b1a4e : && /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_b1a4e.dir/src.c.o -o cmTC_b1a4e && : /usr/bin/ld: CMakeFiles/cmTC_b1a4e.dir/src.c.o: in function `main': src.c:(.text+0x40): undefined reference to `pthread_create' /usr/bin/ld: src.c:(.text+0x4c): undefined reference to `pthread_detach' /usr/bin/ld: src.c:(.text+0x58): undefined reference to `pthread_cancel' /usr/bin/ld: src.c:(.text+0x68): undefined reference to `pthread_join' collect2: error: ld returned 1 exit status 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; } Performing C++ SOURCE FILE Test HAVE_STDATOMIC failed with the following output: Change Dir: /home/pilab/pyside-setup/build/qfpd-py3.9-qt6.2.4-32bit-debug/build/pyside-tools/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_e3d81 && [1/2] Building CXX object CMakeFiles/cmTC_e3d81.dir/src.cxx.o [2/2] Linking CXX executable cmTC_e3d81 FAILED: cmTC_e3d81 : && /usr/bin/c++ -DHAVE_STDATOMIC CMakeFiles/cmTC_e3d81.dir/src.cxx.o -o cmTC_e3d81 && : /usr/bin/ld: CMakeFiles/cmTC_e3d81.dir/src.cxx.o: in function `test(std::atomic volatile&)': src.cxx:(.text+0x40): undefined reference to `__atomic_load_8' /usr/bin/ld: src.cxx:(.text+0xbc): undefined reference to `__atomic_compare_exchange_8' /usr/bin/ld: src.cxx:(.text+0x108): undefined reference to `__atomic_exchange_8' /usr/bin/ld: src.cxx:(.text+0x160): undefined reference to `__atomic_store_8' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: #include #include void test(volatile std::atomic &a) { std::int64_t v = a.load(std::memory_order_acquire); while (!a.compare_exchange_strong(v, v + 1, std::memory_order_acq_rel, std::memory_order_acquire)) { v = a.exchange(v - 1); } a.store(v + 1, std::memory_order_release); } int main(int, char **) { void *ptr = (void*)0xffffffc0; // any random pointer test(*reinterpret_cast *>(ptr)); return 0; }