security/nss vs. TARGET_ARCH=powerpc : error: comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true

Mark Millard markmi at dsl-only.net
Mon Dec 25 05:07:57 UTC 2017


[I experiment with using clang as the system
compiler on/for powerpc (and powerpc64).]

Just an FYI. . .

When I attempted to build updated ( -r457194 ) ports
in poudriere in my clang-based (32-bit) powerpc
environment, security/nss failed with:

pqg.c:345:16: error: 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.

( security/nss is an indirect build item,
not something I listed to build directly.)

This was under head -r326075 where world was
cross built with system clang. (kernel fails
to link various things when system clang is
used so was built via gcc 4.2.1 .)

I do not know if other 32 bit contexts have
similar issues.

===
Mark Millard
markmi at dsl-only.net



More information about the freebsd-ports mailing list