==> Synchronizing chroot copy [/home/alhp/workspace2/chroot/root] -> [build_0bc3d27f-bba7-4fc2-b1ea-0a319ac197dd]...done ==> Making package: python-bintrees 2.2.0-2.2 (Sun Dec 10 06:57:11 2023) ==> Retrieving sources... -> Downloading python-bintrees-2.2.0.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 80911 0 80911 0 0 140k 0 --:--:-- --:--:-- --:--:-- 140k ==> Validating source files with sha512sums... python-bintrees-2.2.0.tar.gz ... Passed ==> Validating source files with b2sums... python-bintrees-2.2.0.tar.gz ... Passed ==> Making package: python-bintrees 2.2.0-2.2 (Sun Dec 10 06:57:17 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (2) New Version Net Change core/libnsl 2.0.1-1 0.07 MiB core/python 3.11.6-1 75.27 MiB Total Installed Size: 75.34 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools: for building Python packages using tooling that is usually bundled with Python python-pip: for installing Python packages using tooling that is usually bundled with Python python-pipx: for installing Python software not packaged on Arch Linux sqlite: for a default database integration [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (23) New Version Net Change extra/python-annotated-types 0.6.0-1 0.11 MiB extra/python-autocommand 2.2.2-4 0.08 MiB extra/python-fastjsonschema 2.19.0-1 0.30 MiB extra/python-inflect 7.0.0-2 0.39 MiB extra/python-jaraco.context 4.3.0-3 0.04 MiB extra/python-jaraco.functools 3.9.0-1 0.07 MiB extra/python-jaraco.text 3.11.1-3 0.09 MiB extra/python-more-itertools 10.1.0-1 0.63 MiB extra/python-ordered-set 4.1.0-4 0.07 MiB extra/python-packaging 23.2-1 0.53 MiB extra/python-platformdirs 4.1.0-1 0.23 MiB extra/python-pydantic 2.5.2-1 4.78 MiB extra/python-pydantic-core 1:2.14.5-1 5.51 MiB extra/python-pyproject-hooks 1.0.0-5 0.09 MiB extra/python-tomli 2.0.1-3 0.11 MiB extra/python-trove-classifiers 2023.11.29-1 0.11 MiB extra/python-typing_extensions 4.8.0-1 0.35 MiB extra/python-validate-pyproject 0.13-1 0.29 MiB extra/cython 3.0.6-1 18.12 MiB extra/python-build 1.0.3-1 0.68 MiB extra/python-installer 0.7.0-3 0.82 MiB extra/python-setuptools 1:68.2.2-1 4.68 MiB extra/python-wheel 0.40.0-3 0.28 MiB Total Installed Size: 38.33 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-packaging... installing python-pyproject-hooks... installing python-build... Optional dependencies for python-build python-virtualenv: Use virtualenv for build isolation installing python-installer... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... installing python-annotated-types... installing python-typing_extensions... installing python-pydantic-core... installing python-pydantic... Optional dependencies for python-pydantic mypy: for type validation with mypy python-dotenv: for .env file support python-email-validator: for email validation python-hypothesis: for hypothesis plugin when using legacy v1 installing python-inflect... installing python-jaraco.text... installing python-ordered-set... installing python-platformdirs... installing python-tomli... installing python-fastjsonschema... installing python-trove-classifiers... installing python-validate-pyproject... installing python-setuptools... installing cython... [?25h==> Retrieving sources... -> Found python-bintrees-2.2.0.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Extracting python-bintrees-2.2.0.tar.gz with bsdtar ==> Starting build()... running build_ext /usr/lib/python3.11/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /startdir/src/bintrees-2.2.0/bintrees/cython_trees.pyx tree = Parsing.p_module(s, pxd, full_module_name) Error compiling Cython file: ------------------------------------------------------------ ... # Created: 28.04.2010 # Copyright (c) 2010-2013 by Manfred Moitzi # License: MIT License from .abctree import _ABCTree from ctrees cimport * ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:10:0: 'ctrees.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... DEF MAXSTACK = 64 cdef class NodeStack: """Simple stack for tree nodes.""" cdef node_t* stack[MAXSTACK] ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:16:9: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... cdef int stackptr def __cinit__(self): self.stackptr = 0 cdef push(self, node_t* node): ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:22:20: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... if self.stackptr >= MAXSTACK: raise RuntimeError("Stack overflow in NodeStack.push().") self.stack[self.stackptr] = node self.stackptr += 1 cdef node_t* pop(self): ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:28:9: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... cdef bint is_empty(self): return self.stackptr == 0 cdef class _BaseTree: cdef node_t *root # private (hidden) for CPython ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:38:9: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... ct_delete_tree(self.root) self.count = 0 self.root = NULL def get_value(self, key): cdef node_t *result = ct_find_node(self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:64:13: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... else: return result.value def max_item(self): """Get item with max key of tree, raises ValueError if tree is empty.""" cdef node_t *node = ct_max_node(self.root) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:72:13: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... raise ValueError("Tree is empty") return node.key, node.value def min_item(self): """Get item with min key of tree, raises ValueError if tree is empty.""" cdef node_t *node = ct_min_node(self.root) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:79:13: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... def succ_item(self, key): """Get successor (k,v) pair of key, raises KeyError if key is max key or key does not exist. """ cdef node_t *node = ct_succ_node(self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:88:13: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... def prev_item(self, key): """Get predecessor (k,v) pair of key, raises KeyError if key is min key or key does not exist. """ cdef node_t *node = ct_prev_node(self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:97:13: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... def floor_item(self, key): """Get (k,v) pair associated with the greatest key less than or equal to the given key, raises KeyError if there is no such key. """ cdef node_t *node = ct_floor_node(self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:106:13: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... def ceiling_item(self, key): """Get (k,v) pair associated with the smallest key greater than or equal to the given key, raises KeyError if there is no such key. """ cdef node_t *node = ct_ceiling_node(self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:115:13: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... return cdef int direction = 1 if reverse else 0 cdef int other = 1 - direction cdef bint go_down = True cdef NodeStack stack = NodeStack() cdef node_t *node ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:130:13: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... 2-tuple; but raise KeyError if T is empty. """ if self.count == 0: raise KeyError("pop_item(): tree is empty") cdef node_t *node = ct_get_leaf_node(self.root) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:157:13: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... """ if self.count == 0: return cdef NodeStack stack = NodeStack() cdef NodeStack tempstack = NodeStack() cdef node_t *node = self.root ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:174:13: 'node_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... def __init__(self, items=None): if items is not None: self.update(items) def __dealloc__(self): ct_delete_tree(self.root) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:50:8: undeclared name not builtin: ct_delete_tree Error compiling Cython file: ------------------------------------------------------------ ... ct_delete_tree(self.root) self.count = 0 self.root = NULL def get_value(self, key): cdef node_t *result = ct_find_node(self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:64:30: undeclared name not builtin: ct_find_node Error compiling Cython file: ------------------------------------------------------------ ... else: return result.value def max_item(self): """Get item with max key of tree, raises ValueError if tree is empty.""" cdef node_t *node = ct_max_node(self.root) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:72:28: undeclared name not builtin: ct_max_node Error compiling Cython file: ------------------------------------------------------------ ... raise ValueError("Tree is empty") return node.key, node.value def min_item(self): """Get item with min key of tree, raises ValueError if tree is empty.""" cdef node_t *node = ct_min_node(self.root) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:79:28: undeclared name not builtin: ct_min_node Error compiling Cython file: ------------------------------------------------------------ ... def succ_item(self, key): """Get successor (k,v) pair of key, raises KeyError if key is max key or key does not exist. """ cdef node_t *node = ct_succ_node(self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:88:28: undeclared name not builtin: ct_succ_node Error compiling Cython file: ------------------------------------------------------------ ... def prev_item(self, key): """Get predecessor (k,v) pair of key, raises KeyError if key is min key or key does not exist. """ cdef node_t *node = ct_prev_node(self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:97:28: undeclared name not builtin: ct_prev_node Error compiling Cython file: ------------------------------------------------------------ ... def floor_item(self, key): """Get (k,v) pair associated with the greatest key less than or equal to the given key, raises KeyError if there is no such key. """ cdef node_t *node = ct_floor_node(self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:106:28: undeclared name not builtin: ct_floor_node Error compiling Cython file: ------------------------------------------------------------ ... def ceiling_item(self, key): """Get (k,v) pair associated with the smallest key greater than or equal to the given key, raises KeyError if there is no such key. """ cdef node_t *node = ct_ceiling_node(self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:115:28: undeclared name not builtin: ct_ceiling_node Error compiling Cython file: ------------------------------------------------------------ ... cdef NodeStack stack = NodeStack() cdef node_t *node node = self.root while True: if node.link[direction] != NULL and go_down: ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:134:36: Invalid types for '!=' (Python object, void *) Error compiling Cython file: ------------------------------------------------------------ ... while True: if node.link[direction] != NULL and go_down: stack.push(node) node = node.link[direction] else: if (start_key is None or ct_compare(start_key, node.key) < 1) and \ ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:138:41: undeclared name not builtin: ct_compare Error compiling Cython file: ------------------------------------------------------------ ... node = node.link[direction] else: if (start_key is None or ct_compare(start_key, node.key) < 1) and \ (end_key is None or ct_compare(end_key, node.key) > 0): yield node.key, node.value if node.link[other] != NULL: ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:141:36: Invalid types for '!=' (Python object, void *) Error compiling Cython file: ------------------------------------------------------------ ... 2-tuple; but raise KeyError if T is empty. """ if self.count == 0: raise KeyError("pop_item(): tree is empty") cdef node_t *node = ct_get_leaf_node(self.root) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:157:28: undeclared name not builtin: ct_get_leaf_node Error compiling Cython file: ------------------------------------------------------------ ... func(node.key, node.value) cdef class _BinaryTree(_BaseTree): def insert(self, key, value): cdef int result = ct_bintree_insert(&self.root, key, value) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:210:26: undeclared name not builtin: ct_bintree_insert Error compiling Cython file: ------------------------------------------------------------ ... raise MemoryError('Can not allocate memory for node structure.') self.count += result def remove(self, key): cdef int result result = ct_bintree_remove(&self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:217:17: undeclared name not builtin: ct_bintree_remove Error compiling Cython file: ------------------------------------------------------------ ... pass cdef class _AVLTree(_BaseTree): def insert(self, key, value): cdef int result = avl_insert(&self.root, key, value) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:230:26: undeclared name not builtin: avl_insert Error compiling Cython file: ------------------------------------------------------------ ... raise MemoryError('Can not allocate memory for node structure.') else: self.count += result def remove(self, key): cdef int result = avl_remove(&self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:237:26: undeclared name not builtin: avl_remove Error compiling Cython file: ------------------------------------------------------------ ... pass cdef class _RBTree(_BaseTree): def insert(self, key, value): cdef int result = rb_insert(&self.root, key, value) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:250:26: undeclared name not builtin: rb_insert Error compiling Cython file: ------------------------------------------------------------ ... raise MemoryError('Can not allocate memory for node structure.') else: self.count += result def remove(self, key): cdef int result = rb_remove(&self.root, key) ^ ------------------------------------------------------------ bintrees/cython_trees.pyx:257:26: undeclared name not builtin: rb_remove Compiling bintrees/cython_trees.pyx because it changed. [1/1] Cythonizing bintrees/cython_trees.pyx Traceback (most recent call last): File "/startdir/src/bintrees-2.2.0/setup.py", line 26, in setup( File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 989, in run_command super().run_command(command) File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run self.build_extensions() File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions self._build_extensions_serial() File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.11/site-packages/Cython/Distutils/build_ext.py", line 130, in build_extension new_ext = cythonize( ^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize cythonize_one(*args) File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one raise CompileError(None, pyx_file) Cython.Compiler.Errors.CompileError: bintrees/cython_trees.pyx ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /home/alhp/workspace2/chroot/build_0bc3d27f-bba7-4fc2-b1ea-0a319ac197dd/build