Skip to content

reproject compilation fails on Fedora 39 #813

@gcecil

Description

@gcecil

I'm trying to reinstall ccdproc after upgrading to Fedora 39. Worked fine on 38.
My astropy is 5.3.2, numpy 1.26.2, cython 3.0.2. gcc 13.2.1
When I pip install ccdproc I get the following failure. Why is it not finding ob_digit??

  building 'reproject.spherical_intersect._overlap' extension
  creating build/temp.linux-x86_64-cpython-312
  creating build/temp.linux-x86_64-cpython-312/reproject
  creating build/temp.linux-x86_64-cpython-312/reproject/spherical_intersect
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -I/tmp/pip-build-env-2yq55aik/overlay/lib64/python3.12/site-packages/numpy/core/include -Ireproject/spherical_intersect -I/usr/include/python3.12 -c reproject/spherical_intersect/_overlap.c -o build/temp.linux-x86_64-cpython-312/reproject/spherical_intersect/_overlap.o -O2
  In file included from /tmp/pip-build-env-2yq55aik/overlay/lib64/python3.12/site-packages/numpy/core/include/numpy/ndarraytypes.h:1929,
                   from /tmp/pip-build-env-2yq55aik/overlay/lib64/python3.12/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                   from /tmp/pip-build-env-2yq55aik/overlay/lib64/python3.12/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                   from reproject/spherical_intersect/_overlap.c:746:
  /tmp/pip-build-env-2yq55aik/overlay/lib64/python3.12/site-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 " \
        |  ^~~~~~~
  reproject/spherical_intersect/_overlap.c: In function ‘__pyx_pf_9reproject_19spherical_intersect_8_overlap__reproject_slice_cython’:
  reproject/spherical_intersect/_overlap.c:2225:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   2225 |   __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/include/python3.12/dictobject.h:90,
                   from /usr/include/python3.12/Python.h:61,
                   from reproject/spherical_intersect/_overlap.c:6:
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c:2237:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   2237 |   __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30, __pyx_L1_error)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c:2270:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   2270 |   __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 31, __pyx_L1_error)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c:2282:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   2282 |   __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c: In function ‘__pyx_pf_9reproject_19spherical_intersect_8_overlap_2_compute_overlap’:
  reproject/spherical_intersect/_overlap.c:2790:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   2790 |   __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c:2804:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   2804 |   __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 58, __pyx_L1_error)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c:2837:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   2837 |   __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 59, __pyx_L1_error)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c:2851:3: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   2851 |   __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c: In function ‘__Pyx_get_tp_dict_version’:
  reproject/spherical_intersect/_overlap.c:5413:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   5413 |     return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
        |     ^~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c: In function ‘__Pyx_get_object_dict_version’:
  reproject/spherical_intersect/_overlap.c:5425:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   5425 |     return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
        |     ^~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c: In function ‘__Pyx_object_dict_version_matches’:
  reproject/spherical_intersect/_overlap.c:5429:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   5429 |     if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        |     ^~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c: In function ‘__Pyx__GetModuleGlobalName’:
  reproject/spherical_intersect/_overlap.c:5446:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   5446 |     __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
        |     ^~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c: In function ‘__Pyx_Raise’:
  reproject/spherical_intersect/_overlap.c:5875:34: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
   5875 |         PyObject* tmp_tb = tstate->curexc_traceback;
        |                                  ^~
  reproject/spherical_intersect/_overlap.c:5878:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
   5878 |             tstate->curexc_traceback = tb;
        |                   ^~
  reproject/spherical_intersect/_overlap.c: In function ‘__Pyx_CLineForTraceback’:
  reproject/spherical_intersect/_overlap.c:6030:9: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   6030 |         __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c:6030:9: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
   6030 |         __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.12/cpython/dictobject.h:22:34: note: declared here
     22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
        |                                  ^~~~~~~~~~~~~~
  reproject/spherical_intersect/_overlap.c: In function ‘__Pyx_PyInt_As_int’:
  reproject/spherical_intersect/_overlap.c:6621:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
   6621 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
        |                                                     ^~
  reproject/spherical_intersect/_overlap.c:6676:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
   6676 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
        |                                                     ^~
  reproject/spherical_intersect/_overlap.c: In function ‘__Pyx_PyInt_As_long’:
  reproject/spherical_intersect/_overlap.c:6893:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
   6893 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
        |                                                     ^~
  reproject/spherical_intersect/_overlap.c:6948:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
   6948 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
        |                                                     ^~
  reproject/spherical_intersect/_overlap.c: In function ‘__Pyx_PyIndex_AsSsize_t’:
  reproject/spherical_intersect/_overlap.c:7399:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
   7399 |     const digit* digits = ((PyLongObject*)b)->ob_digit;
        |                                             ^~
  error: command '/usr/bin/gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for reproject
Failed to build reproject
ERROR: Could not build wheels for reproject, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions