DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ gcc -shared -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 -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 -I/usr/include/cfitsio build/temp.linux-riscv64-cpython-312/imagecodecs/_blosc2.o -L/usr/lib64 -lm -lblosc2 -o build/lib.linux-riscv64-cpython-312/imagecodecs/_blosc2.cpython-312-riscv64-linux-gnu.so Compiling imagecodecs/_brotli.pyx because it changed. [1/1] Cythonizing imagecodecs/_brotli.pyx building 'imagecodecs._brotli' extension gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -fexceptions -fexceptions -fexceptions -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 -I/usr/include/cfitsio -fPIC -Iimagecodecs -I/usr/include/python3.12 -I/usr/lib64/python3.12/site-packages/numpy/core/include -c imagecodecs/_brotli.c -o build/temp.linux-riscv64-cpython-312/imagecodecs/_brotli.o In file included from /usr/lib64/python3.12/site-packages/numpy/core/include/numpy/ndarraytypes.h:1929, from /usr/lib64/python3.12/site-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /usr/lib64/python3.12/site-packages/numpy/core/include/numpy/arrayobject.h:5, from imagecodecs/_brotli.c:1215: /usr/lib64/python3.12/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ imagecodecs/_brotli.c:1222:10: fatal error: brotli/types.h: No such file or directory 1222 | #include "brotli/types.h" | ^~~~~~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 error: subprocess-exited-with-error × Building wheel for imagecodecs (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. Building wheel for imagecodecs (pyproject.toml): finished with status 'error' 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/imagecodecs-2022.9.26/.pyproject-builddir/tmp9y8iedfy cwd: /builddir/build/BUILD/imagecodecs-2022.9.26 ERROR: Failed building wheel for imagecodecs Failed to build imagecodecs ERROR: Failed to build one or more wheels error: Bad exit status from /var/tmp/rpm-tmp.MYH1X8 (%build) Bad exit status from /var/tmp/rpm-tmp.MYH1X8 (%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-imagecodecs.spec