Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/python-cysignals.spec'], chrootPath='/var/lib/mock/f40-build-740723-109736/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/python-cysignals.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1686700800 Wrote: /builddir/build/SRPMS/python-cysignals-1.11.2-6.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-cysignals.spec'], chrootPath='/var/lib/mock/f40-build-740723-109736/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-cysignals.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: The %{pyproject_build_lib} macro is deprecated. It only works with setuptools and is not build-backend-agnostic. The macro is not scheduled for removal, but there is a possibility of incompatibilities with future versions of setuptools. As a replacement for the macro for the setuptools backend on Fedora 37+, you can use $PWD/build/lib for pure Python packages, or $PWD/build/lib.%{python3_platform}-cpython-%{python3_version_nodots} for packages with extension modules. Other build backends and older distributions may need different paths. See https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/HMLOPAU3RZLXD4BOJHTIPKI3I4U6U7OE/ for details. Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1686700800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4Ikdaj + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cysignals-1.11.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/cysignals-1.11.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd cysignals-1.11.2 + rm -rf /builddir/build/BUILD/cysignals-1.11.2-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/cysignals-1.11.2-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-cysignals-gdb.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-cysignals-emms.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-cysignals-fortify.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-cysignals-underlink.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-cysignals-crash-logs.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-cysignals-sigismember.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + sed -i 's|'\''https://docs\.python\.org/3'\'', None|'\''https://docs.python.org/3'\'', '\''/usr/share/doc/python3-docs/html/objects.inv'\''|' docs/source/conf.py + sed -i s/language_level=2/language_level=3/ setup.py + sed -i s/600/2400/ rundoctests.py + autoreconf -fi . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.p72ktJ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd cysignals-1.11.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-11-14 09:50:10.313234508 -0500 +++ ./configure 2023-11-14 09:50:12.293236707 -0500 @@ -1625,7 +1625,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh ++ grep -q runstatedir=DIR ./configure ++ echo --runstatedir=/run + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info configure: WARNING: unrecognized options: --disable-dependency-tracking checking for riscv64-redhat-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether the compiler supports GNU C++... yes checking whether gcc accepts -g... yes checking for gcc option to enable C++11 features... none needed checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for execinfo.h... yes checking for sys/mman.h... yes checking for sys/prctl.h... yes checking for sys/time.h... yes checking for sys/wait.h... yes checking for windows.h... no checking for fork... yes checking for kill... yes checking for sigprocmask... yes checking for sigaltstack... yes checking for backtrace... yes checking for gcc options needed to detect all undeclared functions... none needed checking for library containing pari_init... -lpari checking whether PARI_SIGINT_block is declared... yes checking for emms instruction... no checking whether setjmp() saves the signal mask... no checking for GNU libc... yes checking for _Atomic in C code... yes checking for _Atomic with OpenMP in C code... yes checking for _Atomic in C++ code... no checking for std::atomic... yes checking for std::atomic with OpenMP in C++ code... yes checking whether MINSIGSTKSZ is constant... no configure: creating ./config.status config.status: creating src/cysignals/signals.pxd config.status: creating src/config.h config.status: creating src/cysignals/cysignals_config.h configure: WARNING: unrecognized options: --disable-dependency-tracking + mkdir -p /builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + TMPDIR=/builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/cysignals-1.11.2/pyproject-wheeldir Processing /builddir/build/BUILD/cysignals-1.11.2 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) running dist_info creating /builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir/pip-modern-metadata-dc7ad3ez/cysignals.egg-info writing /builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir/pip-modern-metadata-dc7ad3ez/cysignals.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir/pip-modern-metadata-dc7ad3ez/cysignals.egg-info/dependency_links.txt writing requirements to /builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir/pip-modern-metadata-dc7ad3ez/cysignals.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir/pip-modern-metadata-dc7ad3ez/cysignals.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir/pip-modern-metadata-dc7ad3ez/cysignals.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir/pip-modern-metadata-dc7ad3ez/cysignals.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'build' no previously-included directories found matching 'dist' no previously-included directories found matching 'tmp' no previously-included directories found matching '.*' no previously-included directories found matching 'example/.*' adding license file 'LICENSE' writing manifest file '/builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir/pip-modern-metadata-dc7ad3ez/cysignals.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir/pip-modern-metadata-dc7ad3ez/cysignals-1.11.2.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: cysignals Building wheel for cysignals (pyproject.toml): started Running command Building wheel for cysignals (pyproject.toml) running bdist_wheel running build running build_py running configure creating build creating build/lib.linux-riscv64-cpython-312 creating build/lib.linux-riscv64-cpython-312/cysignals copying src/cysignals/__init__.py -> build/lib.linux-riscv64-cpython-312/cysignals copying src/cysignals/signals.pxd -> build/lib.linux-riscv64-cpython-312/cysignals copying src/cysignals/memory.pxd -> build/lib.linux-riscv64-cpython-312/cysignals copying src/cysignals/pysignals.pxd -> build/lib.linux-riscv64-cpython-312/cysignals copying src/cysignals/cysignals_config.h -> build/lib.linux-riscv64-cpython-312/cysignals copying src/cysignals/struct_signals.h -> build/lib.linux-riscv64-cpython-312/cysignals copying src/cysignals/macros.h -> build/lib.linux-riscv64-cpython-312/cysignals running build_ext Error compiling Cython file: ------------------------------------------------------------ ... # This function does nothing, but it is declared cdef except *, so it # can be used to make Cython check whether there is a pending exception # (PyErr_Occurred() is non-NULL). To Cython, it will look like # cython_check_exception() actually raised the exception. cdef inline void cython_check_exception() nogil except *: ^ ------------------------------------------------------------ src/cysignals/signals.pxd:57:56: The keyword 'nogil' should appear at the end of the function signature line. Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython. Error compiling Cython file: ------------------------------------------------------------ ... import sys from gc import collect cdef extern from "implementation.c": cysigs_t cysigs ^ ------------------------------------------------------------ src/cysignals/signals.pyx:39:4: 'cysigs_t' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... PyErr_SetString(SignalError, msg) else: PyErr_Format(SystemError, "unknown signal number %i", sig) # Save exception in cysigs.exc_value cdef PyObject* typ ^ ------------------------------------------------------------ src/cysignals/signals.pyx:162:9: 'PyObject' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... else: PyErr_Format(SystemError, "unknown signal number %i", sig) # Save exception in cysigs.exc_value cdef PyObject* typ cdef PyObject* val ^ ------------------------------------------------------------ src/cysignals/signals.pyx:163:9: 'PyObject' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... PyErr_Format(SystemError, "unknown signal number %i", sig) # Save exception in cysigs.exc_value cdef PyObject* typ cdef PyObject* val cdef PyObject* tb ^ ------------------------------------------------------------ src/cysignals/signals.pyx:164:9: 'PyObject' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... cdef PyObject* val cdef PyObject* tb PyErr_Fetch(&typ, &val, &tb) PyErr_NormalizeException(&typ, &val, &tb) Py_XINCREF(val) Py_XDECREF(cysigs.exc_value) ^ ------------------------------------------------------------ src/cysignals/signals.pyx:168:21: Cannot convert Python object to 'PyObject *' Error compiling Cython file: ------------------------------------------------------------ ... """ Python-level interrupt handler for interrupts raised in Python code. This simply delegates to the interrupt handling code in ``implementation.c``. """ sig_check() ^ ------------------------------------------------------------ src/cysignals/signals.pyx:310:4: undeclared name not builtin: sig_check Error compiling Cython file: ------------------------------------------------------------ ... Check that ``cysigs.exc_value`` is still the exception being raised. Clear ``cysigs.exc_value`` if not. """ if cysigs.exc_value.ob_refcnt == 1: # No other references => exception is certainly gone Py_XDECREF(cysigs.exc_value) ^ ------------------------------------------------------------ src/cysignals/signals.pyx:320:25: Cannot convert Python object to 'PyObject *' Error compiling Cython file: ------------------------------------------------------------ ... Clear ``cysigs.exc_value`` if not. """ if cysigs.exc_value.ob_refcnt == 1: # No other references => exception is certainly gone Py_XDECREF(cysigs.exc_value) cysigs.exc_value = NULL ^ ------------------------------------------------------------ src/cysignals/signals.pyx:321:27: Cannot convert 'void *' to Python object Error compiling Cython file: ------------------------------------------------------------ ... try: handled = sys.last_value except AttributeError: pass else: if handled is cysigs.exc_value: ^ ------------------------------------------------------------ src/cysignals/signals.pyx:351:12: 'PyObject' is not a type identifier Error compiling Cython file: ------------------------------------------------------------ ... handled = sys.last_value except AttributeError: pass else: if handled is cysigs.exc_value: Py_XDECREF(cysigs.exc_value) ^ ------------------------------------------------------------ src/cysignals/signals.pyx:352:29: Cannot convert Python object to 'PyObject *' Error compiling Cython file: ------------------------------------------------------------ ... except AttributeError: pass else: if handled is cysigs.exc_value: Py_XDECREF(cysigs.exc_value) cysigs.exc_value = NULL ^ ------------------------------------------------------------ src/cysignals/signals.pyx:353:31: Cannot convert 'void *' to Python object Error compiling Cython file: ------------------------------------------------------------ ... pass # Make sure we still have cysigs.exc_value at all; if this function was # called again during garbage collection it might have already been set # to NULL; see https://github.com/sagemath/cysignals/issues/126 if cysigs.exc_value != NULL and cysigs.exc_value.ob_refcnt == 1: ^ ------------------------------------------------------------ src/cysignals/signals.pyx:368:24: Invalid types for '!=' (Python object, void *) Error compiling Cython file: ------------------------------------------------------------ ... # Make sure we still have cysigs.exc_value at all; if this function was # called again during garbage collection it might have already been set # to NULL; see https://github.com/sagemath/cysignals/issues/126 if cysigs.exc_value != NULL and cysigs.exc_value.ob_refcnt == 1: Py_XDECREF(cysigs.exc_value) ^ ------------------------------------------------------------ src/cysignals/signals.pyx:369:25: Cannot convert Python object to 'PyObject *' Error compiling Cython file: ------------------------------------------------------------ ... # Make sure we still have cysigs.exc_value at all; if this function was # called again during garbage collection it might have already been set # to NULL; see https://github.com/sagemath/cysignals/issues/126 if cysigs.exc_value != NULL and cysigs.exc_value.ob_refcnt == 1: Py_XDECREF(cysigs.exc_value) cysigs.exc_value = NULL ^ ------------------------------------------------------------ src/cysignals/signals.pyx:370:27: Cannot convert 'void *' to Python object Compiling src/cysignals/signals.pyx because it changed. Compiling src/cysignals/pysignals.pyx because it changed. Compiling src/cysignals/alarm.pyx because it changed. Compiling src/cysignals/pselect.pyx because it changed. Compiling src/cysignals/tests.pyx because it changed. [1/5] Cythonizing src/cysignals/alarm.pyx [2/5] Cythonizing src/cysignals/pselect.pyx [3/5] Cythonizing src/cysignals/pysignals.pyx [4/5] Cythonizing src/cysignals/signals.pyx Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 434, in build_wheel return self._build_with_temp_dir( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 419, in _build_with_temp_dir self.run_setup() File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 507, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 341, in run_setup exec(code, locals()) File "", line 195, in File "/usr/lib/python3.12/site-packages/setuptools/__init__.py", line 103, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 989, in run_command super().run_command(command) File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/usr/lib/python3.12/site-packages/wheel/bdist_wheel.py", line 364, in run self.run_command("build") File "/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 989, in run_command super().run_command(command) File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 131, in run self.run_command(cmd_name) File "/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 989, in run_command super().run_command(command) File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "", line 154, in run File "", line 165, in cythonize File "/usr/lib64/python3.12/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize cythonize_one(*args) File "/usr/lib64/python3.12/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one raise CompileError(None, pyx_file) Cython.Compiler.Errors.CompileError: src/cysignals/signals.pyx error: subprocess-exited-with-error × Building wheel for cysignals (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /usr/bin/python3 /usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /builddir/build/BUILD/cysignals-1.11.2/.pyproject-builddir/tmpth4vpt41 cwd: /builddir/build/BUILD/cysignals-1.11.2 Building wheel for cysignals (pyproject.toml): finished with status 'error' ERROR: Failed building wheel for cysignals Failed to build cysignals ERROR: Failed to build one or more wheels error: Bad exit status from /var/tmp/rpm-tmp.p72ktJ (%build) The %{pyproject_build_lib} macro is deprecated. It only works with setuptools and is not build-backend-agnostic. The macro is not scheduled for removal, but there is a possibility of incompatibilities with future versions of setuptools. As a replacement for the macro for the setuptools backend on Fedora 37+, you can use $PWD/build/lib for pure Python packages, or $PWD/build/lib.%{python3_platform}-cpython-%{python3_version_nodots} for packages with extension modules. Other build backends and older distributions may need different paths. See https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/HMLOPAU3RZLXD4BOJHTIPKI3I4U6U7OE/ for details. Bad exit status from /var/tmp/rpm-tmp.p72ktJ (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-cysignals.spec