Package: src:fpylll
Version: 0.5.9-1
Severity: important
Tags: sid trixie
User: [email protected]
Usertags: python3.12

fpylll ftbfs with Python 3.12:

[...]
[14/14] Cythonizing src/fpylll/util.pyx
build/src/fpylll/gmp/pylong.c: In function ‘__pyx_f_6fpylll_3gmp_6pylong_mpz_get_pylong_large’: build/src/fpylll/gmp/pylong.c:1281:13: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from incompatible pointer type ‘PyLongObject *’ {aka ‘struct _longobject *’} [-Wincompatible-pointer-types] 1281 | __pyx_t_2 = _PyLong_New(__pyx_v_pylong_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error)
      |             ^
build/src/fpylll/gmp/pylong.c:1293:48: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 1293 | (void)(mpz_export(((PyLongObject *)__pyx_v_L)->ob_digit, NULL, -1, (sizeof(digit)), 0, __pyx_v_6fpylll_3gmp_6pylong_PyLong_nails, __pyx_v_z));
      |                                                ^~
build/src/fpylll/gmp/pylong.c: In function ‘__pyx_f_6fpylll_3gmp_6pylong_mpz_set_pylong’: build/src/fpylll/gmp/pylong.c:1584:140: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’ 1584 | mpz_import(__pyx_v_z, __pyx_v_pylong_size, -1, (sizeof(digit)), 0, __pyx_v_6fpylll_3gmp_6pylong_PyLong_nails, ((PyLongObject *)__pyx_v_L)->ob_digit); |
   ^~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:395: build: plugin distutils failed with: exit code=1: /usr/bin/python3.12 setup.py build
I: pybuild base:310: /usr/bin/python3 setup.py build
build/src/fpylll/gmp/pylong.c: In function ‘__pyx_f_6fpylll_3gmp_6pylong_mpz_get_pylong_large’: build/src/fpylll/gmp/pylong.c:1281:13: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from incompatible pointer type ‘PyLongObject *’ {aka ‘struct _longobject *’} [-Wincompatible-pointer-types] 1281 | __pyx_t_2 = _PyLong_New(__pyx_v_pylong_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error)
      |             ^
In function ‘__Pyx_PyInt_From_int(int)’,
inlined from ‘__pyx_pf_6fpylll_5fplll_3bkz_12BKZReduction_6__call__(__pyx_obj_6fpylll_5fplll_3bkz_BKZReduction*)’ at build/src/fpylll/fplll/bkz.cpp:4425:35: build/src/fpylll/fplll/bkz.cpp:15230:34: warning: ‘__pyx_v_r’ may be used uninitialized [-Wmaybe-uninitialized]
15230 |             return PyInt_FromLong((long) value);
      |                                  ^
build/src/fpylll/fplll/bkz.cpp: In function ‘__pyx_pf_6fpylll_5fplll_3bkz_12BKZReduction_6__call__(__pyx_obj_6fpylll_5fplll_3bkz_BKZReduction*)’:
build/src/fpylll/fplll/bkz.cpp:4098:7: note: ‘__pyx_v_r’ was declared here
 4098 |   int __pyx_v_r;
      |       ^~~~~~~~~
build/src/fpylll/fplll/svpcvp.cpp: In function ‘PyObject* __pyx_pf_6fpylll_5fplll_6svpcvp_shortest_vector(PyObject*, __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix*, PyObject*, int, PyObject*, PyObject*, PyObject*)’: build/src/fpylll/fplll/svpcvp.cpp:3921:37: warning: comparison of integer expressions of different signedness: ‘std::vector<fplll::Z_NR<__mpz_struct [1]>, std::allocator<fplll::Z_NR<__mpz_struct [1]> > >::size_type’ {aka ‘long unsigned int’} and ‘Py_ssize_t’ {aka ‘long int’} [-Wsign-compare]
 3921 |     for (__pyx_t_24 = 0; __pyx_t_24 < __pyx_t_23; __pyx_t_24+=1) {
      |                          ~~~~~~~~~~~^~~~~~~~~~~~
build/src/fpylll/fplll/svpcvp.cpp: In function ‘PyObject* __pyx_pf_6fpylll_5fplll_6svpcvp_2closest_vector(PyObject*, __pyx_obj_6fpylll_5fplll_14integer_matrix_IntegerMatrix*, PyObject*, PyObject*, int)’: build/src/fpylll/fplll/svpcvp.cpp:4740:33: warning: comparison of integer expressions of different signedness: ‘std::vector<fplll::Z_NR<__mpz_struct [1]>, std::allocator<fplll::Z_NR<__mpz_struct [1]> > >::size_type’ {aka ‘long unsigned int’} and ‘Py_ssize_t’ {aka ‘long int’} [-Wsign-compare]
 4740 |   for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) {
      |                       ~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1940, from /usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /usr/lib/python3/dist-packages/numpy/core/include/numpy/arrayobject.h:5,
                 from build/src/fpylll/numpy.cpp:890:
/usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
dh_auto_build: error: pybuild --build -i python{version} -p "3.12 3.11" returned exit code 13

Reply via email to