switch_ppc_unix.h -> build/lib.linux-riscv64-cpython-312/greenlet/platform copying src/greenlet/platform/switch_riscv_unix.h -> build/lib.linux-riscv64-cpython-312/greenlet/platform copying src/greenlet/platform/switch_s390_unix.h -> build/lib.linux-riscv64-cpython-312/greenlet/platform copying src/greenlet/platform/switch_sparc_sun_gcc.h -> build/lib.linux-riscv64-cpython-312/greenlet/platform copying src/greenlet/platform/switch_x32_unix.h -> build/lib.linux-riscv64-cpython-312/greenlet/platform copying src/greenlet/platform/switch_x64_masm.asm -> build/lib.linux-riscv64-cpython-312/greenlet/platform copying src/greenlet/platform/switch_x64_masm.obj -> build/lib.linux-riscv64-cpython-312/greenlet/platform copying src/greenlet/platform/switch_x64_msvc.h -> build/lib.linux-riscv64-cpython-312/greenlet/platform copying src/greenlet/platform/switch_x86_msvc.h -> build/lib.linux-riscv64-cpython-312/greenlet/platform copying src/greenlet/platform/switch_x86_unix.h -> build/lib.linux-riscv64-cpython-312/greenlet/platform running build_ext building 'greenlet._greenlet' extension creating build/temp.linux-riscv64-cpython-312 creating build/temp.linux-riscv64-cpython-312/src creating build/temp.linux-riscv64-cpython-312/src/greenlet gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -fexceptions -fexceptions -fexceptions -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 -fPIC -I/usr/include/python3.12 -c src/greenlet/greenlet.cpp -o build/temp.linux-riscv64-cpython-312/src/greenlet/greenlet.o -Os cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ In file included from src/greenlet/slp_platformselect.h:60, from src/greenlet/greenlet_slp_switch.hpp:64, from src/greenlet/greenlet.cpp:24: src/greenlet/platform/switch_riscv_unix.h: In function ‘slp_switch’: src/greenlet/platform/switch_riscv_unix.h:30:1: error: s0 cannot be used in ‘asm’ here 30 | } | ^ src/greenlet/platform/switch_riscv_unix.h:30:1: error: s0 cannot be used in ‘asm’ here error: command '/usr/bin/gcc' failed with exit code 1 error: subprocess-exited-with-error × Building wheel for greenlet (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/greenlet-3.0.0/.pyproject-builddir/tmp4zkpa8yx cwd: /builddir/build/BUILD/greenlet-3.0.0 Building wheel for greenlet (pyproject.toml): finished with status 'error' ERROR: Failed building wheel for greenlet Failed to build greenlet ERROR: Failed to build one or more wheels error: Bad exit status from /var/tmp/rpm-tmp.tkNDvC (%build) Bad exit status from /var/tmp/rpm-tmp.tkNDvC (%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 -ba --noprep --target riscv64 --nodeps /builddir/build/SPECS/python-greenlet.spec