Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-treelite.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681986283.130834/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-treelite.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-treelite-3.2.0-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-treelite.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681986283.130834/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-treelite.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-treelite-3.2.0-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-treelite.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681986283.130834/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-treelite.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lQUAAI + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf treelite-3.2.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/treelite-3.2.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd treelite-3.2.0 + /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.awhdSW + umask 022 + cd /builddir/build/BUILD + cd treelite-3.2.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/treelite copying treelite/frontend.py -> build/lib.linux-x86_64-3.9/treelite copying treelite/util.py -> build/lib.linux-x86_64-3.9/treelite copying treelite/core.py -> build/lib.linux-x86_64-3.9/treelite copying treelite/__init__.py -> build/lib.linux-x86_64-3.9/treelite copying treelite/libpath.py -> build/lib.linux-x86_64-3.9/treelite copying treelite/annotator.py -> build/lib.linux-x86_64-3.9/treelite copying treelite/compat.py -> build/lib.linux-x86_64-3.9/treelite creating build/lib.linux-x86_64-3.9/treelite/sklearn copying treelite/sklearn/gbm_multi_classifier.py -> build/lib.linux-x86_64-3.9/treelite/sklearn copying treelite/sklearn/gbm_regressor.py -> build/lib.linux-x86_64-3.9/treelite/sklearn copying treelite/sklearn/gbm_classifier.py -> build/lib.linux-x86_64-3.9/treelite/sklearn copying treelite/sklearn/common.py -> build/lib.linux-x86_64-3.9/treelite/sklearn copying treelite/sklearn/__init__.py -> build/lib.linux-x86_64-3.9/treelite/sklearn copying treelite/sklearn/rf_regressor.py -> build/lib.linux-x86_64-3.9/treelite/sklearn copying treelite/sklearn/rf_multi_classifier.py -> build/lib.linux-x86_64-3.9/treelite/sklearn copying treelite/sklearn/importer.py -> build/lib.linux-x86_64-3.9/treelite/sklearn copying treelite/sklearn/rf_classifier.py -> build/lib.linux-x86_64-3.9/treelite/sklearn creating build/lib.linux-x86_64-3.9/treelite/contrib copying treelite/contrib/gcc.py -> build/lib.linux-x86_64-3.9/treelite/contrib copying treelite/contrib/util.py -> build/lib.linux-x86_64-3.9/treelite/contrib copying treelite/contrib/__init__.py -> build/lib.linux-x86_64-3.9/treelite/contrib copying treelite/contrib/msvc.py -> build/lib.linux-x86_64-3.9/treelite/contrib creating build/lib.linux-x86_64-3.9/treelite/serialize copying treelite/serialize/__init__.py -> build/lib.linux-x86_64-3.9/treelite/serialize copying treelite/serialize/__main__.py -> build/lib.linux-x86_64-3.9/treelite/serialize creating build/lib.linux-x86_64-3.9/treelite/gtil copying treelite/gtil/gtil.py -> build/lib.linux-x86_64-3.9/treelite/gtil copying treelite/gtil/__init__.py -> build/lib.linux-x86_64-3.9/treelite/gtil creating build/lib.linux-x86_64-3.9/treelite/gallery copying treelite/gallery/__init__.py -> build/lib.linux-x86_64-3.9/treelite/gallery creating build/lib.linux-x86_64-3.9/treelite/gallery/sklearn copying treelite/gallery/sklearn/__init__.py -> build/lib.linux-x86_64-3.9/treelite/gallery/sklearn running egg_info writing treelite.egg-info/PKG-INFO writing dependency_links to treelite.egg-info/dependency_links.txt writing requirements to treelite.egg-info/requires.txt writing top-level names to treelite.egg-info/top_level.txt reading manifest file 'treelite.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*' under directory 'treelite/lib' warning: no previously-included files matching '*.py[oc]' found anywhere in distribution writing manifest file 'treelite.egg-info/SOURCES.txt' copying treelite/CMakeLists.txt -> build/lib.linux-x86_64-3.9/treelite copying treelite/LICENSE -> build/lib.linux-x86_64-3.9/treelite copying treelite/VERSION -> build/lib.linux-x86_64-3.9/treelite creating build/lib.linux-x86_64-3.9/treelite/cmake copying treelite/cmake/Doxygen.cmake -> build/lib.linux-x86_64-3.9/treelite/cmake copying treelite/cmake/ExternalLibs.cmake -> build/lib.linux-x86_64-3.9/treelite/cmake copying treelite/cmake/FetchContentMakeAvailable.cmake -> build/lib.linux-x86_64-3.9/treelite/cmake copying treelite/cmake/Python_version.in -> build/lib.linux-x86_64-3.9/treelite/cmake copying treelite/cmake/Sanitizer.cmake -> build/lib.linux-x86_64-3.9/treelite/cmake copying treelite/cmake/TreeliteConfig.cmake.in -> build/lib.linux-x86_64-3.9/treelite/cmake copying treelite/cmake/Utils.cmake -> build/lib.linux-x86_64-3.9/treelite/cmake copying treelite/cmake/Version.cmake -> build/lib.linux-x86_64-3.9/treelite/cmake copying treelite/cmake/version.h.in -> build/lib.linux-x86_64-3.9/treelite/cmake creating build/lib.linux-x86_64-3.9/treelite/include creating build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/annotator.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/base.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/c_api.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/c_api_common.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/c_api_error.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/c_api_runtime.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/compiler.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/compiler_param.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/data.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/error.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/filesystem.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/frontend.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/frontend_impl.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/gtil.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/logging.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/math.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/omp.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/omp_exception.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/optional.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/predictor.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/thread_local.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/tree.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/tree_impl.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite copying treelite/include/treelite/typeinfo.h -> build/lib.linux-x86_64-3.9/treelite/include/treelite creating build/lib.linux-x86_64-3.9/treelite/src copying treelite/src/CMakeLists.txt -> build/lib.linux-x86_64-3.9/treelite/src copying treelite/src/annotator.cc -> build/lib.linux-x86_64-3.9/treelite/src copying treelite/src/data.cc -> build/lib.linux-x86_64-3.9/treelite/src copying treelite/src/filesystem.cc -> build/lib.linux-x86_64-3.9/treelite/src copying treelite/src/json_serializer.cc -> build/lib.linux-x86_64-3.9/treelite/src copying treelite/src/logging.cc -> build/lib.linux-x86_64-3.9/treelite/src copying treelite/src/model_concat.cc -> build/lib.linux-x86_64-3.9/treelite/src copying treelite/src/serializer.cc -> build/lib.linux-x86_64-3.9/treelite/src copying treelite/src/typeinfo.cc -> build/lib.linux-x86_64-3.9/treelite/src creating build/lib.linux-x86_64-3.9/treelite/src/c_api copying treelite/src/c_api/c_api.cc -> build/lib.linux-x86_64-3.9/treelite/src/c_api copying treelite/src/c_api/c_api_common.cc -> build/lib.linux-x86_64-3.9/treelite/src/c_api copying treelite/src/c_api/c_api_error.cc -> build/lib.linux-x86_64-3.9/treelite/src/c_api copying treelite/src/c_api/c_api_runtime.cc -> build/lib.linux-x86_64-3.9/treelite/src/c_api creating build/lib.linux-x86_64-3.9/treelite/src/compiler copying treelite/src/compiler/ast_native.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler copying treelite/src/compiler/ast_native.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler copying treelite/src/compiler/compiler.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler copying treelite/src/compiler/failsafe.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler copying treelite/src/compiler/failsafe.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler copying treelite/src/compiler/pred_transform.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler copying treelite/src/compiler/pred_transform.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler creating build/lib.linux-x86_64-3.9/treelite/src/compiler/ast copying treelite/src/compiler/ast/ast.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/ast copying treelite/src/compiler/ast/build.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler/ast copying treelite/src/compiler/ast/builder.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/ast copying treelite/src/compiler/ast/dump.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler/ast copying treelite/src/compiler/ast/fold_code.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler/ast copying treelite/src/compiler/ast/is_categorical_array.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler/ast copying treelite/src/compiler/ast/load_data_counts.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler/ast copying treelite/src/compiler/ast/quantize.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler/ast copying treelite/src/compiler/ast/split.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler/ast creating build/lib.linux-x86_64-3.9/treelite/src/compiler/common copying treelite/src/compiler/common/categorical_bitmap.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/common copying treelite/src/compiler/common/code_folding_util.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/common copying treelite/src/compiler/common/format_util.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/common creating build/lib.linux-x86_64-3.9/treelite/src/compiler/elf copying treelite/src/compiler/elf/elf_formatter.cc -> build/lib.linux-x86_64-3.9/treelite/src/compiler/elf copying treelite/src/compiler/elf/elf_formatter.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/elf creating build/lib.linux-x86_64-3.9/treelite/src/compiler/native copying treelite/src/compiler/native/code_folder_template.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/native copying treelite/src/compiler/native/header_template.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/native copying treelite/src/compiler/native/main_template.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/native copying treelite/src/compiler/native/pred_transform.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/native copying treelite/src/compiler/native/qnode_template.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/native copying treelite/src/compiler/native/typeinfo_ctypes.h -> build/lib.linux-x86_64-3.9/treelite/src/compiler/native creating build/lib.linux-x86_64-3.9/treelite/src/frontend copying treelite/src/frontend/builder.cc -> build/lib.linux-x86_64-3.9/treelite/src/frontend copying treelite/src/frontend/json_importer.cc -> build/lib.linux-x86_64-3.9/treelite/src/frontend copying treelite/src/frontend/lightgbm.cc -> build/lib.linux-x86_64-3.9/treelite/src/frontend copying treelite/src/frontend/sklearn.cc -> build/lib.linux-x86_64-3.9/treelite/src/frontend copying treelite/src/frontend/xgboost.cc -> build/lib.linux-x86_64-3.9/treelite/src/frontend copying treelite/src/frontend/xgboost_json.cc -> build/lib.linux-x86_64-3.9/treelite/src/frontend copying treelite/src/frontend/xgboost_util.cc -> build/lib.linux-x86_64-3.9/treelite/src/frontend creating build/lib.linux-x86_64-3.9/treelite/src/frontend/xgboost copying treelite/src/frontend/xgboost/xgboost.h -> build/lib.linux-x86_64-3.9/treelite/src/frontend/xgboost copying treelite/src/frontend/xgboost/xgboost_json.h -> build/lib.linux-x86_64-3.9/treelite/src/frontend/xgboost creating build/lib.linux-x86_64-3.9/treelite/src/gtil copying treelite/src/gtil/config.cc -> build/lib.linux-x86_64-3.9/treelite/src/gtil copying treelite/src/gtil/pred_transform.cc -> build/lib.linux-x86_64-3.9/treelite/src/gtil copying treelite/src/gtil/pred_transform.h -> build/lib.linux-x86_64-3.9/treelite/src/gtil copying treelite/src/gtil/predict.cc -> build/lib.linux-x86_64-3.9/treelite/src/gtil creating build/lib.linux-x86_64-3.9/treelite/src/predictor copying treelite/src/predictor/predictor.cc -> build/lib.linux-x86_64-3.9/treelite/src/predictor creating build/lib.linux-x86_64-3.9/treelite/src/predictor/thread_pool copying treelite/src/predictor/thread_pool/spsc_queue.h -> build/lib.linux-x86_64-3.9/treelite/src/predictor/thread_pool copying treelite/src/predictor/thread_pool/thread_pool.h -> build/lib.linux-x86_64-3.9/treelite/src/predictor/thread_pool creating build/lib.linux-x86_64-3.9/treelite/src/threading_utils copying treelite/src/threading_utils/parallel_for.h -> build/lib.linux-x86_64-3.9/treelite/src/threading_utils running build_ext INFO:Treelite copy_tree:Copy tree /builddir/build/BUILD/treelite-3.2.0/../cmake -> build/temp.linux-x86_64-3.9/treelite/cmake INFO:Treelite copy_tree:Copy tree treelite/cmake -> build/temp.linux-x86_64-3.9/treelite/cmake INFO:Treelite copy_tree:Copy tree treelite/include -> build/temp.linux-x86_64-3.9/treelite/include INFO:Treelite copy_tree:Copy tree treelite/src -> build/temp.linux-x86_64-3.9/treelite/src INFO:Treelite copy_tree:Copy tree treelite/CMakeLists.txt -> build/temp.linux-x86_64-3.9/treelite/CMakeLists.txt INFO:Treelite copy_tree:Copy tree treelite/LICENSE -> build/temp.linux-x86_64-3.9/treelite/LICENSE INFO:Treelite build_ext:Building from source. libtreelite.so INFO:Treelite build_ext:Run CMake command: ['cmake', 'treelite', '-GUnix Makefiles'] error: [Errno 2] No such file or directory: 'cmake' error: Bad exit status from /var/tmp/rpm-tmp.awhdSW (%build) Bad exit status from /var/tmp/rpm-tmp.awhdSW (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-treelite.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 --target x86_64 --nodeps /builddir/build/SPECS/python-treelite.spec