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/vhostmd.spec'], chrootPath='/var/lib/mock/f40-build-771218-125911/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/vhostmd.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=1689984000 Wrote: /builddir/build/SRPMS/vhostmd-1.1-14.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/vhostmd.spec'], chrootPath='/var/lib/mock/f40-build-771218-125911/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/vhostmd.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=1689984000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4mDL4d + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf vhostmd-1.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/vhostmd-1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd vhostmd-1.1 + rm -rf /builddir/build/BUILD/vhostmd-1.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/vhostmd-1.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'vhostmd-1.1 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Relax-virtio-requirement-in-config-file.patch + /usr/bin/git apply --index --reject - Checking patch vhostmd.dtd... Applied patch vhostmd.dtd cleanly. + /usr/bin/git commit -q -m 0001-Relax-virtio-requirement-in-config-file.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-libmetrics-Set-pointer-NULL-after-free.patch + /usr/bin/git apply --index --reject - Checking patch libmetrics/libmetrics.c... Applied patch libmetrics/libmetrics.c cleanly. + /usr/bin/git commit -q -m 0002-libmetrics-Set-pointer-NULL-after-free.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0003-libmetrics-Initialize-local-variable-ret-to-failure.patch + /usr/bin/git apply --index --reject - Checking patch libmetrics/libmetrics.c... Applied patch libmetrics/libmetrics.c cleanly. + /usr/bin/git commit -q -m 0003-libmetrics-Initialize-local-variable-ret-to-failure.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0004-libmetrics-Check-return-value-of-asprintf.patch + /usr/bin/git apply --index --reject - :60: trailing whitespace. goto out; Checking patch libmetrics/libmetrics.c... Applied patch libmetrics/libmetrics.c cleanly. warning: 1 line adds whitespace errors. + /usr/bin/git commit -q -m 0004-libmetrics-Check-return-value-of-asprintf.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0005-libmetrics-Remove-unsafe-XML_PARSE_NOENT-option.patch + /usr/bin/git apply --index --reject - :34: trailing whitespace. mdisk->length, "mdisk.xml", NULL, Checking patch libmetrics/libmetrics.c... Applied patch libmetrics/libmetrics.c cleanly. warning: 1 line adds whitespace errors. + /usr/bin/git commit -q -m 0005-libmetrics-Remove-unsafe-XML_PARSE_NOENT-option.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0006-libmetrics-Ensure-libmetrics-mutex-is-unlocked-in-er.patch + /usr/bin/git apply --index --reject - Checking patch libmetrics/libmetrics.c... Applied patch libmetrics/libmetrics.c cleanly. + /usr/bin/git commit -q -m 0006-libmetrics-Ensure-libmetrics-mutex-is-unlocked-in-er.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0007-libmetrics-Fix-potential-memory-leak.patch + /usr/bin/git apply --index --reject - :26: trailing whitespace. Checking patch libmetrics/libmetrics.c... Applied patch libmetrics/libmetrics.c cleanly. warning: 1 line adds whitespace errors. + /usr/bin/git commit -q -m 0007-libmetrics-Fix-potential-memory-leak.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0008-libmetrics-Use-proper-conversion-specifier-when-call.patch + /usr/bin/git apply --index --reject - Checking patch libmetrics/libmetrics.c... Applied patch libmetrics/libmetrics.c cleanly. + /usr/bin/git commit -q -m 0008-libmetrics-Use-proper-conversion-specifier-when-call.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0009-libmetrics-Fix-potential-leak-of-FILE-pointer.patch + /usr/bin/git apply --index --reject - Checking patch libmetrics/libmetrics.c... Applied patch libmetrics/libmetrics.c cleanly. + /usr/bin/git commit -q -m 0009-libmetrics-Fix-potential-leak-of-FILE-pointer.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0010-util-Add-missing-call-to-va_end.patch + /usr/bin/git apply --index --reject - Checking patch vhostmd/util.c... Applied patch vhostmd/util.c cleanly. + /usr/bin/git commit -q -m 0010-util-Add-missing-call-to-va_end.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0011-util-Fix-potential-memory-leak.patch + /usr/bin/git apply --index --reject - Checking patch vhostmd/util.c... Applied patch vhostmd/util.c cleanly. + /usr/bin/git commit -q -m 0011-util-Fix-potential-memory-leak.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0012-util-Check-return-value-of-strstr.patch + /usr/bin/git apply --index --reject - Checking patch vhostmd/util.c... Applied patch vhostmd/util.c cleanly. + /usr/bin/git commit -q -m 0012-util-Check-return-value-of-strstr.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0013-Check-return-value-of-asprintf.patch + /usr/bin/git apply --index --reject - Checking patch vhostmd/util.c... Checking patch vhostmd/vhostmd.c... Applied patch vhostmd/util.c cleanly. Applied patch vhostmd/vhostmd.c cleanly. + /usr/bin/git commit -q -m 0013-Check-return-value-of-asprintf.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0014-vhostmd-Fix-memory-leak-in-parse_transports.patch + /usr/bin/git apply --index --reject - Checking patch vhostmd/vhostmd.c... Applied patch vhostmd/vhostmd.c cleanly. + /usr/bin/git commit -q -m 0014-vhostmd-Fix-memory-leak-in-parse_transports.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0015-vhostmd-Remove-unsafe-XML_PARSE_NOENT-option.patch + /usr/bin/git apply --index --reject - Checking patch vhostmd/vhostmd.c... Applied patch vhostmd/vhostmd.c cleanly. + /usr/bin/git commit -q -m 0015-vhostmd-Remove-unsafe-XML_PARSE_NOENT-option.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0016-vhostmd-Check-return-value-of-file-functions.patch + /usr/bin/git apply --index --reject - :48: trailing whitespace. Checking patch vhostmd/vhostmd.c... Applied patch vhostmd/vhostmd.c cleanly. warning: 1 line adds whitespace errors. + /usr/bin/git commit -q -m 0016-vhostmd-Check-return-value-of-file-functions.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0017-vhostmd-Check-for-valide-file-handle-before-calling-.patch + /usr/bin/git apply --index --reject - Checking patch vhostmd/vhostmd.c... Applied patch vhostmd/vhostmd.c cleanly. + /usr/bin/git commit -q -m 0017-vhostmd-Check-for-valide-file-handle-before-calling-.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0018-vhostmd-Fix-memory-leak-in-vhostmd_run.patch + /usr/bin/git apply --index --reject - Checking patch vhostmd/vhostmd.c... Applied patch vhostmd/vhostmd.c cleanly. + /usr/bin/git commit -q -m 0018-vhostmd-Fix-memory-leak-in-vhostmd_run.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0019-virtio-Fix-strncpy-length-parameter.patch + /usr/bin/git apply --index --reject - Checking patch vhostmd/virtio.c... Applied patch vhostmd/virtio.c cleanly. + /usr/bin/git commit -q -m 0019-virtio-Fix-strncpy-length-parameter.patch --author 'rpm-build ' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2v7Yfr + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -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 vhostmd-1.1 + autoreconf -i libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:6: warning: The macro `AC_GNU_SOURCE' is obsolete. configure.ac:6: You should run autoupdate. ./lib/autoconf/specific.m4:312: AC_GNU_SOURCE is expanded from... configure.ac:6: the top level configure.ac:9: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:9: You should run autoupdate. aclocal.m4:122: AC_PROG_LIBTOOL is expanded from... configure.ac:9: the top level configure.ac:78: warning: AC_OUTPUT should be used without arguments. configure.ac:78: You should run autoupdate. configure.ac:6: installing './compile' configure.ac:9: installing './config.guess' configure.ac:9: installing './config.sub' configure.ac:7: installing './install-sh' configure.ac:7: installing './missing' libmetrics/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') libmetrics/Makefile.am: installing './depcomp' test/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') vhostmd/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') vm-dump-metrics/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -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 + '[' x '!=' x ']' + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh ++ grep -q runstatedir=DIR ./configure ++ echo --runstatedir=/run + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --without-xenstore --with-init-script=systemd --enable-shared --disable-static checking for riscv64-redhat-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking for vfork.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of gcc... none checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop checking how to convert riscv64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for riscv64-redhat-linux-gnu-file... no checking for file... file checking for riscv64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for riscv64-redhat-linux-gnu-strip... no checking for strip... strip checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for riscv64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for fcntl.h... yes checking for limits.h... yes checking for paths.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking for pid_t... yes checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for dup2... yes checking for strdup... yes checking for strerror... yes checking for strtol... yes checking for an ANSI C-conforming const... yes checking for riscv64-redhat-linux-gnu-pkg-config... /usr/bin/riscv64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for libxml-2.0... yes checking for libvirt... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating vhostmd/Makefile config.status: creating include/Makefile config.status: creating libmetrics/Makefile config.status: creating scripts/Makefile config.status: creating docs/Makefile config.status: creating docs/man/Makefile config.status: creating vm-dump-metrics/Makefile config.status: creating test/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands You may now run make + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/vhostmd-1.1' Making all in vhostmd make[2]: Entering directory '/builddir/build/BUILD/vhostmd-1.1/vhostmd' gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONF_DIR=\""/etc"\" -I../include -I/usr/include/libxml2 -Wall -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -c -o vhostmd-vhostmd.o `test -f 'vhostmd.c' || echo './'`vhostmd.c gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONF_DIR=\""/etc"\" -I../include -I/usr/include/libxml2 -Wall -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -c -o vhostmd-util.o `test -f 'util.c' || echo './'`util.c gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONF_DIR=\""/etc"\" -I../include -I/usr/include/libxml2 -Wall -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -c -o vhostmd-metric.o `test -f 'metric.c' || echo './'`metric.c gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONF_DIR=\""/etc"\" -I../include -I/usr/include/libxml2 -Wall -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -c -o vhostmd-virt-util.o `test -f 'virt-util.c' || echo './'`virt-util.c metric.c: In function ‘metric_value_get’: metric.c:282:4: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 282 | fread(m->value, 1, len-1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ virt-util.c: In function ‘vu_get_vm’: virt-util.c:96:9: error: implicit declaration of function ‘calloc’ [-Werror=implicit-function-declaration] 96 | vm = calloc(1, sizeof(vu_vm)); | ^~~~~~ virt-util.c:28:1: note: include ‘’ or provide a declaration of ‘calloc’ 27 | #include "util.h" +++ |+#include 28 | virt-util.c:96:9: warning: incompatible implicit declaration of built-in function ‘calloc’ [-Wbuiltin-declaration-mismatch] 96 | vm = calloc(1, sizeof(vu_vm)); | ^~~~~~ virt-util.c:96:9: note: include ‘’ or provide a declaration of ‘calloc’ virt-util.c: In function ‘vu_vm_free’: virt-util.c:129:10: error: implicit declaration of function ‘free’ [-Werror=implicit-function-declaration] 129 | free(vm->name); | ^~~~ virt-util.c:129:10: note: include ‘’ or provide a declaration of ‘free’ virt-util.c:129:10: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] virt-util.c:129:10: note: include ‘’ or provide a declaration of ‘free’ virt-util.c:131:10: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] 131 | free(vm->uuid); | ^~~~ virt-util.c:131:10: note: include ‘’ or provide a declaration of ‘free’ virt-util.c:132:7: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] 132 | free(vm); | ^~~~ virt-util.c:132:7: note: include ‘’ or provide a declaration of ‘free’ cc1: some warnings being treated as errors make[2]: *** [Makefile:497: vhostmd-virt-util.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/vhostmd-1.1/vhostmd' make[1]: *** [Makefile:456: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/vhostmd-1.1' make: *** [Makefile:367: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.2v7Yfr (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.2v7Yfr (%build) 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/vhostmd.spec