-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/hidapi-0.12.0.post2/.package_note-python-hidapi-0.12.0.post2-3.fc37.riscv64.ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' -f /usr/lib/rpm/generate-rpm-note.sh ']' + /usr/lib/rpm/generate-rpm-note.sh python-hidapi 0.12.0.post2-3.fc37 riscv64 + cd hidapi-0.12.0.post2 + 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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/hidapi-0.12.0.post2/.package_note-python-hidapi-0.12.0.post2-3.fc37.riscv64.ld' + PATH=/builddir/build/BUILDROOT/python-hidapi-0.12.0.post2-3.fc37.riscv64/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-hidapi-0.12.0.post2-3.fc37.riscv64/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/python-hidapi-0.12.0.post2-3.fc37.riscv64/usr/lib/python3.11/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/pytest tests.py ============================= test session starts ============================== platform linux -- Python 3.11.0rc2, pytest-7.1.3, pluggy-1.0.0 rootdir: /builddir/build/BUILD/hidapi-0.12.0.post2 collected 0 items / 1 error ==================================== ERRORS ==================================== __________________________ ERROR collecting tests.py ___________________________ ImportError while importing test module '/builddir/build/BUILD/hidapi-0.12.0.post2/tests.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib64/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests.py:3: in import hid E ImportError: /builddir/build/BUILDROOT/python-hidapi-0.12.0.post2-3.fc37.riscv64/usr/lib64/python3.11/site-packages/hid.cpython-311-riscv64-linux-gnu.so: undefined symbol: hid_get_input_report =========================== short test summary info ============================ ERROR tests.py !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! =============================== 1 error in 0.72s =============================== error: Bad exit status from /var/tmp/rpm-tmp.m9aoGh (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.m9aoGh (%check) 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-hidapi.spec