:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -- The C compiler identification is GNU 10.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc - broken CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:66 (message): The C compiler "/usr/bin/gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /builddir/build/BUILD/cscppc-1.8.1/riscv64-redhat-linux-gnu/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_5a935/fast && /usr/bin/gmake -f CMakeFiles/cmTC_5a935.dir/build.make CMakeFiles/cmTC_5a935.dir/build gmake[1]: Entering directory '/builddir/build/BUILD/cscppc-1.8.1/riscv64-redhat-linux-gnu/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_5a935.dir/testCCompiler.c.o /usr/bin/gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DPATH_TO_CSCPPC=\"/usr/lib64/cscppc\" -DPATH_TO_CSCLNG=\"/usr/lib64/csclng\" -DPATH_TO_CSGCCA=\"/usr/lib64/csgcca\" -DPATH_TO_CSMATCH=\"/usr/lib64/csmatch\" -o CMakeFiles/cmTC_5a935.dir/testCCompiler.c.o -c /builddir/build/BUILD/cscppc-1.8.1/riscv64-redhat-linux-gnu/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTC_5a935 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5a935.dir/link.txt --verbose=1 /usr/bin/gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DPATH_TO_CSCPPC=\"/usr/lib64/cscppc\" -DPATH_TO_CSCLNG=\"/usr/lib64/csclng\" -DPATH_TO_CSGCCA=\"/usr/lib64/csgcca\" -DPATH_TO_CSMATCH=\"/usr/lib64/csmatch\" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -static -pthread -rdynamic CMakeFiles/cmTC_5a935.dir/testCCompiler.c.o -o cmTC_5a935 /usr/bin/ld: cannot find -latomic collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_5a935.dir/build.make:106: cmTC_5a935] Error 1 gmake[1]: Leaving directory '/builddir/build/BUILD/cscppc-1.8.1/riscv64-redhat-linux-gnu/CMakeFiles/CMakeTmp' gmake: *** [Makefile:140: cmTC_5a935/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:19 (project) -- Configuring incomplete, errors occurred! See also "/builddir/build/BUILD/cscppc-1.8.1/riscv64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log". See also "/builddir/build/BUILD/cscppc-1.8.1/riscv64-redhat-linux-gnu/CMakeFiles/CMakeError.log". error: Bad exit status from /var/tmp/rpm-tmp.DOdleo (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.DOdleo (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/cscppc.spec