Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ocaml-zarith.spec'], chrootPath='/var/lib/mock/f31-build-113894-34412/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ocaml-zarith.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1567468800 Wrote: /builddir/build/SRPMS/ocaml-zarith-1.9-1.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ocaml-zarith.spec'], chrootPath='/var/lib/mock/f31-build-113894-34412/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ocaml-zarith.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1567468800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.igPWAy + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Zarith-release-1.9 + /usr/bin/gzip -dc /builddir/build/SOURCES/release-1.9.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Zarith-release-1.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -p /usr/lib/rpm/redhat/config.guess config.guess + sed -i 's|^asopt='\'''\''|asopt='\''-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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection'\''|' configure + sed -i 's|-ccopt|-g &|;s|-shared|-g &|' project.mak + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.izJE6y + umask 022 + cd /builddir/build/BUILD + cd Zarith-release-1.9 + export CC=gcc + CC=gcc + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export OCAMLFLAGS=-g + OCAMLFLAGS=-g + export OCAMLOPTFLAGS=-g + OCAMLOPTFLAGS=-g + ./configure binary ocaml: found in /usr/bin binary ocamlc: found in /usr/bin binary ocamldep: found in /usr/bin binary ocamlmklib: found in /usr/bin binary ocamldoc: found in /usr/bin binary ar: found in /usr/bin binary perl: found in /usr/bin binary gcc: found in /usr/bin binary ocamlopt: found in /usr/bin checking compilation with gcc -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection: working include caml/mlvalues.h: found library dynlink.cmxa: found binary ocamlfind: found in /usr/bin OCaml's word size is 64 binary uname: found in /usr/bin unknown host riscv64-unknown-linux-gnu include gmp.h: found library gmp: found OCaml extended comparison supported OCaml new hash functions available OCaml supports -bin-annot to produce documentation Using OCaml legacy C API custom operations detected configuration: native-code: yes dynamic linking: yes asm path: none defines: -DZ_OCAML_LEGACY_CUSTOM_OPERATIONS -DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP libraries: -lgmp C options: -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection asm options installation path: /usr/lib64/ocaml installation method findlib configuration successful! now type "make" to build then type "make install" or "sudo make install" to install + make ./z_pp.pl none BUILDSTDERR: Name "main::extra" used only once: possible typo at ./z_pp.pl line 29. ocamldep -native z.ml q.ml big_int_Z.ml z.mli q.mli big_int_Z.mli > depend ocamlc -I +compiler-libs -bin-annot -c z.mli ocamlc -I +compiler-libs -bin-annot -c z.ml ocamlc -I +compiler-libs -bin-annot -c q.mli ocamlc -I +compiler-libs -bin-annot -c q.ml ocamlc -I +compiler-libs -bin-annot -c big_int_Z.mli ocamlc -I +compiler-libs -bin-annot -c big_int_Z.ml ocamlmklib -failsafe -o zarith z.cmo q.cmo big_int_Z.cmo -lgmp ocamlc -g -ccopt "-I/usr/lib64/ocaml -DZ_OCAML_LEGACY_CUSTOM_OPERATIONS -DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection" -c caml_z.c ocamlmklib -failsafe -o zarith caml_z.o -lgmp ocamlc -I +compiler-libs -bin-annot -c zarith_top.ml ocamlc -o zarith_top.cma -a zarith_top.cmo ocamlopt -I +compiler-libs -c z.ml ocamlopt -I +compiler-libs -c q.ml ocamlopt -I +compiler-libs -c big_int_Z.ml ocamlmklib -failsafe -o zarith z.cmx q.cmx big_int_Z.cmx -lgmp ocamlopt -g -shared -o zarith.cmxs -I . zarith.cmxa -linkall + make doc mkdir -p html ocamldoc -html -d html -charset utf8 z.mli q.mli big_int_Z.mli + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.tKBqqz + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64 + cd Zarith-release-1.9 + mkdir -p /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/stublibs + make install INSTALLDIR=/builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml ocamlfind install -destdir "/builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml" zarith META zarith.h zarith.cma libzarith.a z.mli q.mli big_int_Z.mli z.cmi q.cmi big_int_Z.cmi zarith_top.cma zarith.a zarith.cmxa z.cmx q.cmx big_int_Z.cmx zarith.cmxs z.cmti q.cmti big_int_Z.cmti -optional dllzarith.so BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/big_int_Z.cmti BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/q.cmti BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/z.cmti BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/zarith.cmxs BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/big_int_Z.cmx BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/q.cmx BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/z.cmx BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/zarith.cmxa BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/zarith.a BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/zarith_top.cma BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/big_int_Z.cmi BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/q.cmi BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/z.cmi BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/big_int_Z.mli BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/q.mli BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/z.mli BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/libzarith.a BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/zarith.cma BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/zarith.h BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/stublibs/dllzarith.so BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/stublibs/dllzarith.so.owner BUILDSTDERR: ocamlfind: [WARNING] You have installed DLLs but the directory /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/stublibs is not mentioned in ld.conf BUILDSTDERR: Installed /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/META + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 1.9-1.fc31 --unique-debug-suffix -1.9-1.fc31.riscv64 --unique-debug-src-base ocaml-zarith-1.9-1.fc31.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/Zarith-release-1.9 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/zarith.cmxs explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/stublibs/dllzarith.so extracting debug info from /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/zarith/zarith.cmxs extracting debug info from /builddir/build/BUILDROOT/ocaml-zarith-1.9-1.fc31.riscv64/usr/lib64/ocaml/stublibs/dllzarith.so original debug info size: 500kB, size after compression: 496kB /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. BUILDSTDERR: 159 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.tALqrx + umask 022 + cd /builddir/build/BUILD + cd Zarith-release-1.9 + export LD_LIBRARY_PATH=/builddir/build/BUILD/Zarith-release-1.9 + LD_LIBRARY_PATH=/builddir/build/BUILD/Zarith-release-1.9 + make tests make -C tests test make[1]: Entering directory '/builddir/build/BUILD/Zarith-release-1.9/tests' ocamlopt -I .. -ccopt "-L.." zarith.cmxa -o zq.exe zq.ml Testing zq (native)... zq: FAILED make[1]: Leaving directory '/builddir/build/BUILD/Zarith-release-1.9/tests' BUILDSTDERR: make[1]: *** [Makefile:15: test] Error 2 BUILDSTDERR: make: *** [project.mak:70: tests] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.tALqrx (%check) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.tALqrx (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, in do 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/ocaml-zarith.spec