-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Build failure: ceph (cython failure) #302224
Copy link
Copy link
Closed
Labels
0.kind: build failureA package fails to buildA package fails to build
Description
Steps To Reproduce
I am seeing cython errors building ceph on staging. Running nix-build -E 'with import /path/to/nixpkgs {}; ceph.
Build log
https://gist.github.com/danielbarter/ee6dfb258427a3f9fdab64745876ee26
...
Error compiling Cython file:
------------------------------------------------------------
...
"""
name = cstr(name, 'name')
cdef:
rados_ioctx_t _ioctx = convert_ioctx(ioctx)
char *_name = name
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
^
------------------------------------------------------------
rbd.pyx:760:44: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
rados_ioctx_t _ioctx = convert_ioctx(ioctx)
char *_name = name
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
void *_prog_arg = NULL
if on_progress:
_prog_cb = &progress_callback
^
------------------------------------------------------------
rbd.pyx:763:23: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1 nogil' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
image_id = cstr(image_id, 'image_id')
cdef:
rados_ioctx_t _ioctx = convert_ioctx(ioctx)
char *_image_id = image_id
int _force = force
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
^
------------------------------------------------------------
rbd.pyx:868:44: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
char *_image_id = image_id
int _force = force
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
void *_prog_arg = NULL
if on_progress:
_prog_cb = &progress_callback
^
------------------------------------------------------------
rbd.pyx:871:23: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1 nogil' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
"""
image_name = cstr(image_name, 'image_name')
cdef:
rados_ioctx_t _ioctx = convert_ioctx(ioctx)
char *_image_name = image_name
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
^
------------------------------------------------------------
rbd.pyx:1097:44: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
rados_ioctx_t _ioctx = convert_ioctx(ioctx)
char *_image_name = image_name
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
void *_prog_arg = NULL
if on_progress:
_prog_cb = &progress_callback
^
------------------------------------------------------------
rbd.pyx:1100:23: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1 nogil' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
"""
image_name = cstr(image_name, 'image_name')
cdef:
rados_ioctx_t _ioctx = convert_ioctx(ioctx)
char *_image_name = image_name
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
^
------------------------------------------------------------
rbd.pyx:1124:44: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
rados_ioctx_t _ioctx = convert_ioctx(ioctx)
char *_image_name = image_name
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
void *_prog_arg = NULL
if on_progress:
_prog_cb = &progress_callback
^
------------------------------------------------------------
rbd.pyx:1127:23: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1 nogil' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
"""
image_name = cstr(image_name, 'image_name')
cdef:
rados_ioctx_t _ioctx = convert_ioctx(ioctx)
char *_image_name = image_name
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
^
------------------------------------------------------------
rbd.pyx:1151:44: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
rados_ioctx_t _ioctx = convert_ioctx(ioctx)
char *_image_name = image_name
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
void *_prog_arg = NULL
if on_progress:
_prog_cb = &progress_callback
^
------------------------------------------------------------
rbd.pyx:1154:23: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1 nogil' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
cdef:
rbd_completion_t completion
PyObject* p_completion_obj= <PyObject*>completion_obj
with nogil:
ret = rbd_aio_create_completion(p_completion_obj, __aio_complete_cb,
^
------------------------------------------------------------
rbd.pyx:2929:62: Cannot assign type 'void (rbd_completion_t, void *) except * nogil' to 'rbd_callback_t' (alias of 'void (*)(rbd_completion_t, void *) noexcept nogil'). Exception values are incompatible. Suggest adding 'noexcept' to the type of '__aio_complete_cb'.
Error compiling Cython file:
------------------------------------------------------------
...
if not allow_shrink and old_size > size:
raise InvalidArgument("error allow_shrink is False but old_size > new_size")
cdef:
uint64_t _size = size
bint _allow_shrink = allow_shrink
librbd_progress_fn_t prog_cb = &no_op_progress_callback
^
------------------------------------------------------------
rbd.pyx:3009:43: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
"""
name = cstr(name, 'name')
cdef:
char *_name = name
uint32_t _flags = flags
librbd_progress_fn_t prog_cb = &no_op_progress_callback
^
------------------------------------------------------------
rbd.pyx:3517:43: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
name = cstr(name, 'name')
cdef:
char *_name = name
uint32_t _flags = flags
librbd_progress_fn_t prog_cb = &no_op_progress_callback
^
------------------------------------------------------------
rbd.pyx:3576:43: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
Flatten clone image (copy all blocks from parent to child)
:param on_progress: optional progress callback function
:type on_progress: callback function
"""
cdef:
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
^
------------------------------------------------------------
rbd.pyx:4091:44: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
"""
cdef:
librbd_progress_fn_t _prog_cb = &no_op_progress_callback
void *_prog_arg = NULL
if on_progress:
_prog_cb = &progress_callback
^
------------------------------------------------------------
rbd.pyx:4094:23: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1 nogil' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Error compiling Cython file:
------------------------------------------------------------
...
@requires_not_closed
def rebuild_object_map(self):
"""
Rebuild the object map for the image HEAD or currently set snapshot
"""
cdef librbd_progress_fn_t prog_cb = &no_op_progress_callback
^
------------------------------------------------------------
rbd.pyx:4118:44: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) except? -1' to 'librbd_progress_fn_t' (alias of 'int (*)(uint64_t, uint64_t, void *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Traceback (most recent call last):
File "/build/ceph-18.2.1/src/pybind/rbd/setup.py", line 192, in <module>
ext_modules=cythonize(
File "/nix/store/c55ks8c5p3qpvqy9azc5h05hij6d3fcf-python3-3.10.14-env/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "/nix/store/c55ks8c5p3qpvqy9azc5h05hij6d3fcf-python3-3.10.14-env/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: rbd.pyx
make[2]: *** [src/pybind/rbd/CMakeFiles/cython_rbd.dir/build.make:74: lib/cython_modules/lib.3/rbd.cpython-310-x86_64-linux-gnu.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:5126: src/pybind/rbd/CMakeFiles/cython_rbd.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
...
Notify maintainers
Metadata
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.1.82, NixOS, 23.11 (Tapir), 23.11.20240326.4473351`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.1`
- nixpkgs: `/nix/store/b2hxgkvh0jrkxfv312xcrmrr3qyz50c1-source`Add a 👍 reaction to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to buildA package fails to build
Fields
Give feedbackNo fields configured for issues without a type.