-DTPM_POSIX -I/usr/include/nss3 -I/usr/include/nspr4 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror -Wreturn-type -Wsign-compare -c tpm_ver.c -fPIC -DPIC -o .libs/libtpms_la-tpm_ver.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -include tpm_library_conf.h -I../include/libtpms -DTPM_V12 -DTPM_PCCLIENT -DTPM_VOLATILE_LOAD -DTPM_ENABLE_ACTIVATE -DTPM_AES -DTPM_LIBTPMS_CALLBACKS -DTPM_NV_DISK -DTPM_POSIX -I/usr/include/nss3 -I/usr/include/nspr4 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror -Wreturn-type -Wsign-compare -c tpm_svnrevision.c -fPIC -DPIC -o .libs/libtpms_la-tpm_svnrevision.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -include tpm_library_conf.h -I../include/libtpms -DTPM_V12 -DTPM_PCCLIENT -DTPM_VOLATILE_LOAD -DTPM_ENABLE_ACTIVATE -DTPM_AES -DTPM_LIBTPMS_CALLBACKS -DTPM_NV_DISK -DTPM_POSIX -I/usr/include/nss3 -I/usr/include/nspr4 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror -Wreturn-type -Wsign-compare -c -o libtpms_la-tpm_crypto_freebl.lo `test -f 'tpm_crypto_freebl.c' || echo './'`tpm_crypto_freebl.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -include tpm_library_conf.h -I../include/libtpms -DTPM_V12 -DTPM_PCCLIENT -DTPM_VOLATILE_LOAD -DTPM_ENABLE_ACTIVATE -DTPM_AES -DTPM_LIBTPMS_CALLBACKS -DTPM_NV_DISK -DTPM_POSIX -I/usr/include/nss3 -I/usr/include/nspr4 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror -Wreturn-type -Wsign-compare -c tpm_crypto_freebl.c -fPIC -DPIC -o .libs/libtpms_la-tpm_crypto_freebl.o BUILDSTDERR: tpm_crypto_freebl.c:1866:2: error: #error "Cannot determine 32 or 64 bit platform" BUILDSTDERR: #error "Cannot determine 32 or 64 bit platform" BUILDSTDERR: ^~~~~ BUILDSTDERR: tpm_crypto_freebl.c:1878:5: error: unknown type name 'SHA_HW_t' BUILDSTDERR: SHA_HW_t H[22]; /* 5 state variables, 16 tmp values, 1 BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: make[2]: *** [Makefile:948: libtpms_la-tpm_crypto_freebl.lo] Error 1 BUILDSTDERR: make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/libtpms-0.5.2/src' BUILDSTDERR: make[1]: *** [Makefile:499: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/libtpms-0.5.2' BUILDSTDERR: make: *** [Makefile:406: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.gRNmzB (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.gRNmzB (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do 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/libtpms.spec