Re: Help with the Cython 3.0 failures in Ceph

2024-03-03 Thread Thomas Goirand

On 3/3/24 21:08, Thomas Goirand wrote:

Hi,

I'm long overdue for an upload of Ceph 18.2.x in Unstable. I'm currently 
stuck with the below build failure:


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 = _op_progress_callback
     ^


rbd.pyx:760:44: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) 
except? -1' to 'librbd_progress_fn_t'. Exception values are 
incompatible. Suggest adding 'noexcept' to type 'int (uint64_t, 
uint64_t, void *) except? -1'.


THere's like a dozen of these in the build log, always with the same 
thing, with the same kind of assignation of a reference the op progress 
callback address.


I tried a few dumb things, but can't find out what to do to fix. Does 
anyone know what's going on, and how I can patch Ceph to have rbd.pyx to 
build?


Cheers,

Thomas Goirand (zigo)


Sorry for the noise, looks like I found a commit upstream (in the master 
branch) that fixes the issue.


Cheers,

Thomas Goirand (zigo)



Help with the Cython 3.0 failures in Ceph

2024-03-03 Thread Thomas Goirand

Hi,

I'm long overdue for an upload of Ceph 18.2.x in Unstable. I'm currently 
stuck with the below build failure:


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 = _op_progress_callback
^


rbd.pyx:760:44: Cannot assign type 'int (*)(uint64_t, uint64_t, void *) 
except? -1' to 'librbd_progress_fn_t'. Exception values are 
incompatible. Suggest adding 'noexcept' to type 'int (uint64_t, 
uint64_t, void *) except? -1'.


THere's like a dozen of these in the build log, always with the same 
thing, with the same kind of assignation of a reference the op progress 
callback address.


I tried a few dumb things, but can't find out what to do to fix. Does 
anyone know what's going on, and how I can patch Ceph to have rbd.pyx to 
build?


Cheers,

Thomas Goirand (zigo)