Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/python-hidapi.spec'], chrootPath='/var/lib/mock/dist-an23-build-198225-60950/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=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/python-hidapi.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1673222400 Wrote: /builddir/build/SRPMS/python-hidapi-0.13.1-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target x86_64 --nodeps /builddir/build/SPECS/python-hidapi.spec'], chrootPath='/var/lib/mock/dist-an23-build-198225-60950/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=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target x86_64 --nodeps /builddir/build/SPECS/python-hidapi.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1673222400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.UsnDBg + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf hidapi-0.13.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/hidapi-0.13.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd hidapi-0.13.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.wxxkJc + umask 022 + cd /builddir/build/BUILD + cd hidapi-0.13.1 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/anolis/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 60.9.3) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.37.1) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.37.1) Handling Cython from get_requires_for_build_wheel Requirement satisfied: Cython (installed: Cython 0.29.26) warning: no files found matching 'hidapi/linux/*.h' HOOK STDOUT: running dist_info HOOK STDOUT: writing hidapi.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to hidapi.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to hidapi.egg-info/requires.txt HOOK STDOUT: writing top-level names to hidapi.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'hidapi.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE-bsd.txt' HOOK STDOUT: adding license file 'LICENSE-gpl3.txt' HOOK STDOUT: adding license file 'LICENSE-orig.txt' HOOK STDOUT: adding license file 'LICENSE.txt' HOOK STDOUT: writing manifest file 'hidapi.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/hidapi-0.13.1/hidapi.dist-info' HOOK STDOUT: adding license file "LICENSE-bsd.txt" (matched pattern "LICEN[CS]E*") HOOK STDOUT: adding license file "LICENSE-gpl3.txt" (matched pattern "LICEN[CS]E*") HOOK STDOUT: adding license file "LICENSE-orig.txt" (matched pattern "LICEN[CS]E*") HOOK STDOUT: adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*") Handling setuptools (>=19.0) from wheel metadata: Requires-Dist Requirement satisfied: setuptools (>=19.0) (installed: setuptools 60.9.3) + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-hidapi-0.13.1-1.an23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target x86_64 --nodeps /builddir/build/SPECS/python-hidapi.spec'], chrootPath='/var/lib/mock/dist-an23-build-198225-60950/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=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target x86_64 --nodeps /builddir/build/SPECS/python-hidapi.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1673222400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3YixEW + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf hidapi-0.13.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/hidapi-0.13.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd hidapi-0.13.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.4NWM4A + umask 022 + cd /builddir/build/BUILD + cd hidapi-0.13.1 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/anolis/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 60.9.3) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.37.1) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.37.1) Handling Cython from get_requires_for_build_wheel Requirement satisfied: Cython (installed: Cython 0.29.26) warning: no files found matching 'hidapi/linux/*.h' HOOK STDOUT: running dist_info HOOK STDOUT: writing hidapi.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to hidapi.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to hidapi.egg-info/requires.txt HOOK STDOUT: writing top-level names to hidapi.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'hidapi.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE-bsd.txt' HOOK STDOUT: adding license file 'LICENSE-gpl3.txt' HOOK STDOUT: adding license file 'LICENSE-orig.txt' HOOK STDOUT: adding license file 'LICENSE.txt' HOOK STDOUT: writing manifest file 'hidapi.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/hidapi-0.13.1/hidapi.dist-info' HOOK STDOUT: adding license file "LICENSE-bsd.txt" (matched pattern "LICEN[CS]E*") HOOK STDOUT: adding license file "LICENSE-gpl3.txt" (matched pattern "LICEN[CS]E*") HOOK STDOUT: adding license file "LICENSE-orig.txt" (matched pattern "LICEN[CS]E*") HOOK STDOUT: adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*") Handling setuptools (>=19.0) from wheel metadata: Requires-Dist Requirement satisfied: setuptools (>=19.0) (installed: setuptools 60.9.3) + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-hidapi-0.13.1-1.an23.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target x86_64 --nodeps /builddir/build/SPECS/python-hidapi.spec'], chrootPath='/var/lib/mock/dist-an23-build-198225-60950/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=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target x86_64 --nodeps /builddir/build/SPECS/python-hidapi.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1673222400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.8dnhKX + umask 022 + cd /builddir/build/BUILD + cd hidapi-0.13.1 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + echo 'python3dist(wheel)' + rm -rfv hidapi.dist-info/ removed 'hidapi.dist-info/top_level.txt' removed 'hidapi.dist-info/METADATA' removed 'hidapi.dist-info/LICENSE.txt' removed 'hidapi.dist-info/LICENSE-gpl3.txt' removed 'hidapi.dist-info/LICENSE-orig.txt' removed 'hidapi.dist-info/LICENSE-bsd.txt' removed directory 'hidapi.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py310 + HOSTNAME=rpmbuild + /usr/bin/python3 -s /usr/lib/rpm/anolis/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools >= 40.8 (installed: setuptools 60.9.3) Handling wheel from default build backend Requirement satisfied: wheel (installed: wheel 0.37.1) Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.37.1) Handling Cython from get_requires_for_build_wheel Requirement satisfied: Cython (installed: Cython 0.29.26) warning: no files found matching 'hidapi/linux/*.h' HOOK STDOUT: running dist_info HOOK STDOUT: creating hidapi.egg-info HOOK STDOUT: writing hidapi.egg-info/PKG-INFO HOOK STDOUT: writing dependency_links to hidapi.egg-info/dependency_links.txt HOOK STDOUT: writing requirements to hidapi.egg-info/requires.txt HOOK STDOUT: writing top-level names to hidapi.egg-info/top_level.txt HOOK STDOUT: writing manifest file 'hidapi.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest file 'hidapi.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE-bsd.txt' HOOK STDOUT: adding license file 'LICENSE-gpl3.txt' HOOK STDOUT: adding license file 'LICENSE-orig.txt' HOOK STDOUT: adding license file 'LICENSE.txt' HOOK STDOUT: writing manifest file 'hidapi.egg-info/SOURCES.txt' HOOK STDOUT: creating '/builddir/build/BUILD/hidapi-0.13.1/hidapi.dist-info' HOOK STDOUT: adding license file "LICENSE-bsd.txt" (matched pattern "LICEN[CS]E*") HOOK STDOUT: adding license file "LICENSE-gpl3.txt" (matched pattern "LICEN[CS]E*") HOOK STDOUT: adding license file "LICENSE-orig.txt" (matched pattern "LICEN[CS]E*") HOOK STDOUT: adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*") Handling setuptools (>=19.0) from wheel metadata: Requires-Dist Requirement satisfied: setuptools (>=19.0) (installed: setuptools 60.9.3) + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.58JQ68 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd hidapi-0.13.1 + mkdir -p /builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir + /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/hidapi-0.13.1/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . Processing /builddir/build/BUILD/hidapi-0.13.1 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) running dist_info creating /builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir/pip-modern-metadata-kpe7u4xv/hidapi.egg-info writing /builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir/pip-modern-metadata-kpe7u4xv/hidapi.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir/pip-modern-metadata-kpe7u4xv/hidapi.egg-info/dependency_links.txt writing requirements to /builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir/pip-modern-metadata-kpe7u4xv/hidapi.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir/pip-modern-metadata-kpe7u4xv/hidapi.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir/pip-modern-metadata-kpe7u4xv/hidapi.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir/pip-modern-metadata-kpe7u4xv/hidapi.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'hidapi/linux/*.h' adding license file 'LICENSE-bsd.txt' adding license file 'LICENSE-gpl3.txt' adding license file 'LICENSE-orig.txt' adding license file 'LICENSE.txt' writing manifest file '/builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir/pip-modern-metadata-kpe7u4xv/hidapi.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir/pip-modern-metadata-kpe7u4xv/hidapi.dist-info' adding license file "LICENSE-bsd.txt" (matched pattern "LICEN[CS]E*") adding license file "LICENSE-gpl3.txt" (matched pattern "LICEN[CS]E*") adding license file "LICENSE-orig.txt" (matched pattern "LICEN[CS]E*") adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*") Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: hidapi Building wheel for hidapi (pyproject.toml): started Running command Building wheel for hidapi (pyproject.toml) running bdist_wheel running build running build_ext cythoning hid.pyx to hid.c /usr/lib64/python3.10/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /builddir/build/BUILD/hidapi-0.13.1/hid.pyx tree = Parsing.p_module(s, pxd, full_module_name) cythoning hidraw.pyx to hidraw.c /usr/lib64/python3.10/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /builddir/build/BUILD/hidapi-0.13.1/hidraw.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'hid' extension creating build creating build/temp.linux-x86_64-3.10 creating build/temp.linux-x86_64-3.10/hidapi creating build/temp.linux-x86_64-3.10/hidapi/libusb gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/usr/include/python3.10 -c hid.c -o build/temp.linux-x86_64-3.10/hid.o gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/usr/include/python3.10 -c hidapi/libusb/hid.c -o build/temp.linux-x86_64-3.10/hidapi/libusb/hid.o hidapi/libusb/hid.c:23: warning: "_GNU_SOURCE" redefined 23 | #define _GNU_SOURCE /* needed for wcsdup() before glibc 2.10 */ | : note: this is the location of the previous definition hidapi/libusb/hid.c:44:10: fatal error: libusb.h: No such file or directory 44 | #include | ^~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 error: subprocess-exited-with-error × Building wheel for hidapi (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.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /builddir/build/BUILD/hidapi-0.13.1/.pyproject-builddir/tmpr4oysv2k cwd: /builddir/build/BUILD/hidapi-0.13.1 Building wheel for hidapi (pyproject.toml): finished with status 'error' ERROR: Failed building wheel for hidapi Failed to build hidapi ERROR: Failed to build one or more wheels error: Bad exit status from /var/tmp/rpm-tmp.58JQ68 (%build) Bad exit status from /var/tmp/rpm-tmp.58JQ68 (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target x86_64 --nodeps /builddir/build/SPECS/python-hidapi.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, 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 --noclean --target x86_64 --nodeps /builddir/build/SPECS/python-hidapi.spec