+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/cswrap.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mEZmKN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cswrap-1.4.0 + /usr/bin/tar -xof - + /usr/bin/xz -dc /builddir/build/SOURCES/cswrap-1.4.0.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd cswrap-1.4.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -e s/CSWRAP_TIMEOUT=1/CSWRAP_TIMEOUT=2/ -e 's/after 1s/after 2s/' -e 's/sleep 2/sleep 4/' -e 's/sleep 1/sleep 2/' -i tests/0004-exit-status-and-signals/runtest.sh + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VnNzpb + umask 022 + cd /builddir/build/BUILD + cd cswrap-1.4.0 + mkdir cswrap_build + cd cswrap_build + export 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPATH_TO_WRAP=\"/usr/lib64/cswrap\"' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPATH_TO_WRAP=\"/usr/lib64/cswrap\"' + export 'LDFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -static -pthread' + LDFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -static -pthread' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPATH_TO_WRAP=\"/usr/lib64/cswrap\"' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -static -pthread' + export LDFLAGS + /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON .. -- The C compiler identification is GNU 7.3.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- broken CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: /builddir/build/BUILD/cswrap-1.4.0/cswrap_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_5d6dc/fast" /usr/bin/gmake -f CMakeFiles/cmTC_5d6dc.dir/build.make CMakeFiles/cmTC_5d6dc.dir/build gmake[1]: Entering directory '/builddir/build/BUILD/cswrap-1.4.0/cswrap_build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_5d6dc.dir/testCCompiler.c.o /usr/bin/cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPATH_TO_WRAP=\"/usr/lib64/cswrap\" -o CMakeFiles/cmTC_5d6dc.dir/testCCompiler.c.o -c /builddir/build/BUILD/cswrap-1.4.0/cswrap_build/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTC_5d6dc /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5d6dc.dir/link.txt --verbose=1 /usr/bin/cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPATH_TO_WRAP=\"/usr/lib64/cswrap\" -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -static -pthread -rdynamic CMakeFiles/cmTC_5d6dc.dir/testCCompiler.c.o -o cmTC_5d6dc /usr/bin/ld: cannot find -latomic collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_5d6dc.dir/build.make:98: cmTC_5d6dc] Error 1 gmake[1]: Leaving directory '/builddir/build/BUILD/cswrap-1.4.0/cswrap_build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:126: cmTC_5d6dc/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/cswrap-1.4.0/cswrap_build/CMakeFiles/CMakeOutput.log". See also "/builddir/build/BUILD/cswrap-1.4.0/cswrap_build/CMakeFiles/CMakeError.log". error: Bad exit status from /var/tmp/rpm-tmp.VnNzpb (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.VnNzpb (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff