ORTIFY_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 -Wall -Wextra -fvisibility=hidden -L/usr/lib -lcrypto -lcppunit -no-install -pthread -static -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 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o p11test p11test.o SymmetricAlgorithmTests.o DigestTests.o InitTests.o InfoTests.o RandomTests.o SessionTests.o TokenTests.o UserTests.o ObjectTests.o DeriveTests.o SignVerifyTests.o AsymEncryptDecryptTests.o AsymWrapUnwrapTests.o TestsBase.o TestsNoPINInitBase.o ForkTests.o ../common/log.o ../common/osmutex.o ../libsofthsm2.la libtool: link: g++ -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 -Wall -Wextra -fvisibility=hidden -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -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 -o p11test p11test.o SymmetricAlgorithmTests.o DigestTests.o InitTests.o InfoTests.o RandomTests.o SessionTests.o TokenTests.o UserTests.o ObjectTests.o DeriveTests.o SignVerifyTests.o AsymEncryptDecryptTests.o AsymWrapUnwrapTests.o TestsBase.o TestsNoPINInitBase.o ForkTests.o ../common/log.o ../common/osmutex.o -L/usr/lib -lcppunit ../.libs/libsofthsm2.a -lcrypto -lsqlite3 -pthread make[4]: Leaving directory '/builddir/build/BUILD/softhsm-2.6.1/src/lib/test' make check-TESTS make[4]: Entering directory '/builddir/build/BUILD/softhsm-2.6.1/src/lib/test' make[5]: Entering directory '/builddir/build/BUILD/softhsm-2.6.1/src/lib/test' FAIL: p11test ============================================================================ Testsuite summary for SoftHSM 2.6.1 ============================================================================ # TOTAL: 1 # PASS: 0 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 ============================================================================ See src/lib/test/test-suite.log ============================================================================ make[5]: Leaving directory '/builddir/build/BUILD/softhsm-2.6.1/src/lib/test' make[5]: *** [Makefile:809: test-suite.log] Error 1 make[4]: *** [Makefile:917: check-TESTS] Error 2 make[4]: Leaving directory '/builddir/build/BUILD/softhsm-2.6.1/src/lib/test' make[3]: Leaving directory '/builddir/build/BUILD/softhsm-2.6.1/src/lib/test' make[3]: *** [Makefile:991: check-am] Error 2 make[2]: *** [Makefile:640: check-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/softhsm-2.6.1/src/lib' make[1]: *** [Makefile:402: check-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/softhsm-2.6.1/src' make: *** [Makefile:563: check-recursive] Error 1 RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.iyd4Qr (%check) %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.iyd4Qr (%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/softhsm.spec