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 loongarch64 --nodeps /builddir/build/SPECS/ocaml.spec'], chrootPath='/var/lib/mock/dist-ocs23-loongarch64-build-144421-9765/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=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ocaml.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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/ocaml-5.0.0-2.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ocaml.spec'], chrootPath='/var/lib/mock/dist-ocs23-loongarch64-build-144421-9765/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=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ocaml.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Rn91kl + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ocaml-5.0.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/5.0.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-5.0.0 + /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 'ocaml-5.0.0 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-increment-version-number-after-tagging-5.0.0.patch + /usr/bin/git apply --index --reject -p1 - Checking patch VERSION... Checking patch build-aux/ocaml_version.m4... Checking patch configure... Checking patch ocaml-variants.opam... Applied patch VERSION cleanly. Applied patch build-aux/ocaml_version.m4 cleanly. Applied patch configure cleanly. Applied patch ocaml-variants.opam cleanly. + /usr/bin/git commit -q -m 0001-increment-version-number-after-tagging-5.0.0.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-Merge-pull-request-11814-from-gasche-clarify-DLS.new.patch + /usr/bin/git apply --index --reject -p1 - Checking patch stdlib/domain.mli... Applied patch stdlib/domain.mli cleanly. + /usr/bin/git commit -q -m 0002-Merge-pull-request-11814-from-gasche-clarify-DLS.new.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0003-Add-KC-Sivaramakrishnan-as-author.patch + /usr/bin/git apply --index --reject -p1 - Checking patch manual/src/allfiles.etex... Applied patch manual/src/allfiles.etex cleanly. + /usr/bin/git commit -q -m 0003-Add-KC-Sivaramakrishnan-as-author.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0004-removed-set-but-unused-variables-in-yacc-reader.c-11.patch + /usr/bin/git apply --index --reject -p1 - Checking patch yacc/reader.c... Applied patch yacc/reader.c cleanly. + /usr/bin/git commit -q -m 0004-removed-set-but-unused-variables-in-yacc-reader.c-11.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0005-Merge-pull-request-11860-from-Octachron-index_for_st.patch + /usr/bin/git apply --index --reject -p1 - Checking patch api_docgen/Makefile.docfiles... Applied patch api_docgen/Makefile.docfiles cleanly. + /usr/bin/git commit -q -m 0005-Merge-pull-request-11860-from-Octachron-index_for_st.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0006-Allow-installing-in-folder-with-space-in-name-11590.patch + /usr/bin/git apply --index --reject -p1 - Checking patch Changes... Checking patch man/Makefile... Applied patch Changes cleanly. Applied patch man/Makefile cleanly. + /usr/bin/git commit -q -m 0006-Allow-installing-in-folder-with-space-in-name-11590.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0007-Detect-unused-Makefile-variables-in-workflow.patch + /usr/bin/git apply --index --reject -p1 - Checking patch tools/ci/actions/runner.sh... Applied patch tools/ci/actions/runner.sh cleanly. + /usr/bin/git commit -q -m 0007-Detect-unused-Makefile-variables-in-workflow.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0008-Fix-incorrect-variable-from-runtime-Makefile-merge.patch + /usr/bin/git apply --index --reject -p1 - Checking patch Makefile... Applied patch Makefile cleanly. + /usr/bin/git commit -q -m 0008-Fix-incorrect-variable-from-runtime-Makefile-merge.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0009-Provide-a-default-for-OCAMLDEPFLAGS.patch + /usr/bin/git apply --index --reject -p1 - Checking patch Makefile.common... Applied patch Makefile.common cleanly. + /usr/bin/git commit -q -m 0009-Provide-a-default-for-OCAMLDEPFLAGS.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0010-Report-all-post-build-failures.patch + /usr/bin/git apply --index --reject -p1 - Checking patch tools/ci/actions/runner.sh... Applied patch tools/ci/actions/runner.sh cleanly. + /usr/bin/git commit -q -m 0010-Report-all-post-build-failures.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0011-Finish-off-removal-of-FORCE_INSTRUMENTED_RUNTIME.patch + /usr/bin/git apply --index --reject -p1 - Checking patch utils/Makefile... Applied patch utils/Makefile cleanly. + /usr/bin/git commit -q -m 0011-Finish-off-removal-of-FORCE_INSTRUMENTED_RUNTIME.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0012-suppress-spurious-alert-when-compiling-stdlib-docume.patch + /usr/bin/git apply --index --reject -p1 - Checking patch api_docgen/ocamldoc/Makefile... Applied patch api_docgen/ocamldoc/Makefile cleanly. + /usr/bin/git commit -q -m 0012-suppress-spurious-alert-when-compiling-stdlib-docume.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0013-Merge-pull-request-12285-from-smorimoto-update-depre.patch + /usr/bin/git apply --index --reject -p1 - Checking patch .github/workflows/build.yml... Checking patch .github/workflows/hygiene.yml... Applied patch .github/workflows/build.yml cleanly. Applied patch .github/workflows/hygiene.yml cleanly. + /usr/bin/git commit -q -m 0013-Merge-pull-request-12285-from-smorimoto-update-depre.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0014-Merge-pull-request-12286-from-smorimoto-replace-set-.patch + /usr/bin/git apply --index --reject -p1 - Checking patch tools/ci/actions/check-manual-modified.sh... Checking patch tools/ci/actions/runner.sh... Applied patch tools/ci/actions/check-manual-modified.sh cleanly. Applied patch tools/ci/actions/runner.sh cleanly. + /usr/bin/git commit -q -m 0014-Merge-pull-request-12286-from-smorimoto-replace-set-.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0015-Don-t-add-rpaths-to-libraries.patch + /usr/bin/git apply --index --reject -p1 - Checking patch utils/config.mlp... Applied patch utils/config.mlp cleanly. + /usr/bin/git commit -q -m 0015-Don-t-add-rpaths-to-libraries.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0016-configure-Allow-user-defined-C-compiler-flags.patch + /usr/bin/git apply --index --reject -p1 - Checking patch configure.ac... Applied patch configure.ac cleanly. + /usr/bin/git commit -q -m 0016-configure-Allow-user-defined-C-compiler-flags.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0017-Fix-skiplist-test-failure-12346.patch + /usr/bin/git apply --index --reject -p1 - Checking patch testsuite/tests/lf_skiplist/stubs.c... Applied patch testsuite/tests/lf_skiplist/stubs.c cleanly. + /usr/bin/git commit -q -m 0017-Fix-skiplist-test-failure-12346.patch --author 'rpm-build ' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OZmz6Z + 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 -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 -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 -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 -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 ocaml-5.0.0 + autoconf --force + sed -i '/ld_opts/s|\[\]|["-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1"]|' tools/ocamlmklib.ml + ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --libdir=/usr/lib64/ocaml --enable-flambda --disable-native-compiler --disable-native-toplevel 'OC_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 -fasynchronous-unwind-tables -fstack-clash-protection' 'OC_LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' configure: Configuring OCaml version 5.0.1+dev0-2022-12-15 checking build system type... ./build-aux/config.guess: unable to guess system type This script (version 2020-07-12), has failed to recognize the operating system you are using. If your script is old, overwrite *all* copies of config.guess and config.sub with the latest versions from: https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess and https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub configure: error: cannot guess build type; you must specify one error: Bad exit status from /var/tmp/rpm-tmp.OZmz6Z (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.OZmz6Z (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ocaml.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/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 loongarch64 --nodeps /builddir/build/SPECS/ocaml.spec