security/nss failed to build on/for 32-bit powerpc for a -Werror,-Wtautological-constant-out-of-range-compare

Mark Millard marklmi at yahoo.com
Sat Dec 28 21:44:29 UTC 2019


Context: ports at -r520539. Clang-based FreeBSD.

pqg.c:345:16: error: result of comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
    if (addend < MP_DIGIT_MAX) {
        ~~~~~~ ^ ~~~~~~~~~~~~
1 error generated.
gmake[4]: *** [../../coreconf/rules.mk:393: FreeBSD13.0_OPT.OBJ/FreeBSD_SINGLE_SHLIB/pqg.o] Error 1
gmake[4]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.48/nss/lib/freebl'
gmake[3]: *** [Makefile:654: libs] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.48/nss/lib/freebl'
gmake[2]: *** [../coreconf/rules.mk:101: libs] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.48/nss/lib'
gmake[1]: *** [coreconf/rules.mk:101: libs] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/security/nss/work/nss-3.48/nss'
*** Error code 1

Stop.
make: stopped in /usr/ports/security/nss
=>> Cleaning up wrkdir
===>  Cleaning for nss-3.48
build of security/nss | nss-3.48 ended at Sat Dec 28 11:00:18 PST 2019


In essence: unsigned long has only 32 bits
and so the constant is out of range.

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-ports mailing list