Mock Version: 5.6 Mock Version: 5.6 Mock Version: 5.6 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/ocaml-libvirt.spec'], chrootPath='/var/lib/mock/dist-ocs23-riscv-rva23-build-357643-41331/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=432000uid=993gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/ocaml-libvirt.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 Wrote: /builddir/build/SRPMS/ocaml-libvirt-0.6.1.7-9.ocs23.rva23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps --nocheck /builddir/build/SPECS/ocaml-libvirt.spec'], chrootPath='/var/lib/mock/dist-ocs23-riscv-rva23-build-357643-41331/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=432000uid=993gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps --nocheck /builddir/build/SPECS/ocaml-libvirt.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.p4hKAY + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libvirt-ocaml-v0.6.1.7 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/libvirt-ocaml-v0.6.1.7.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libvirt-ocaml-v0.6.1.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Zu2AKi + umask 022 + cd /builddir/build/BUILD + CFLAGS='-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -march=rva23u64 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-int -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -march=rva23u64 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-int -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -march=rva23u64 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-int -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -march=rva23u64 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-int -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libvirt-ocaml-v0.6.1.7 + unset MAKEFLAGS + autoreconf -i configure.ac:26: installing './compile' configure.ac:23: installing './missing' libvirt/Makefile.am: installing './depcomp' + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 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.guess + '[' -f /usr/lib/rpm/OpenCloudOS/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.guess ./config.guess '/usr/lib/rpm/OpenCloudOS/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/OpenCloudOS/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.sub ./config.sub '/usr/lib/rpm/OpenCloudOS/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-opencloudos-linux-gnu --host=riscv64-opencloudos-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 --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info 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 nested variables... yes checking for riscv64-opencloudos-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 whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for riscv64-opencloudos-linux-gnu-ranlib... no checking for ranlib... ranlib checking whether gcc and cc understand -c and -o together... yes checking build system type... riscv64-opencloudos-linux-gnu checking host system type... riscv64-opencloudos-linux-gnu checking for perl... perl checking for riscv64-opencloudos-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for libvirt >= 1.2.8... yes checking for riscv64-opencloudos-linux-gnu-ocamlc... no checking for ocamlc... ocamlc OCaml version is 5.2.0 OCaml library path is /usr/lib64/ocaml checking for riscv64-opencloudos-linux-gnu-ocamlopt... no checking for ocamlopt... ocamlopt checking for riscv64-opencloudos-linux-gnu-ocamlc.opt... no checking for ocamlc.opt... ocamlc.opt checking for riscv64-opencloudos-linux-gnu-ocamlopt.opt... no checking for ocamlopt.opt... ocamlopt.opt checking for riscv64-opencloudos-linux-gnu-ocamldep... no checking for ocamldep... ocamldep checking for riscv64-opencloudos-linux-gnu-ocamlmktop... no checking for ocamlmktop... ocamlmktop checking for riscv64-opencloudos-linux-gnu-ocamlmklib... no checking for ocamlmklib... ocamlmklib checking for riscv64-opencloudos-linux-gnu-ocamldoc... no checking for ocamldoc... ocamldoc checking for riscv64-opencloudos-linux-gnu-ocamlbuild... no checking for ocamlbuild... no checking for riscv64-opencloudos-linux-gnu-ocamlfind... no checking for ocamlfind... ocamlfind checking for OCaml findlib package unix... found ------------------------------------------------------------ Thanks for downloading ocaml-libvirt 0.6.1.7 ------------------------------------------------------------ checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating run config.status: creating Makefile config.status: creating libvirt/Makefile config.status: creating libvirt/libvirt_version.ml config.status: creating examples/Makefile config.status: creating libvirt/META config.status: creating libvirt/local/META.libvirt config.status: creating config.h config.status: executing depfiles commands + make make all-recursive make[1]: Entering directory '/builddir/build/BUILD/libvirt-ocaml-v0.6.1.7' Making all in libvirt make[2]: Entering directory '/builddir/build/BUILD/libvirt-ocaml-v0.6.1.7/libvirt' rm -f .depend ocamlfind ocamldep -package unix -one-line libvirt.mli libvirt_version.mli libvirt.ml libvirt_version.ml > .depend perl -w generator.pl generator.pl: written libvirt_generated.c make all-am make[3]: Entering directory '/builddir/build/BUILD/libvirt-ocaml-v0.6.1.7/libvirt' gcc -DHAVE_CONFIG_H -I. -I.. -DCAML_NAME_SPACE -I/usr/lib64/ocaml -Wall -fPIC -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -march=rva23u64 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-int -fasynchronous-unwind-tables -fstack-clash-protection -c -o libvirtocaml_a-libvirt_generated.o `test -f 'libvirt_generated.c' || echo './'`libvirt_generated.c gcc -DHAVE_CONFIG_H -I. -I.. -DCAML_NAME_SPACE -I/usr/lib64/ocaml -Wall -fPIC -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -march=rva23u64 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-int -fasynchronous-unwind-tables -fstack-clash-protection -c -o libvirtocaml_a-libvirt_c_common.o `test -f 'libvirt_c_common.c' || echo './'`libvirt_c_common.c gcc -DHAVE_CONFIG_H -I. -I.. -DCAML_NAME_SPACE -I/usr/lib64/ocaml -Wall -fPIC -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -march=rva23u64 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-int -fasynchronous-unwind-tables -fstack-clash-protection -c -o libvirtocaml_a-libvirt_c_oneoffs.o `test -f 'libvirt_c_oneoffs.c' || echo './'`libvirt_c_oneoffs.c rm -f libvirtocaml.a ar cru libvirtocaml.a libvirtocaml_a-libvirt_generated.o libvirtocaml_a-libvirt_c_common.o libvirtocaml_a-libvirt_c_oneoffs.o ranlib libvirtocaml.a ocamlfind ocamlc -g -warn-error +C+D+E+F+L+M+P+S+U+V+Y+Z+X-3 -safe-string -package unix -c libvirt.mli ocamlfind ocamlc -g -warn-error +C+D+E+F+L+M+P+S+U+V+Y+Z+X-3 -safe-string -package unix -c libvirt.ml ocamlfind ocamlc -g -warn-error +C+D+E+F+L+M+P+S+U+V+Y+Z+X-3 -safe-string -package unix -c libvirt_version.mli ocamlfind ocamlc -g -warn-error +C+D+E+F+L+M+P+S+U+V+Y+Z+X-3 -safe-string -package unix -c libvirt_version.ml ocamlmklib -o mllibvirt \ -ldopt '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' \ libvirtocaml_a-libvirt_generated.o libvirtocaml_a-libvirt_c_common.o libvirtocaml_a-libvirt_c_oneoffs.o libvirt.cmo libvirt_version.cmo \ -lvirt gcc: fatal error: cannot read spec file '/usr/lib/rpm/riscvers/riscvers-hardened-ld': No such file or directory compilation terminated. make[3]: *** [Makefile:742: mllibvirt.cma] Error 2 make[3]: Leaving directory '/builddir/build/BUILD/libvirt-ocaml-v0.6.1.7/libvirt' make[2]: Leaving directory '/builddir/build/BUILD/libvirt-ocaml-v0.6.1.7/libvirt' make[2]: *** [Makefile:386: all] Error 2 make[1]: *** [Makefile:443: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/libvirt-ocaml-v0.6.1.7' make: *** [Makefile:378: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.Zu2AKi (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Zu2AKi (%build) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps --nocheck /builddir/build/SPECS/ocaml-libvirt.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps --nocheck /builddir/build/SPECS/ocaml-libvirt.spec'