Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-vlcp-event-cython.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1687333493.776400/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 aarch64 --nodeps /builddir/build/SPECS/python-vlcp-event-cython.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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-vlcp-event-cython-0.1.5-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-vlcp-event-cython.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1687333493.776400/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 aarch64 --nodeps /builddir/build/SPECS/python-vlcp-event-cython.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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-vlcp-event-cython-0.1.5-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-vlcp-event-cython.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1687333493.776400/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 aarch64 --nodeps /builddir/build/SPECS/python-vlcp-event-cython.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: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.UVIDkJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf vlcp-event-cython-0.1.5 + /usr/bin/gzip -dc /builddir/build/SOURCES/vlcp-event-cython-0.1.5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd vlcp-event-cython-0.1.5 + /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.bGhxV9 + umask 022 + cd /builddir/build/BUILD + cd vlcp-event-cython-0.1.5 + 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 -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' /usr/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( WARNING: The wheel package is not available. WARNING: The wheel package is not available. /usr/lib/python3.9/site-packages/setuptools/dist.py:294: DistDeprecationWarning: use_2to3 is ignored. warnings.warn(f"{attr} is ignored.", DistDeprecationWarning) running build running build_py creating build creating build/lib.linux-aarch64-3.9 creating build/lib.linux-aarch64-3.9/vlcp_event_cython copying vlcp_event_cython/__init__.py -> build/lib.linux-aarch64-3.9/vlcp_event_cython running build_ext cythoning vlcp_event_cython/event.pyx to vlcp_event_cython/event.c /builddir/build/BUILD/vlcp-event-cython-0.1.5/.eggs/Cython-0.29.35-py3.9-linux-aarch64.egg/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /builddir/build/BUILD/vlcp-event-cython-0.1.5/vlcp_event_cython/event.pyx tree = Parsing.p_module(s, pxd, full_module_name) cythoning vlcp_event_cython/matchtree.pyx to vlcp_event_cython/matchtree.c /builddir/build/BUILD/vlcp-event-cython-0.1.5/.eggs/Cython-0.29.35-py3.9-linux-aarch64.egg/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /builddir/build/BUILD/vlcp-event-cython-0.1.5/vlcp_event_cython/matchtree.pyx tree = Parsing.p_module(s, pxd, full_module_name) Error compiling Cython file: ------------------------------------------------------------ ... Created on 2015/06/01 :author: hubo ''' from __future__ import print_function, absolute_import, division from vlcp_event_cython.event cimport Event, EventMatcher ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:7:0: 'vlcp_event_cython/event.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... Created on 2015/06/01 :author: hubo ''' from __future__ import print_function, absolute_import, division from vlcp_event_cython.event cimport Event, EventMatcher ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:7:0: 'vlcp_event_cython/event/Event.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... Created on 2015/06/01 :author: hubo ''' from __future__ import print_function, absolute_import, division from vlcp_event_cython.event cimport Event, EventMatcher ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:7:0: 'vlcp_event_cython/event/EventMatcher.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... self.parent = parent if parent is not None: self.depth = parent.depth + 1 else: self.depth = 0 cpdef MatchTree subtree(self, EventMatcher matcher, bint create = False): ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:43:34: 'EventMatcher' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... else: return None else: current = current2 return current cpdef insert(self, EventMatcher matcher, obj): ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:81:23: 'EventMatcher' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... :param obj: object to return ''' cdef MatchTree current = self.subtree(matcher, True) current._matchers.append((matcher, obj)) return current cpdef remove(self, EventMatcher matcher, obj): ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:90:23: 'EventMatcher' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... else: del current.parent._index[ind] p = current.parent current.parent = None current = p cpdef tuple matchesWithMatchers(self, Event event): ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:113:42: 'Event' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... ''' cdef list ret = [] cdef set s = set() self._matches(event, s, ret) return tuple(ret) cpdef tuple matches(self, Event event): ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:122:30: 'Event' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... cdef list ret = [] cdef set s = set() self._matches(event, s, ret) cdef tuple r return tuple([r[0] for r in ret]) cdef int _matches(self, Event event, set duptest, list retlist) except -1: ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:132:28: 'Event' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... cdef EventMatcher m for m,o in self._matchers: if o not in duptest and m.judge(event): duptest.add(o) retlist.append((o, m)) cpdef matchfirst(self, Event event): ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:149:27: 'Event' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... if parent is not None: self.depth = parent.depth + 1 else: self.depth = 0 self.branch = branch cpdef EventTree subtree(self, Event event, bint create = False): ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:212:34: 'Event' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... current2.parentIndex = ind else: return None current = current2 return current cpdef insert(self, Event event): ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:233:23: 'Event' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... current = p if current._index or current.events: break if current.hassubtree and not current._index: current.hassubtree = False cdef int _findAndRemove(self, EventMatcher matcher, list ret) except -1: ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:264:34: 'EventMatcher' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... if ind not in current._index: return 0 current = current._index[ind] current._returnAll(ret) current._removeFromParent() cpdef findAndRemove(self, EventMatcher matcher): ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:292:30: 'EventMatcher' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... current._removeFromParent() cpdef findAndRemove(self, EventMatcher matcher): cdef list ret = [] self._findAndRemove(matcher, ret) return tuple(ret) cpdef remove(self, Event event): ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:296:23: 'Event' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... if ind in self._index: subtree = self._index[ind] subtree._matches(event, duptest, retlist) if self._any is not None: self._any._matches(event, duptest, retlist) cdef EventMatcher m ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:144:13: 'EventMatcher' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... return m if self._any is not None: m = self._any.matchfirst(event) if m is not None: return m cdef EventMatcher m2 ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:169:13: 'EventMatcher' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... current.hassubtree = False cdef int _findAndRemove(self, EventMatcher matcher, list ret) except -1: cdef EventTree current = self cdef list newsub = [] cdef EventTree st cdef Event e ^ ------------------------------------------------------------ vlcp_event_cython/matchtree.pyx:268:13: 'Event' is not a type identifier cythoning vlcp_event_cython/pqueue.pyx to vlcp_event_cython/pqueue.c /builddir/build/BUILD/vlcp-event-cython-0.1.5/.eggs/Cython-0.29.35-py3.9-linux-aarch64.egg/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /builddir/build/BUILD/vlcp-event-cython-0.1.5/vlcp_event_cython/pqueue.pyx tree = Parsing.p_module(s, pxd, full_module_name) Error compiling Cython file: ------------------------------------------------------------ ... :author: hubo ''' from __future__ import print_function, absolute_import, division from collections import deque from vlcp_event_cython.matchtree cimport MatchTree ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:8:0: 'vlcp_event_cython/matchtree.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... :author: hubo ''' from __future__ import print_function, absolute_import, division from collections import deque from vlcp_event_cython.matchtree cimport MatchTree ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:8:0: 'vlcp_event_cython/matchtree/MatchTree.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... :author: hubo ''' from __future__ import print_function, absolute_import, division from collections import deque from vlcp_event_cython.matchtree cimport MatchTree from vlcp_event_cython.event cimport Event, EventMatcher ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:9:0: 'vlcp_event_cython/event.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... :author: hubo ''' from __future__ import print_function, absolute_import, division from collections import deque from vlcp_event_cython.matchtree cimport MatchTree from vlcp_event_cython.event cimport Event, EventMatcher ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:9:0: 'vlcp_event_cython/event/Event.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... :author: hubo ''' from __future__ import print_function, absolute_import, division from collections import deque from vlcp_event_cython.matchtree cimport MatchTree from vlcp_event_cython.event cimport Event, EventMatcher ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:9:0: 'vlcp_event_cython/event/EventMatcher.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... AutoClassQueue = _AutoClassQueue cdef: dict queues dict queueindex list prioritySet MatchTree tree ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:885:8: 'MatchTree' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... def __cinit__(self): self.queues = {} self.queueindex = {} self.prioritySet = [] self.blockEvents = {} def __init__(self, MatchTree tree = None, _MultiQueue parent = None, maxdefault = None, maxtotal = None, defaultQueueClass = _FifoQueue, int defaultQueuePriority = 0): ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:898:23: 'MatchTree' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... self.queues[q[0]].removeSubQueue(q[1]) newPriority = self.queues.setdefault(priority, CBQueue.MultiQueue(self, priority)) q[0] = priority newPriority.addSubQueue(q[1]) cpdef addSubQueue(self, int priority, EventMatcher matcher, name = None, maxdefault = None, maxtotal = None, defaultQueueClass = FifoQueue): ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:1151:42: 'EventMatcher' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... :param maxdefault: max length for default queue. :param maxtotal: max length for sub-queue total, including sub-queues of sub-queue ''' if name is not None and name in self.queueindex: raise IndexError("Duplicated sub-queue name '" + str(name) + "'") cdef MatchTree subtree = self.tree.subtree(matcher, True) ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:1162:13: 'MatchTree' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... returnitem = lastelt return returnitem @withIndices('queue') class QueueCanWriteEvent(Event): ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:91:25: 'Event' is not a constant, variable or function identifier Error compiling Cython file: ------------------------------------------------------------ ... @withIndices('queue') class QueueCanWriteEvent(Event): pass @withIndices('queue') class QueueIsEmptyEvent(Event): ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:95:24: 'Event' is not a constant, variable or function identifier Error compiling Cython file: ------------------------------------------------------------ ... self.queue = [] self.blocks = set() def __init__(self, _MultiQueue parent = None, maxlength = None, str key = 'priority'): # a heap self.parent = parent self.maxlength = None if maxlength is None else maxlength ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:242:25: Cannot assign None to int Error compiling Cython file: ------------------------------------------------------------ ... def __init__(self, MatchTree tree = None, _MultiQueue parent = None, maxdefault = None, maxtotal = None, defaultQueueClass = _FifoQueue, int defaultQueuePriority = 0): ''' Constructor ''' if tree is None: self.tree = MatchTree() ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:903:24: 'MatchTree' is not a constant, variable or function identifier Error compiling Cython file: ------------------------------------------------------------ ... if self.tree is None: if self.parent is None: raise IndexError('The queue is removed') else: return self.parent.parent.append(event, force) cdef _SubQueue q = self.tree.matchfirst(event) ^ ------------------------------------------------------------ vlcp_event_cython/pqueue.pyx:945:49: 'Event' is not a type identifier building 'vlcp_event_cython.event' extension creating build/temp.linux-aarch64-3.9 creating build/temp.linux-aarch64-3.9/vlcp_event_cython 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 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -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 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.9 -c vlcp_event_cython/event.c -o build/temp.linux-aarch64-3.9/vlcp_event_cython/event.o gcc -shared -g -g -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld -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 -fasynchronous-unwind-tables -fstack-clash-protection build/temp.linux-aarch64-3.9/vlcp_event_cython/event.o -L/usr/lib64 -o build/lib.linux-aarch64-3.9/vlcp_event_cython/event.cpython-39-aarch64-linux-gnu.so building 'vlcp_event_cython.matchtree' extension 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 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -funsigned-char -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 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/include/python3.9 -c vlcp_event_cython/matchtree.c -o build/temp.linux-aarch64-3.9/vlcp_event_cython/matchtree.o vlcp_event_cython/matchtree.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation. 1 | #error Do not use this file, it is the result of a failed Cython compilation. | ^~~~~ error: command '/usr/bin/gcc' failed with exit code 1 error: Bad exit status from /var/tmp/rpm-tmp.bGhxV9 (%build) Bad exit status from /var/tmp/rpm-tmp.bGhxV9 (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-vlcp-event-cython.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/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 aarch64 --nodeps /builddir/build/SPECS/python-vlcp-event-cython.spec