Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/ocaml.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-67279-3543/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --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: x86_64 Building for target x86_64 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 x86_64 --nodeps /builddir/build/SPECS/ocaml.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-67279-3543/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.DiiVAn + 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 branch 'rpm-build' set up to track 'master'. Switched to a new branch 'rpm-build' + /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.9J24lw + 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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 Can't load '/usr/lib64/perl5/vendor_perl/auto/Cwd/Cwd.so' for module Cwd: /usr/lib64/perl5/vendor_perl/auto/Cwd/Cwd.so: undefined symbol: Perl_my_strlcat at /usr/share/perl5/XSLoader.pm line 94. at /usr/lib64/perl5/vendor_perl/Cwd.pm line 82. Compilation failed in require at /usr/lib64/perl5/vendor_perl/File/Spec/Unix.pm line 4. BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/File/Spec/Unix.pm line 4. Compilation failed in require at /usr/lib64/perl5/vendor_perl/File/Spec.pm line 21. Compilation failed in require at /usr/share/autoconf/Autom4te/FileUtils.pm line 76. BEGIN failed--compilation aborted at /usr/share/autoconf/Autom4te/FileUtils.pm line 76. Compilation failed in require at /usr/bin/autom4te line 46. BEGIN failed--compilation aborted at /usr/bin/autom4te line 46. RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.9J24lw (%build) Bad exit status from /var/tmp/rpm-tmp.9J24lw (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --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 597, 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 x86_64 --nodeps /builddir/build/SPECS/ocaml.spec