Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-cyordereddict.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1685383056.436359/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-cyordereddict.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-cyordereddict-1.0.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-cyordereddict.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1685383056.436359/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-cyordereddict.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-cyordereddict-1.0.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-cyordereddict.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-x86_64-1685383056.436359/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-cyordereddict.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.SJrowI + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cyordereddict-1.0.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/cyordereddict-1.0.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cyordereddict-1.0.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.V1lssD + umask 022 + cd /builddir/build/BUILD + cd cyordereddict-1.0.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/cyordereddict copying python3/cyordereddict/__init__.py -> build/lib.linux-x86_64-3.9/cyordereddict copying python3/cyordereddict/_version.py -> build/lib.linux-x86_64-3.9/cyordereddict creating build/lib.linux-x86_64-3.9/cyordereddict/benchmark copying python3/cyordereddict/benchmark/__init__.py -> build/lib.linux-x86_64-3.9/cyordereddict/benchmark copying python3/cyordereddict/benchmark/magic_timeit.py -> build/lib.linux-x86_64-3.9/cyordereddict/benchmark copying python3/cyordereddict/benchmark/benchmark.py -> build/lib.linux-x86_64-3.9/cyordereddict/benchmark creating build/lib.linux-x86_64-3.9/cyordereddict/test copying python3/cyordereddict/test/__init__.py -> build/lib.linux-x86_64-3.9/cyordereddict/test copying python3/cyordereddict/test/_mapping_tests.py -> build/lib.linux-x86_64-3.9/cyordereddict/test copying python3/cyordereddict/test/test_ordereddict.py -> build/lib.linux-x86_64-3.9/cyordereddict/test copying python3/cyordereddict/test/test_cyordereddict.py -> build/lib.linux-x86_64-3.9/cyordereddict/test running build_ext building 'cyordereddict._cyordereddict' extension creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/python3 creating build/temp.linux-x86_64-3.9/python3/cyordereddict gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -D_GNU_SOURCE -fPIC -fwrapv -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -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 -fPIC -I/usr/include/python3.9 -c python3/cyordereddict/_cyordereddict.c -o build/temp.linux-x86_64-3.9/python3/cyordereddict/_cyordereddict.o python3/cyordereddict/_cyordereddict.c: In function ‘PyInit__cyordereddict’: python3/cyordereddict/_cyordereddict.c:6690:52: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 6690 | __pyx_type_13cyordereddict_14_cyordereddict__Link.tp_print = 0; | ^ python3/cyordereddict/_cyordereddict.c:6696:58: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 6696 | __pyx_type_13cyordereddict_14_cyordereddict_OrderedDict.tp_print = 0; | ^ python3/cyordereddict/_cyordereddict.c:6750:79: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 6750 | __pyx_type_13cyordereddict_14_cyordereddict___pyx_scope_struct____reversed__.tp_print = 0; | ^ python3/cyordereddict/_cyordereddict.c:6753:80: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 6753 | __pyx_type_13cyordereddict_14_cyordereddict___pyx_scope_struct_1___reversed__.tp_print = 0; | ^ python3/cyordereddict/_cyordereddict.c:6756:80: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 6756 | __pyx_type_13cyordereddict_14_cyordereddict___pyx_scope_struct_2___reversed__.tp_print = 0; | ^ python3/cyordereddict/_cyordereddict.c:6759:76: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 6759 | __pyx_type_13cyordereddict_14_cyordereddict___pyx_scope_struct_3___iter__.tp_print = 0; | ^ python3/cyordereddict/_cyordereddict.c:6762:80: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 6762 | __pyx_type_13cyordereddict_14_cyordereddict___pyx_scope_struct_4___reversed__.tp_print = 0; | ^ python3/cyordereddict/_cyordereddict.c: In function ‘__Pyx_ExceptionSwap’: python3/cyordereddict/_cyordereddict.c:7481:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’? 7481 | tmp_type = tstate->exc_type; | ^~~~~~~~ | curexc_type python3/cyordereddict/_cyordereddict.c:7482:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’? 7482 | tmp_value = tstate->exc_value; | ^~~~~~~~~ | curexc_value python3/cyordereddict/_cyordereddict.c:7483:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? 7483 | tmp_tb = tstate->exc_traceback; | ^~~~~~~~~~~~~ | curexc_traceback python3/cyordereddict/_cyordereddict.c:7484:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’? 7484 | tstate->exc_type = *type; | ^~~~~~~~ | curexc_type python3/cyordereddict/_cyordereddict.c:7485:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’? 7485 | tstate->exc_value = *value; | ^~~~~~~~~ | curexc_value python3/cyordereddict/_cyordereddict.c:7486:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? 7486 | tstate->exc_traceback = *tb; | ^~~~~~~~~~~~~ | curexc_traceback python3/cyordereddict/_cyordereddict.c: In function ‘__Pyx_ParseOptionalKeywords’: python3/cyordereddict/_cyordereddict.c:8428:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 8428 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8428:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 8428 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8428:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 8428 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8428:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 8428 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8428:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 8428 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8428:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 8428 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8444:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 8444 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8444:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 8444 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8444:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 8444 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8444:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 8444 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8444:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 8444 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( | ^~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c:8444:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 8444 | (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : | ^ In file included from /usr/include/python3.9/unicodeobject.h:1026, from /usr/include/python3.9/Python.h:93, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c: In function ‘__Pyx_CyFunction_Call’: python3/cyordereddict/_cyordereddict.c:9115:2: warning: ‘PyCFunction_Call’ is deprecated [-Wdeprecated-declarations] 9115 | return PyCFunction_Call(func, arg, kw); | ^~~~~~ In file included from /usr/include/python3.9/Python.h:107, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/methodobject.h:33:43: note: declared here 33 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *); | ^~~~~~~~~~~~~~~~ python3/cyordereddict/_cyordereddict.c: In function ‘__pyx_CyFunction_init’: python3/cyordereddict/_cyordereddict.c:9180:5: warning: ‘PyCFunction_Call’ is deprecated [-Wdeprecated-declarations] 9180 | __pyx_CyFunctionType_type.tp_call = PyCFunction_Call; | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.9/Python.h:107, from python3/cyordereddict/_cyordereddict.c:12: /usr/include/python3.9/methodobject.h:33:43: note: declared here 33 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *); | ^~~~~~~~~~~~~~~~ error: command '/usr/bin/gcc' failed with exit code 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.V1lssD (%build) Bad exit status from /var/tmp/rpm-tmp.V1lssD (%build) 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-cyordereddict.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-cyordereddict.spec