Source: numpy
Version: 1:1.24.2-3
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramac...@debian.org

https://buildd.debian.org/status/fetch.php?pkg=numpy&arch=amd64&ver=1%3A1.24.2-3&stamp=1709907264&raw=0

Running from numpy source directory.
/<<PKGBUILDDIR>>/setup.py:67: DeprecationWarning: 

  `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
  of the deprecation of `distutils` itself. It will be removed for
  Python >= 3.12. For older Python versions it will remain present.
  It is recommended to use `setuptools < 60.0` for those Python versions.
  For more details, see:
    https://numpy.org/devdocs/reference/distutils_status_migration.html 


  import numpy.distutils.command.sdist

Error compiling Cython file:
------------------------------------------------------------
...
    cdef sfc64_state rng_state

    def __init__(self, seed=None):
        BitGenerator.__init__(self, seed)
        self._bitgen.state = <void *>&self.rng_state
        self._bitgen.next_uint64 = &sfc64_uint64
                                   ^
------------------------------------------------------------

_sfc64.pyx:90:35: Cannot assign type 'uint64_t (*)(void *) except? -1 nogil' to 
'uint64_t (*)(void *) noexcept nogil'. Exception values are incompatible. 
Suggest adding 'noexcept' to type 'uint64_t (void *) except? -1 nogil'.
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/mtrand.pyx
Processing numpy/random/bit_generator.pyx
Processing numpy/random/_sfc64.pyx
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tools/cythonize.py", line 205, in <module>
    main()
  File "/<<PKGBUILDDIR>>/tools/cythonize.py", line 201, in main
    find_process_files(root_dir)
  File "/<<PKGBUILDDIR>>/tools/cythonize.py", line 192, in find_process_files
    process(root_dir, fromfile, tofile, function, hash_db)
  File "/<<PKGBUILDDIR>>/tools/cythonize.py", line 158, in process
    processor_function(fromfile, tofile)
  File "/<<PKGBUILDDIR>>/tools/cythonize.py", line 47, in process_pyx
    subprocess.check_call(
  File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3.12', '-m', 'cython', 
'-3', '--fast-fail', '-o', '_sfc64.c', '_sfc64.pyx']' returned non-zero exit 
status 1.
Cythonizing sources
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/setup.py", line 479, in <module>
    setup_package()
  File "/<<PKGBUILDDIR>>/setup.py", line 458, in setup_package
    generate_cython()
  File "/<<PKGBUILDDIR>>/setup.py", line 261, in generate_cython
    raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!
E: pybuild pybuild:391: configure: plugin distutils failed with: exit code=1: 
python3.12 setup.py config 
dh_auto_configure: error: pybuild --configure -i python{version} -p "3.12 3.11" 
returned exit code 13

Cheers
-- 
Sebastian Ramacher

Reply via email to