Please either remove the -Werror flag (which is supposed to be disabled for ports anyway) or fix the following "error" that arrived with the recent update of tpm: Thanks! tpm_nvrelease.o -MD -MP -MF .deps/tpm_nvrelease.Tpo -c -o tpm_nvrelease.o tpm_nvrelease.c tpm_nvcommon.c: In function 'parseStringWithValues': tpm_nvcommon.c:143:32: error: comparison of constant '124' with boolean expression is always false [-Werror=bool-compare] if (!aArg[offset+numbytes] == '|' && ^ tpm_nvcommon.c:143:32: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] tpm_nvcommon.c:167:31: error: comparison of constant '124' with boolean expression is always false [-Werror=bool-compare] if (!aArg[offset+numbytes] == '|' && ^ tpm_nvcommon.c:167:31: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] mv -f .deps/tpm_nvdefine.Tpo .deps/tpm_nvdefine.Po cc -DHAVE_CONFIG_H -I. -I../.. -I../../include -D_LINUX -DTSS_LIB_IS_12 -DLIBICONV_PLUG -I/usr/local/include -pipe -Wno-unused-but-set-variable -DLIBICONV_PLUG -O2 -fno-strict-aliasing -m64 -Wall -Werror -Wreturn-type -Wsign-compare -MT tpm_nvwrite.o -MD -MP -MF .deps/tpm_nvwrite.Tpo -c -o tpm_nvwrite.o tpm_nvwrite.c cc1: all warnings being treated as errors mv -f .deps/tpm_nvinfo.Tpo .deps/tpm_nvinfo.Po Makefile:604: recipe for target 'tpm_nvcommon.o' failed gmake[5]: *** [tpm_nvcommon.o] Error 1 gmake[5]: *** Waiting for unfinished jobs....
A commit references this bug: Author: hrs Date: Mon May 23 17:27:41 UTC 2016 New revision: 415731 URL: https://svnweb.freebsd.org/changeset/ports/415731 Log: Fix a build error when using gcc5. PR: 209714 Changes: head/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c
Thanks for your report. A fix has been committed.
I appreciate it, thanks!