==> Synchronizing chroot copy [/chroot/x86_64/root] -> [build]...done
==> Making package: python-bintrees 2.2.0-2 (Mon Aug  7 08:47:31 2023)
==> Retrieving sources...
  -> Found bintrees-2.2.0.zip
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
    bintrees-2.2.0.zip ... Passed
==> Making package: python-bintrees 2.2.0-2 (Mon 07 Aug 2023 08:47:37 AM EDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[?25lresolving dependencies...
looking for conflicting packages...

Packages (3) libnsl-2.0.0-3  cython-3.0.0-1  python-3.11.3-2

Total Download Size:    3.43 MiB
Total Installed Size:  93.12 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 cython-3.0.0-1-x86_64 downloading...
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
    python-pip
    sqlite [installed]
    mpdecimal: for decimal
    xz: for lzma [installed]
    tk: for tkinter
installing cython...
[?25h==> Checking buildtime dependencies...
==> Installing missing dependencies...
[?25lresolving dependencies...
looking for conflicting packages...

Packages (16) python-autocommand-2.2.2-4  python-fastjsonschema-2.18.0-1
              python-inflect-7.0.0-1  python-jaraco.context-4.3.0-3
              python-jaraco.functools-3.8.0-1  python-jaraco.text-3.11.1-3
              python-more-itertools-10.0.1-1  python-ordered-set-4.1.0-4
              python-packaging-23.1-1  python-platformdirs-3.9.1-1
              python-pydantic-1.10.9-1  python-tomli-2.0.1-3
              python-trove-classifiers-2023.7.6-1
              python-typing_extensions-4.7.1-1
              python-validate-pyproject-0.13-1  python-setuptools-1:68.0.0-1

Total Installed Size:  15.67 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing python-more-itertools...
installing python-jaraco.functools...
installing python-jaraco.context...
installing python-autocommand...
installing python-typing_extensions...
installing python-pydantic...
Optional dependencies for python-pydantic
    python-dotenv: for .env file support
    python-email-validator: for email validation
installing python-inflect...
installing python-jaraco.text...
installing python-ordered-set...
installing python-packaging...
installing python-platformdirs...
installing python-tomli...
installing python-fastjsonschema...
installing python-trove-classifiers...
installing python-validate-pyproject...
installing python-setuptools...
[?25h==> Retrieving sources...
  -> Found bintrees-2.2.0.zip
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting bintrees-2.2.0.zip with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
running install
/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/bintrees
copying bintrees/bintree.py -> build/lib.linux-x86_64-cpython-311/bintrees
copying bintrees/__init__.py -> build/lib.linux-x86_64-cpython-311/bintrees
copying bintrees/rbtree.py -> build/lib.linux-x86_64-cpython-311/bintrees
copying bintrees/treeslice.py -> build/lib.linux-x86_64-cpython-311/bintrees
copying bintrees/abctree.py -> build/lib.linux-x86_64-cpython-311/bintrees
copying bintrees/avltree.py -> build/lib.linux-x86_64-cpython-311/bintrees
running build_ext
Compiling bintrees/cython_trees.pyx because it changed.
[1/1] Cythonizing bintrees/cython_trees.pyx
/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: /build/python-bintrees/src/bintrees-2.2.0/bintrees/cython_trees.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
warning: bintrees/cython_trees.pyx:12:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310

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 <object> 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 <object>node.key, <object>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 <object> 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 <object>node.key, <object>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, <object>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, <object>node.key) < 1) and \
                    (end_key is None or ct_compare(end_key, <object>node.key) > 0):
                    yield <object>node.key, <object>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(<object>node.key, <object>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
Traceback (most recent call last):
  File "/build/python-bintrees/src/bintrees-2.2.0/setup.py", line 26, in <module>
    setup(
  File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 107, 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 1234, 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/command/install.py", line 74, in run
    return orig.install.run(self)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 697, in run
    self.run_command('build')
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 1234, 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.py", line 131, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 1234, 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 122, in build_extension
    new_ext = cythonize(
              ^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
    cythonize_one(*args)
  File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: bintrees/cython_trees.pyx
==> ERROR: A failure occurred in package().
    Aborting...
==> Removing installed dependencies...
[?25lchecking dependencies...
:: glib2 optionally requires python: gdbus-codegen, glib-genmarshal, glib-mkenums, gtester-report
:: libevent optionally requires python: event_rpcgen.py
:: libxml2 optionally requires python: Python bindings
:: util-linux-libs optionally requires python: python bindings to libmount

Packages (19) cython-3.0.0-1  libnsl-2.0.0-3  python-3.11.3-2
              python-autocommand-2.2.2-4  python-fastjsonschema-2.18.0-1
              python-inflect-7.0.0-1  python-jaraco.context-4.3.0-3
              python-jaraco.functools-3.8.0-1  python-jaraco.text-3.11.1-3
              python-more-itertools-10.0.1-1  python-ordered-set-4.1.0-4
              python-packaging-23.1-1  python-platformdirs-3.9.1-1
              python-pydantic-1.10.9-1  python-setuptools-1:68.0.0-1
              python-tomli-2.0.1-3  python-trove-classifiers-2023.7.6-1
              python-typing_extensions-4.7.1-1
              python-validate-pyproject-0.13-1

Total Removed Size:  108.79 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
removing python-setuptools...
removing python-validate-pyproject...
removing python-trove-classifiers...
removing python-tomli...
removing python-platformdirs...
removing python-packaging...
removing python-ordered-set...
removing python-jaraco.text...
removing python-jaraco.functools...
removing python-more-itertools...
removing python-jaraco.context...
removing python-inflect...
removing python-pydantic...
removing python-typing_extensions...
removing python-fastjsonschema...
removing python-autocommand...
removing cython...
removing python...
removing libnsl...
[?25h==> ERROR: Build failed, check /chroot/x86_64/build/build