Skip to content

[Python] 12.0.1 FTBFS w/ Cython-3 on Fedora 39/rawhide #36857

@kalebskeithley

Description

@kalebskeithley

I'm the maintainer of Apache Arrow on Fedora. To date, Arrow builds fine with cython 0.29. Fedora Rawhide has updated to Cython 3 and now the builds fail with:

 [ 16%] Built target _acero_pyx
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
      cdef cppclass CFlightListing" arrow::flight::FlightListing":
          CResult[unique_ptr[CFlightInfo]] Next()
      cdef cppclass CSimpleFlightListing" arrow::flight::SimpleFlightListing":
          CSimpleFlightListing(vector[CFlightInfo]&& info)
                              ^
  ------------------------------------------------------------
  pyarrow/includes/libarrow_flight.pxd:175:28: Rvalue-reference as function argument not supported
  gmake[2]: Leaving directory '/builddir/build/BUILD/apache-arrow-12.0.1/python/build/temp.linux-aarch64-cpython-312'
  [ 16%] Built target _parquet_encryption_pyx
  gmake[2]: Leaving directory '/builddir/build/BUILD/apache-arrow-12.0.1/python/build/temp.linux-aarch64-cpython-312'
  [ 16%] Built target _parquet_pyx
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
              # Text header values in gRPC (and HTTP/1, HTTP/2) are
              # required to be valid ASCII. Binary header values are
              # exposed as bytes.
              value = value.decode("ascii")
          headers.setdefault(header, []).append(value)
          postincrement(header_iter)
          ^
  ------------------------------------------------------------
  pyarrow/_flight.pyx:2312:8: No 'operator++(int)' declared for postfix '++' (operand type is 'const_iterator')

full build log at https://kojipkgs.fedoraproject.org/work/tasks/1880/103851880/build.log (it's a scratch build so the logs won't stick around for long)

Component(s)

Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions