Error when compiling and installing the libraries from INSTALL.md
Closed this issue · 0 comments
Brand-IFX commented
As you can see in the screenshot and text, the following errors occur when compiling and installing the libraries from INSTALL.md.
failure as text:
generic@producer:~/tpm2-tss $ make -j$(nproc)
make: Warning: File 'tss2-dlopen/.deps/test_unit_dlopen_tss2_rc-tss2-dlopen-rc.Po' has modification time 22 s in the future
make all-am
make[1]: Entering directory '/home/generic/tpm2-tss'
make[1]: Warning: File 'tss2-dlopen/.deps/test_unit_dlopen_tss2_rc-tss2-dlopen-rc.Po' has modification time 22 s in the future
CC src/tss2-tcti/tcti-mssim.lo
CC src/tss2-tcti/tcti-cmd.lo
CC src/tss2-tcti/tcti-spi-helper.lo
CC src/tss2-tcti/tcti-spi-ltt2go.lo
src/tss2-tcti/tcti-mssim.c: In function ‘tcti_mssim_receive’:
src/tss2-tcti/tcti-mssim.c:408:12: error: comparison of integer expressions of different signedness: ‘TSS2_RC’ {aka ‘unsigned int’} and ‘int’ [-Werror=sign-compare]
408 | if (rc < (ssize_t)tcti_common->header.size) {
| ^
cc1: all warnings being treated as errors
make[1]: *** [Makefile:18776: src/tss2-tcti/tcti-mssim.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/generic/tpm2-tss'
make: *** [Makefile:12291: all] Error 2
generic@producer:~/tpm2-tss $ sudo make install
make: Warning: File 'tss2-dlopen/.deps/test_unit_dlopen_tss2_rc-tss2-dlopen-rc.P
CC src/tss2-tcti/tcti-mssim.lo
src/tss2-tcti/tcti-mssim.c: In function ‘tcti_mssim_receive’:
src/tss2-tcti/tcti-mssim.c:408:12: error: comparison of integer expressions of d
408 | if (rc < (ssize_t)tcti_common->header.size) {
| ^
cc1: all warnings being treated as errors
make: *** [Makefile:18776: src/tss2-tcti/tcti-mssim.lo] Error 1
generic@producer:~/tpm2-tss $