Performing C++ SOURCE FILE Test LLVM_HAS_ATOMICS failed with the following output: Change Dir: /home/naourr/work/instance-1/output/build/i2pd-2.22.0/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_d4386/fast" gmake[1]: Entering directory '/home/naourr/work/instance-1/output/build/i2pd-2.22.0/build/CMakeFiles/CMakeTmp' /usr/bin/gmake -f CMakeFiles/cmTC_d4386.dir/build.make CMakeFiles/cmTC_d4386.dir/build gmake[2]: Entering directory '/home/naourr/work/instance-1/output/build/i2pd-2.22.0/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_d4386.dir/src.cxx.o /home/naourr/work/instance-1/output/host/bin/sparc-linux-g++ --sysroot=/home/naourr/work/instance-1/output/host/sparc-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wextra -Winvalid-pch -Wno-unused-parameter -std=c++11 -pipe -fPIC -DLLVM_HAS_ATOMICS -DNDEBUG -o CMakeFiles/cmTC_d4386.dir/src.cxx.o -c /home/naourr/work/instance-1/output/build/i2pd-2.22.0/build/CMakeFiles/CMakeTmp/src.cxx Linking CXX executable cmTC_d4386 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d4386.dir/link.txt --verbose=1 /home/naourr/work/instance-1/output/host/bin/sparc-linux-g++ --sysroot=/home/naourr/work/instance-1/output/host/sparc-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wextra -Winvalid-pch -Wno-unused-parameter -std=c++11 -pipe -fPIC -DLLVM_HAS_ATOMICS -DNDEBUG CMakeFiles/cmTC_d4386.dir/src.cxx.o -o cmTC_d4386 CMakeFiles/cmTC_d4386.dir/src.cxx.o: In function `main': src.cxx:(.text.startup+0x20): undefined reference to `__sync_val_compare_and_swap_4' src.cxx:(.text.startup+0x2c): undefined reference to `__sync_add_and_fetch_4' src.cxx:(.text.startup+0x38): undefined reference to `__sync_sub_and_fetch_4' collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/cmTC_d4386.dir/build.make:87: cmTC_d4386] Error 1 gmake[2]: Leaving directory '/home/naourr/work/instance-1/output/build/i2pd-2.22.0/build/CMakeFiles/CMakeTmp' gmake[1]: *** [Makefile:121: cmTC_d4386/fast] Error 2 gmake[1]: Leaving directory '/home/naourr/work/instance-1/output/build/i2pd-2.22.0/build/CMakeFiles/CMakeTmp' Source file was: #ifdef _MSC_VER #include /* Workaround for PR19898. */ #include #endif int main() { #ifdef _MSC_VER volatile LONG val = 1; MemoryBarrier(); InterlockedCompareExchange(&val, 0, 1); InterlockedIncrement(&val); InterlockedDecrement(&val); #else volatile unsigned long val = 1; __sync_synchronize(); __sync_val_compare_and_swap(&val, 1, 0); __sync_add_and_fetch(&val, 1); __sync_sub_and_fetch(&val, 1); #endif return 0; }