Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/ocaml-migrate-parsetree.spec'], chrootPath='/var/lib/mock/f40-build-770659-125857/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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/ocaml-migrate-parsetree.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=1674518400 Wrote: /builddir/build/SRPMS/ocaml-migrate-parsetree-2.4.0-4.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/ocaml-migrate-parsetree.spec'], chrootPath='/var/lib/mock/f40-build-770659-125857/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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/ocaml-migrate-parsetree.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=1674518400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.icfu39 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ocaml-migrate-parsetree-2.4.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ocaml-migrate-parsetree-2.4.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-migrate-parsetree-2.4.0 + rm -rf /builddir/build/BUILD/ocaml-migrate-parsetree-2.4.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/ocaml-migrate-parsetree-2.4.0-SPECPARTS + /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.u1uwD0 + 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 --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 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ocaml-migrate-parsetree-2.4.0 + dune build -j4 --verbose --profile release Shared cache: disabled Shared cache location: /builddir/.cache/dune/db Workspace root: /builddir/build/BUILD/ocaml-migrate-parsetree-2.4.0 Dune context: { name = "default" ; kind = "default" ; profile = Release ; merlin = true ; fdo_target_exe = None ; build_dir = In_build_dir "default" ; installed_env = map { "INSIDE_DUNE" : "/builddir/build/BUILD/ocaml-migrate-parsetree-2.4.0/_build/default" } ; instrument_with = [] } Actual targets: - alias @@default Running[1]: (cd _build/default && /usr/bin/ocamllex -q -o tools/pp_rewrite.ml tools/pp_rewrite.mll) Running[2]: (cd _build/default/src && /usr/bin/ocaml config/gen.ml 5.1.1) Running[3]: (cd _build/default && /usr/bin/ocamlc.opt -w -40 -g -bin-annot -I src/cinaps_helpers/.cinaps_helpers.objs/byte -no-alias-deps -o src/cinaps_helpers/.cinaps_helpers.objs/byte/cinaps_helpers.cmo -c -impl src/cinaps_helpers/cinaps_helpers.ml) Running[4]: (cd _build/default && /usr/bin/ocamldep.opt -modules -impl tools/pp.ml) > _build/default/tools/.pp.eobjs/dune__exe__Pp.impl.d Running[5]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -I src/cinaps_helpers/.cinaps_helpers.objs/byte -I src/cinaps_helpers/.cinaps_helpers.objs/native -intf-suffix .ml -no-alias-deps -o src/cinaps_helpers/.cinaps_helpers.objs/native/cinaps_helpers.cmx -c -impl src/cinaps_helpers/cinaps_helpers.ml) Running[6]: (cd _build/default && /usr/bin/ocamlc.opt -w -40 -g -a -o src/cinaps_helpers/cinaps_helpers.cma src/cinaps_helpers/.cinaps_helpers.objs/byte/cinaps_helpers.cmo) File "src/dune", line 7, characters 0-93: 7 | (rule 8 | (targets ast-version) 9 | (action (run %{ocaml} %{dep:config/gen.ml} %{ocaml_version}))) Command [2] exited with code 1: $ (cd _build/default/src && /usr/bin/ocaml config/gen.ml 5.1.1) Unknown OCaml version 5.1.1 Running[7]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -a -o src/cinaps_helpers/cinaps_helpers.cmxa src/cinaps_helpers/.cinaps_helpers.objs/native/cinaps_helpers.cmx) Running[8]: (cd _build/default && /usr/bin/ocamlc.opt -w -40 -w -3 -g -bin-annot -I tools/.add_special_comments.eobjs/byte -I /usr/lib64/ocaml/compiler-libs -no-alias-deps -o tools/.add_special_comments.eobjs/byte/dune__exe__Add_special_comments.cmi -c -intf tools/add_special_comments.mli) Running[9]: (cd _build/default && /usr/bin/ocamldep.opt -modules -intf tools/pp_rewrite.mli) > _build/default/tools/.pp.eobjs/dune__exe__Pp_rewrite.intf.d Running[10]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -shared -linkall -I src/cinaps_helpers -o src/cinaps_helpers/cinaps_helpers.cmxs src/cinaps_helpers/cinaps_helpers.cmxa) Running[11]: (cd _build/default && /usr/bin/ocamldep.opt -modules -impl tools/pp_rewrite.ml) > _build/default/tools/.pp.eobjs/dune__exe__Pp_rewrite.impl.d Running[12]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -w -3 -g -I tools/.add_special_comments.eobjs/byte -I tools/.add_special_comments.eobjs/native -I /usr/lib64/ocaml/compiler-libs -intf-suffix .ml -no-alias-deps -o tools/.add_special_comments.eobjs/native/dune__exe__Add_special_comments.cmx -c -impl tools/add_special_comments.ml) Running[13]: (cd _build/default && /usr/bin/ocamlc.opt -w -40 -w -49 -nopervasives -nostdlib -g -bin-annot -I tools/.pp.eobjs/byte -no-alias-deps -o tools/.pp.eobjs/byte/dune__exe.cmo -c -impl tools/.pp.eobjs/dune__exe.ml-gen) Running[14]: (cd _build/default && /usr/bin/ocamldep.opt -modules -intf tools/pp.mli) > _build/default/tools/.pp.eobjs/dune__exe__Pp.intf.d Running[15]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -w -49 -nopervasives -nostdlib -g -I tools/.pp.eobjs/byte -I tools/.pp.eobjs/native -intf-suffix .ml-gen -no-alias-deps -o tools/.pp.eobjs/native/dune__exe.cmx -c -impl tools/.pp.eobjs/dune__exe.ml-gen) Running[16]: (cd _build/default && /usr/bin/ocamlc.opt -w -40 -w -3 -g -bin-annot -I tools/.pp.eobjs/byte -no-alias-deps -open Dune__exe -o tools/.pp.eobjs/byte/dune__exe__Pp_rewrite.cmi -c -intf tools/pp_rewrite.mli) Running[17]: (cd _build/default && /usr/bin/ocamlc.opt -w -40 -w -3 -g -bin-annot -I tools/.pp.eobjs/byte -no-alias-deps -open Dune__exe -o tools/.pp.eobjs/byte/dune__exe__Pp.cmi -c -intf tools/pp.mli) Running[18]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -w -3 -g -I tools/.pp.eobjs/byte -I tools/.pp.eobjs/native -intf-suffix .ml -no-alias-deps -open Dune__exe -o tools/.pp.eobjs/native/dune__exe__Pp_rewrite.cmx -c -impl tools/pp_rewrite.ml) Running[19]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -w -3 -g -I tools/.pp.eobjs/byte -I tools/.pp.eobjs/native -intf-suffix .ml -no-alias-deps -open Dune__exe -o tools/.pp.eobjs/native/dune__exe__Pp.cmx -c -impl tools/pp.ml) Running[20]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -w -3 -g -o tools/add_special_comments.exe /usr/lib64/ocaml/compiler-libs/ocamlcommon.cmxa /usr/lib64/ocaml/compiler-libs/ocamlbytecomp.cmxa tools/.add_special_comments.eobjs/native/dune__exe__Add_special_comments.cmx) Running[21]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -w -3 -g -o tools/pp.exe tools/.pp.eobjs/native/dune__exe.cmx tools/.pp.eobjs/native/dune__exe__Pp_rewrite.cmx tools/.pp.eobjs/native/dune__exe__Pp.cmx) error: Bad exit status from /var/tmp/rpm-tmp.u1uwD0 (%build) Bad exit status from /var/tmp/rpm-tmp.u1uwD0 (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/ocaml-migrate-parsetree.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 598, 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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/ocaml-migrate-parsetree.spec