X=g++ + export CXX + cd python-rtmidi-1.3.1 + CFLAGS='-O2 -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 ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' /builddir/build/BUILD/python-rtmidi-1.3.1/setup.py:25: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. JACK1_MIN_VERSION = StrictVersion('0.125.0') /builddir/build/BUILD/python-rtmidi-1.3.1/setup.py:26: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. JACK2_MIN_VERSION = StrictVersion('1.9.11') /builddir/build/BUILD/python-rtmidi-1.3.1/setup.py:43: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. jv = StrictVersion(res.decode()) performance hint: src/_rtmidi.pyx:211:5: Exception check on '_cb_func' will always require the GIL to be acquired. Possible solutions: 1. Declare the function as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions. 2. Use an 'int' return type on the function to allow an error code to be returned. performance hint: src/_rtmidi.pyx:219:5: Exception check on '_cb_error_func' will always require the GIL to be acquired. Possible solutions: 1. Declare the function as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions. 2. Use an 'int' return type on the function to allow an error code to be returned. Error compiling Cython file: ------------------------------------------------------------ ... """ if self._callback: self.cancel_callback() self._callback = (func, data) self.thisptr.setCallback(&_cb_func, self._callback) ^ ------------------------------------------------------------ src/_rtmidi.pyx:907:33: Cannot assign type 'void (*)(double, vector[unsigned char] *, void *) except * nogil' to 'RtMidiCallback'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (double, vector[unsigned char] *, void *) except * nogil'. Detected JACK version 1.9.22. JACK version is recent enough to have 'jack_port_rename' function. Compiling src/_rtmidi.pyx because it changed. [1/1] Cythonizing src/_rtmidi.pyx Traceback (most recent call last): File "/builddir/build/BUILD/python-rtmidi-1.3.1/setup.py", line 191, in ext_modules=cythonize(extensions), ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize cythonize_one(*args) File "/usr/lib64/python3.12/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one raise CompileError(None, pyx_file) Cython.Compiler.Errors.CompileError: src/_rtmidi.pyx error: Bad exit status from /var/tmp/rpm-tmp.LxpDNP (%build) Bad exit status from /var/tmp/rpm-tmp.LxpDNP (%build) 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-rtmidi.spec