• Bug#1066988: numpy: FTBFS: RuntimeError: Running cythonize failed!

    From Sebastian Ramacher@21:1/5 to All on Sat Mar 16 16:10:02 2024
    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: sramacher@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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Mar 17 09:40:01 2024
    This is a multi-part message in MIME format...

    Your message dated Sun, 17 Mar 2024 09:26:13 +0100
    with message-id <lwj3ekw65zvo5mfj26qyzhqb6jcrn3tkzejakgelqhcx76mwto@fafhvz6gro3j>
    and subject line Fwd: numpy_1.26.3-3_source.changes ACCEPTED into experimental has caused the Debian Bug report #1066988,
    regarding numpy: FTBFS: RuntimeError: Running cythonize failed!
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1066988: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066988
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 16 Mar 2024 15:01:08 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-105.9 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST autolearn=ham
    autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 49; hammy, 150; neutral, 134; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:108, 0.000-+--H*RT:311
    Return-path: <sramacher@debian.org>
    Received: from stravinsky.debian.org ([2001:41