D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/python-opencl-2024.1-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.hHLeoU + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-opencl-2024.1-build + test -d /home/pterjan/rpmbuild/BUILD/python-opencl-2024.1-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/python-opencl-2024.1-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/python-opencl-2024.1-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-opencl-2024.1-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/python-opencl-2024.1-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.qCpzr5 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-opencl-2024.1-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/python-opencl-2024.1-build + rm -rf pyopencl-2024.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/pyopencl-2024.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pyopencl-2024.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0001-disable-executing-git-submodule.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0002-don-t-hack-distutils-with-C-LDFLAGS.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + rm -vrf pyopencl.egg-info removed 'pyopencl.egg-info/SOURCES.txt' removed 'pyopencl.egg-info/PKG-INFO' removed 'pyopencl.egg-info/not-zip-safe' removed 'pyopencl.egg-info/dependency_links.txt' removed 'pyopencl.egg-info/top_level.txt' removed 'pyopencl.egg-info/requires.txt' removed directory 'pyopencl.egg-info' + rm -vf examples/download-examples-from-wiki.py + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.vrOPFm + umask 022 + cd /home/pterjan/rpmbuild/BUILD/python-opencl-2024.1-build + cd pyopencl-2024.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/python3 configure.py --cl-enable-gl + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' running build running build_py creating build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/cltypes.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/version.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/bitonic_sort.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/algorithm.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/scan.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/elementwise.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/reduction.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/clmath.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/_cluda.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/ipython_ext.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/invoker.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/_mymako.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/__init__.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/clrandom.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/bitonic_sort_templates.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/tools.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/array.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/capture_call.py -> build/lib.linux-x86_64-cpython-312/pyopencl copying pyopencl/cache.py -> build/lib.linux-x86_64-cpython-312/pyopencl creating build/lib.linux-x86_64-cpython-312/pyopencl/compyte copying pyopencl/compyte/__init__.py -> build/lib.linux-x86_64-cpython-312/pyopencl/compyte copying pyopencl/compyte/array.py -> build/lib.linux-x86_64-cpython-312/pyopencl/compyte copying pyopencl/compyte/dtypes.py -> build/lib.linux-x86_64-cpython-312/pyopencl/compyte creating build/lib.linux-x86_64-cpython-312/pyopencl/characterize copying pyopencl/characterize/performance.py -> build/lib.linux-x86_64-cpython-312/pyopencl/characterize copying pyopencl/characterize/__init__.py -> build/lib.linux-x86_64-cpython-312/pyopencl/characterize creating build/lib.linux-x86_64-cpython-312/pyopencl/compyte/ndarray copying pyopencl/compyte/ndarray/gen_reduction.py -> build/lib.linux-x86_64-cpython-312/pyopencl/compyte/ndarray copying pyopencl/compyte/ndarray/gen_elemwise.py -> build/lib.linux-x86_64-cpython-312/pyopencl/compyte/ndarray copying pyopencl/compyte/ndarray/setup_opencl.py -> build/lib.linux-x86_64-cpython-312/pyopencl/compyte/ndarray copying pyopencl/compyte/ndarray/test_gpu_ndarray.py -> build/lib.linux-x86_64-cpython-312/pyopencl/compyte/ndarray copying pyopencl/compyte/ndarray/__init__.py -> build/lib.linux-x86_64-cpython-312/pyopencl/compyte/ndarray copying pyopencl/compyte/ndarray/test_gpu_elemwise.py -> build/lib.linux-x86_64-cpython-312/pyopencl/compyte/ndarray running egg_info creating pyopencl.egg-info writing pyopencl.egg-info/PKG-INFO writing dependency_links to pyopencl.egg-info/dependency_links.txt writing requirements to pyopencl.egg-info/requires.txt writing top-level names to pyopencl.egg-info/top_level.txt writing manifest file 'pyopencl.egg-info/SOURCES.txt' reading manifest file 'pyopencl.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'experiments/*.py' warning: no previously-included files matching '*' found under directory '_skbuild' adding license file 'LICENSE' writing manifest file 'pyopencl.egg-info/SOURCES.txt' /usr/lib/python3.12/site-packages/setuptools/command/build_py.py:212: _Warning: Package 'pyopencl.cl' is absent from the `packages` configuration. !! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'pyopencl.cl' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'pyopencl.cl' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'pyopencl.cl' to be distributed and are already explicitly excluding 'pyopencl.cl' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ******************************************************************************** !! check.warn(importable) creating build/lib.linux-x86_64-cpython-312/pyopencl/cl copying pyopencl/cl/pyopencl-airy.cl -> build/lib.linux-x86_64-cpython-312/pyopencl/cl copying pyopencl/cl/pyopencl-bessel-j-complex.cl -> build/lib.linux-x86_64-cpython-312/pyopencl/cl copying pyopencl/cl/pyopencl-bessel-j.cl -> build/lib.linux-x86_64-cpython-312/pyopencl/cl copying pyopencl/cl/pyopencl-bessel-y.cl -> build/lib.linux-x86_64-cpython-312/pyopencl/cl copying pyopencl/cl/pyopencl-complex.h -> build/lib.linux-x86_64-cpython-312/pyopencl/cl copying pyopencl/cl/pyopencl-eval-tbl.cl -> build/lib.linux-x86_64-cpython-312/pyopencl/cl copying pyopencl/cl/pyopencl-hankel-complex.cl -> build/lib.linux-x86_64-cpython-312/pyopencl/cl copying pyopencl/cl/pyopencl-ranluxcl.cl -> build/lib.linux-x86_64-cpython-312/pyopencl/cl creating build/lib.linux-x86_64-cpython-312/pyopencl/cl/pyopencl-random123 copying pyopencl/cl/pyopencl-random123/array.h -> build/lib.linux-x86_64-cpython-312/pyopencl/cl/pyopencl-random123 copying pyopencl/cl/pyopencl-random123/openclfeatures.h -> build/lib.linux-x86_64-cpython-312/pyopencl/cl/pyopencl-random123 copying pyopencl/cl/pyopencl-random123/philox.cl -> build/lib.linux-x86_64-cpython-312/pyopencl/cl/pyopencl-random123 copying pyopencl/cl/pyopencl-random123/threefry.cl -> build/lib.linux-x86_64-cpython-312/pyopencl/cl/pyopencl-random123 running build_ext creating tmp g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fPIC -I/usr/include/python3.12 -c /tmp/tmppykhk9nz.cpp -o tmp/tmppykhk9nz.o -std=gnu++14 g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fPIC -I/usr/include/python3.12 -c /tmp/tmp2fluynpq.cpp -o tmp/tmp2fluynpq.o -fvisibility=hidden building 'pyopencl._cl' extension creating build/temp.linux-x86_64-cpython-312/src g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -DHAVE_GL=1 -Ipybind11/include -I/usr/lib/python3.12/site-packages/pybind11/include -I/usr/lib64/python3.12/site-packages/numpy/core/include -I/usr/include/python3.12 -c -std=gnu++14 src/bitlog.cpp -o build/temp.linux-x86_64-cpython-312/src/bitlog.o -fvisibility=hidden -DVERSION_INFO=\"2024.1\" -fvisibility=hidden g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fPIC -DPYGPU_PACKAGE=pyopencl -DPYGPU_PYOPENCL=1 -DHAVE_GL=1 -Ipybind11/include -I/usr/lib/python3.12/site-packages/pybind11/include -I/usr/lib64/python3.12/site-packages/numpy/core/include -I/usr/include/python3.12 -c -std=gnu++14 src/wrap_cl.cpp -o build/temp.linux-x86_64-cpython-312/src/wrap_cl.o -fvisibility=hidden -DVERSION_INFO=\"2024.1\" -fvisibility=hidden In file included from src/wrap_cl.cpp:29: src/wrap_cl.hpp:101:10: fatal error: numpy/arrayobject.h: No such file or directory 101 | #include | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/g++' failed with exit code 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.vrOPFm (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.vrOPFm (%build) I: [iurt_root_command] ERROR: chroot