Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-osqp.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681672393.916583/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-osqp.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-osqp-0.6.2.post8-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-osqp.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681672393.916583/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-osqp.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-osqp-0.6.2.post8-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-osqp.spec'], chrootPath='/var/lib/mock/openeuler-22.03-x86_64-1681672393.916583/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-osqp.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.79vJgl + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf osqp-0.6.2.post8 + /usr/bin/gzip -dc /builddir/build/SOURCES/osqp-0.6.2.post8.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd osqp-0.6.2.post8 + /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.fpm4Bm + umask 022 + cd /builddir/build/BUILD + cd osqp-0.6.2.post8 + 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' Disabling LONG Remove long integers for numpy compatibility. See: - https://github.com/numpy/numpy/issues/5906 - https://github.com/ContinuumIO/anaconda-issues/issues/3823 You can reenable long integers by passing: --osqp --long argument. running build running build_py package init file 'src/extension/__init__.py' not found (or not a regular file) creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/osqp copying src/osqp/_version.py -> build/lib.linux-x86_64-3.9/osqp copying src/osqp/__init__.py -> build/lib.linux-x86_64-3.9/osqp copying src/osqp/interface.py -> build/lib.linux-x86_64-3.9/osqp copying src/osqp/utils.py -> build/lib.linux-x86_64-3.9/osqp creating build/lib.linux-x86_64-3.9/osqppurepy copying src/osqppurepy/_osqp.py -> build/lib.linux-x86_64-3.9/osqppurepy copying src/osqppurepy/__init__.py -> build/lib.linux-x86_64-3.9/osqppurepy copying src/osqppurepy/interface.py -> build/lib.linux-x86_64-3.9/osqppurepy package init file 'src/extension/src/__init__.py' not found (or not a regular file) package init file 'src/extension/include/__init__.py' not found (or not a regular file) creating build/lib.linux-x86_64-3.9/osqp/codegen copying src/osqp/codegen/__init__.py -> build/lib.linux-x86_64-3.9/osqp/codegen copying src/osqp/codegen/code_generator.py -> build/lib.linux-x86_64-3.9/osqp/codegen copying src/osqp/codegen/utils.py -> build/lib.linux-x86_64-3.9/osqp/codegen package init file 'src/osqp/tests/__init__.py' not found (or not a regular file) creating build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/unconstrained_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/mkl_pardiso_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/derivative_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/warm_start_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/codegen_matrices_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/primal_infeasibility_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/basic_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/dual_infeasibility_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/feasibility_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/polishing_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/update_matrices_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/multithread_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/utils.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/non_convex_test.py -> build/lib.linux-x86_64-3.9/osqp/tests copying src/osqp/tests/codegen_vectors_test.py -> build/lib.linux-x86_64-3.9/osqp/tests package init file 'src/osqp/codegen/files_to_generate/__init__.py' not found (or not a regular file) creating build/lib.linux-x86_64-3.9/osqp/codegen/files_to_generate copying src/osqp/codegen/files_to_generate/setup.py -> build/lib.linux-x86_64-3.9/osqp/codegen/files_to_generate package init file 'src/osqp/codegen/sources/__init__.py' not found (or not a regular file) package init file 'src/osqp/codegen/sources/src/__init__.py' not found (or not a regular file) package init file 'src/osqp/codegen/sources/configure/__init__.py' not found (or not a regular file) package init file 'src/osqp/codegen/sources/include/__init__.py' not found (or not a regular file) creating build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/__init__.py -> build/lib.linux-x86_64-3.9/osqp/tests/solutions running egg_info writing src/osqp.egg-info/PKG-INFO writing dependency_links to src/osqp.egg-info/dependency_links.txt writing requirements to src/osqp.egg-info/requires.txt writing top-level names to src/osqp.egg-info/top_level.txt reading manifest file 'src/osqp.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'src/osqp.egg-info/SOURCES.txt' creating build/lib.linux-x86_64-3.9/extension creating build/lib.linux-x86_64-3.9/extension/src copying src/extension/src/.gitignore -> build/lib.linux-x86_64-3.9/extension/src copying src/extension/src/osqpmodule.c -> build/lib.linux-x86_64-3.9/extension/src creating build/lib.linux-x86_64-3.9/extension/include copying src/extension/include/osqpinfopy.h -> build/lib.linux-x86_64-3.9/extension/include copying src/extension/include/osqpmodulemethods.h -> build/lib.linux-x86_64-3.9/extension/include copying src/extension/include/osqpobjectpy.h -> build/lib.linux-x86_64-3.9/extension/include copying src/extension/include/osqpresultspy.h -> build/lib.linux-x86_64-3.9/extension/include copying src/extension/include/osqputilspy.h -> build/lib.linux-x86_64-3.9/extension/include copying src/extension/include/osqpworkspacepy.h -> build/lib.linux-x86_64-3.9/extension/include copying src/osqp/codegen/.gitignore -> build/lib.linux-x86_64-3.9/osqp/codegen copying src/osqp/codegen/files_to_generate/CMakeLists.txt -> build/lib.linux-x86_64-3.9/osqp/codegen/files_to_generate copying src/osqp/codegen/files_to_generate/emosqpmodule.c -> build/lib.linux-x86_64-3.9/osqp/codegen/files_to_generate copying src/osqp/codegen/files_to_generate/example.c -> build/lib.linux-x86_64-3.9/osqp/codegen/files_to_generate creating build/lib.linux-x86_64-3.9/osqp/codegen/sources creating build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/CMakeLists.txt -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/auxil.c -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/error.c -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/kkt.c -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/lin_alg.c -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/osqp.c -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/proj.c -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/qdldl.c -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/qdldl_interface.c -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/scaling.c -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src copying src/osqp/codegen/sources/src/util.c -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/src creating build/lib.linux-x86_64-3.9/osqp/codegen/sources/configure copying src/osqp/codegen/sources/configure/osqp_configure.h.in -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/configure copying src/osqp/codegen/sources/configure/qdldl_types.h.in -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/configure creating build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/CMakeLists.txt -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/auxil.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/constants.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/error.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/glob_opts.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/kkt.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/lin_alg.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/osqp.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/proj.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/qdldl.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/qdldl_interface.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/scaling.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/types.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/codegen/sources/include/util.h -> build/lib.linux-x86_64-3.9/osqp/codegen/sources/include copying src/osqp/tests/solutions/test_basic_QP.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_feasibility_problem.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_polish_random.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_polish_simple.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_polish_unconstrained.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_solve.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_unconstrained_problem.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_A.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_A_allind.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_P.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_P_A_allind.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_P_A_indA.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_P_A_indP.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_P_A_indP_indA.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_P_allind.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_bounds.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_l.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_q.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions copying src/osqp/tests/solutions/test_update_u.npz -> build/lib.linux-x86_64-3.9/osqp/tests/solutions running build_ext Traceback (most recent call last): File "/builddir/build/BUILD/osqp-0.6.2.post8/setup.py", line 220, in build_extensions check_output(['cmake', '--version']) File "/usr/lib64/python3.9/subprocess.py", line 424, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib64/python3.9/subprocess.py", line 505, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib64/python3.9/subprocess.py", line 951, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib64/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cmake' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/osqp-0.6.2.post8/setup.py", line 260, in setup(name='osqp', File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib64/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib64/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib64/python3.9/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/usr/lib64/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/usr/lib64/python3.9/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/builddir/build/BUILD/osqp-0.6.2.post8/setup.py", line 222, in build_extensions raise RuntimeError("CMake must be installed to build OSQP") RuntimeError: CMake must be installed to build OSQP error: Bad exit status from /var/tmp/rpm-tmp.fpm4Bm (%build) Bad exit status from /var/tmp/rpm-tmp.fpm4Bm (%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-osqp.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-osqp.spec