Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/openscap.spec'], chrootPath='/var/lib/mock/f40-build-800125-142746/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/openscap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1704326400 Wrote: /builddir/build/SRPMS/openscap-1.3.9-5.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/openscap.spec'], chrootPath='/var/lib/mock/f40-build-800125-142746/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/openscap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1704326400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yT8tTJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf openscap-1.3.9 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/openscap-1.3.9.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd openscap-1.3.9 + rm -rf /builddir/build/BUILD/openscap-1.3.9-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/openscap-1.3.9-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/openscap-1.3.9-perlpath.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/openscap-1.3.9-includes.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/openscap-1.3.10-fix_sysctl_probe_tests-PR-2050.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/openscap-c99.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/openscap-c99-2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VkRuLG + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd openscap-1.3.9 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/cmake -S . -B redhat-linux-build -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_DO_STRIP:BOOL=OFF -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 -DWITH_PCRE2=ON -DENABLE_PERL=ON -DENABLE_DOCS=ON -DOPENSCAP_PROBE_UNIX_GCONF=OFF -DGCONF_LIBRARY= -- Setting build type to 'Release' as none was specified. -- The C compiler identification is GNU 14.0.1 -- The CXX compiler identification is GNU 14.0.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- OpenSCAP 1.3.9 -- (see /builddir/build/BUILD/openscap-1.3.9/docs/developer/developer.adoc for build instructions) -- -- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.0") -- Checking for module 'libacl' -- Found libacl, version 2.3.2 -- Found ACL -- Looking for acl_extended_file in /usr/lib64/libacl.so -- Looking for acl_extended_file in /usr/lib64/libacl.so - found -- Looking for acl/libacl.h -- Looking for acl/libacl.h - found -- Looking for sys/acl.h -- Looking for sys/acl.h - found -- Found apt-pkg: /usr/lib64/libapt-pkg.so -- Checking for module 'popt' -- Found popt, version 1.19 -- Found BLKID -- Looking for blkid_get_tag_value in /usr/lib64/libblkid.so -- Looking for blkid_get_tag_value in /usr/lib64/libblkid.so - found -- Found Cap: /usr/lib64/libcap.so -- Looking for cap_get_pid in /usr/lib64/libcap.so -- Looking for cap_get_pid in /usr/lib64/libcap.so - found -- Found CURL: /usr/lib64/libcurl.so (found version "8.6.0") -- Found DBUS: /usr/include/dbus-1.0;/usr/lib64/dbus-1.0/include -- Found Doxygen: /usr/bin/doxygen (found version "1.10.0") found components: doxygen dot -- Checking for module 'glib-2.0' -- Found glib-2.0, version 2.79.1 -- Found GLib -- Checking for module 'gobject-2.0' -- Found gobject-2.0, version 2.79.1 -- Found GObject -- Checking for module 'gconf-2.0' -- Package 'gconf-2.0', required by 'virtual:world', not found -- Found ldap: /usr/lib64/libldap.so;/usr/lib64/liblber.so -- Checking for module 'opendbx' -- Found opendbx, version 1.4.6 -- Found OPENDBX -- Found PCRE2: /usr/lib64/libpcre2-8.so -- Found Perl: /usr/bin/perl (found version "5.38.2") -- Found PerlLibs: /usr/lib64/libperl.so (found version "5.38.2") -- Checking for module 'popt' -- Found popt, version 1.19 -- Found POPT -- Checking for module 'systemd' -- Package 'systemd', required by 'virtual:world', not found -- Checking for module 'libprocps' -- Package 'libprocps', required by 'virtual:world', not found CMake Warning (dev) at CMakeLists.txt:129 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.12.2", minimum required is "3") CMake Warning (dev) at CMakeLists.txt:130 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. -- Found PythonLibs: /usr/lib64/libpython3.12.so (found suitable version "3.12.2", minimum required is "3") -- Checking for module 'rpm' -- Found rpm, version 4.19.1.1 -- Found RPM 4.19.1.1 -- Looking for rpmReadConfigFiles in /usr/lib64/librpm.so -- Looking for rpmReadConfigFiles in /usr/lib64/librpm.so - found -- Looking for headerFormat in /usr/lib64/librpm.so -- Looking for headerFormat in /usr/lib64/librpm.so - found -- Looking for rpmFreeCrypto in /usr/lib64/librpmio.so -- Looking for rpmFreeCrypto in /usr/lib64/librpmio.so - found -- Looking for rpmFreeFilesystems in /usr/lib64/librpm.so -- Looking for rpmFreeFilesystems in /usr/lib64/librpm.so - not found -- Looking for rpmVerifyFile in /usr/lib64/librpm.so -- Looking for rpmVerifyFile in /usr/lib64/librpm.so - not found -- Checking for module 'libselinux' -- Found libselinux, version 3.6 -- Found SELINUX -- Found SWIG: /usr/bin/swig (found version "4.2.1") -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.12.5") -- Found LibXslt: /usr/lib64/libxslt.so (found version "1.1.39") -- Checking for module 'xmlsec1' -- Found xmlsec1, version 1.2.37 -- Checking for module 'xmlsec1-openssl' -- Found xmlsec1-openssl, version 1.2.37 -- Found XMLSEC -- Found OpenSSL: /usr/lib64/libcrypto.so (found version "3.1.4") -- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.8") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Looking for pthread_timedjoin_np in pthread -- Looking for pthread_timedjoin_np in pthread - found -- Looking for pthread_setname_np in pthread -- Looking for pthread_setname_np in pthread - found -- Looking for pthread_getname_np in pthread -- Looking for pthread_getname_np in pthread - found -- Found GCrypt: /usr/lib64/libgcrypt.so -- Checking for module 'yaml-0.1' -- Found yaml-0.1, version 0.2.5 -- Found LIBYAML -- yaml-filter was found -- Looking for clock_gettime in rt -- Using PCRE2 -- Looking for clock_gettime in rt - found -- Looking for posix_memalign -- Looking for posix_memalign - found -- Looking for memalign -- Looking for memalign - found -- Looking for fts_open -- Looking for fts_open - found -- Looking for strsep -- Looking for strsep - found -- Looking for strptime -- Looking for strptime - found -- Looking for syslog.h -- Looking for syslog.h - found -- Looking for stdio_ext.h -- Looking for stdio_ext.h - found -- Looking for shadow.h -- Looking for shadow.h - found -- Looking for sys/systeminfo.h -- Looking for sys/systeminfo.h - not found -- Looking for getopt.h -- Looking for getopt.h - found -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for sys/uio.h -- Looking for sys/uio.h - found -- Looking for sys/xattr.h -- Looking for sys/xattr.h - found -- Looking for attr/xattr.h -- Looking for attr/xattr.h - found -- Looking for include files sys/types.h, sys/extattr.h -- Looking for include files sys/types.h, sys/extattr.h - not found -- Performing Test HAVE_ATOMIC_BUILTINS -- Performing Test HAVE_ATOMIC_BUILTINS - Success -- -- CMake: -- generator: Unix Makefiles -- source directory: /builddir/build/BUILD/openscap-1.3.9 -- build directory: /builddir/build/BUILD/openscap-1.3.9/redhat-linux-build -- -- Core features: -- SCE: ON -- -- OVAL: -- base probe support: ON -- SEAP msgid bit-size: 32 -- SHA-1: ON -- MD5: ON -- -- Independent probes: ON -- Independent environmentvariable probe: ON -- Independent family probe: ON -- Independent system info probe: ON -- Independent variable probe: ON -- -- Independent probes incompatible with WIN32 (WIN32 status: FALSE) -- Independent environmentvariable58 probe: ON -- Independent filehash probe: ON -- Independent filehash58 probe: ON -- Independent sql probe (depends on opendbx): ON -- Independent sql57 probe (depends on opendbx): ON -- Independent textfilecontent probe: ON -- Independent textfilecontent54 probe: ON -- Independent xmlfilecontent probe: ON -- Independent yamlfilecontent probe (depends on libyaml, yaml-path): ON -- -- Unix probes: ON -- Unix dnscache probe: ON -- Unix file probe: ON -- Unix fileextendedattribute probe (depends on xattrh): ON -- Unix gconf probe (depends on gconf): OFF -- Unix interface probe: ON -- Unix password probe: ON -- Unix process probe: ON -- Unix process58 probe (depends on CAP): ON -- Unix routingtable probe: ON -- Unix runlevel probe: ON -- Unix shadow probe: ON -- Unix symlink probe: ON -- Unix sysctl probe: ON -- Unix uname probe: ON -- Unix xinetd probe: ON -- -- Linux probes: ON -- Linux dpkginfo probe (depends on aptpkg): ON -- Linux iflisteners probe: ON -- Linux inetlisteningservers probe: ON -- Linux partition probe (depends on blkid): ON -- Linux rpminfo probe (depends on rpm): ON -- Linux rpmverify probe (depends on rpm): ON -- Linux rpmverifyfile probe (depends on rpm): ON -- Linux rpmverifypackage probe (depends on rpm): ON -- Linux selinuxboolean probe (depends on selinux): ON -- Linux selinuxsecuritycontext probe (depends on selinux): ON -- Linux systemdunitdependency probe (depends on dbus): ON -- Linux systemdunitproperty probe (depends on dbus): ON -- Linux fwupdsecurityattr probe (depends on dbus): ON -- -- Solaris probes: OFF -- Solaris isainfo probe: OFF -- -- Windows probes: OFF -- Windows accesstoken probe: OFF -- Windows registry probe: OFF -- Windows wmi57 probe: OFF -- -- Language bindings: -- python3 bindings: ON -- perl bindings: ON -- -- Utilities: -- oscap: ON -- oscap-docker: ON -- scap-as-rpm: ON -- oscap-ssh: ON -- oscap-vm: ON -- oscap-podman: ON -- oscap-chroot: ON -- autotailor: ON -- -- Testing: -- tests: ON -- valgrind: OFF -- MITRE: OFF -- -- Documentation: -- enabled: ON -- doxygen: /usr/bin/doxygen -- dot (graphviz): /usr/bin/dot -- asciidoc: /usr/bin/asciidoc Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'distutils' CMake Error at utils/CMakeLists.txt:100 (install): install DIRECTORY given no DESTINATION! CMake Deprecation Warning at swig/CMakeLists.txt:4 (cmake_policy): The OLD behavior for policy CMP0078 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. CMake Deprecation Warning at swig/CMakeLists.txt:10 (cmake_policy): The OLD behavior for policy CMP0086 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'distutils' CMake Error at swig/python3/CMakeLists.txt:35 (install): install TARGETS given no LIBRARY DESTINATION for module target "_openscap_py". CMake Error at swig/python3/CMakeLists.txt:38 (install): install PROGRAMS given no DESTINATION! -- Configuring incomplete, errors occurred! error: Bad exit status from /var/tmp/rpm-tmp.VkRuLG (%build) Bad exit status from /var/tmp/rpm-tmp.VkRuLG (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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/openscap.spec