Performing C++ SOURCE FILE Test HAVE_CXX_ATOMICS64_WITHOUT_LIB failed with the following output: Change Dir: /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_1de94/fast && gmake[1]: Entering directory `/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' /usr/bin/gmake -f CMakeFiles/cmTC_1de94.dir/build.make CMakeFiles/cmTC_1de94.dir/build gmake[2]: Entering directory `/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_1de94.dir/src.cxx.o /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/bin/nios2-linux-g++ --sysroot=/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/nios2-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wconversion -pedantic -Wextra -Wno-missing-field-initializers -DHAVE_CXX_ATOMICS64_WITHOUT_LIB -std=c++11 -DNDEBUG -o CMakeFiles/cmTC_1de94.dir/src.cxx.o -c /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp/src.cxx /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp/src.cxx: In function 'int main()': /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp/src.cxx:6:12: warning: unused variable 'i' [-Wunused-variable] uint64_t i = x.load(std::memory_order_relaxed); ^ Linking CXX executable cmTC_1de94 /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1de94.dir/link.txt --verbose=1 /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/bin/nios2-linux-g++ --sysroot=/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/nios2-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wconversion -pedantic -Wextra -Wno-missing-field-initializers -DHAVE_CXX_ATOMICS64_WITHOUT_LIB -std=c++11 -DNDEBUG CMakeFiles/cmTC_1de94.dir/src.cxx.o -o cmTC_1de94 /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/nios2-buildroot-linux-gnu/8.3.0/../../../../nios2-buildroot-linux-gnu/bin/ld: CMakeFiles/cmTC_1de94.dir/src.cxx.o: in function `main': src.cxx:(.text.startup+0x8): undefined reference to `__atomic_load_8' /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/nios2-buildroot-linux-gnu/8.3.0/../../../../nios2-buildroot-linux-gnu/bin/ld: src.cxx:(.text.startup+0x1c): undefined reference to `__atomic_load_8' collect2: error: ld returned 1 exit status gmake[2]: *** [cmTC_1de94] Error 1 gmake[2]: Leaving directory `/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' gmake[1]: *** [cmTC_1de94/fast] Error 2 gmake[1]: Leaving directory `/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' Source file was: #include #include std::atomic x (0); int main() { uint64_t i = x.load(std::memory_order_relaxed); return 0; } Determining if the function __atomic_load_8 exists in the atomic failed with the following output: Change Dir: /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_8a8e3/fast && gmake[1]: Entering directory `/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' /usr/bin/gmake -f CMakeFiles/cmTC_8a8e3.dir/build.make CMakeFiles/cmTC_8a8e3.dir/build gmake[2]: Entering directory `/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_8a8e3.dir/CheckFunctionExists.cxx.o /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/bin/nios2-linux-g++ --sysroot=/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/host/nios2-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wconversion -pedantic -Wextra -Wno-missing-field-initializers -DCHECK_FUNCTION_EXISTS=__atomic_load_8 -DNDEBUG -o CMakeFiles/cmTC_8a8e3.dir/CheckFunctionExists.cxx.o -c /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx : error: new declaration 'char __atomic_load_8()' ambiguates built-in declaration 'long long unsigned int __atomic_load_8(const volatile void*, int)' [-fpermissive] /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:7:3: note: in expansion of macro 'CHECK_FUNCTION_EXISTS' CHECK_FUNCTION_EXISTS(void); ^~~~~~~~~~~~~~~~~~~~~ /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx: In function 'int main(int, char**)': /usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx:17:25: error: too few arguments to function 'long long unsigned int __atomic_load_8(const volatile void*, int)' CHECK_FUNCTION_EXISTS(); ^ gmake[2]: *** [CMakeFiles/cmTC_8a8e3.dir/CheckFunctionExists.cxx.o] Error 1 gmake[2]: Leaving directory `/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' gmake[1]: *** [cmTC_8a8e3/fast] Error 2 gmake[1]: Leaving directory `/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp'