Date: Sat, 28 Dec 2019 13:44:18 -0800 From: Mark Millard <marklmi@yahoo.com> To: "jbeich@freebsd.org" <jbeich@FreeBSD.org>, FreeBSD ports <freebsd-ports@freebsd.org> Subject: security/nss failed to build on/for 32-bit powerpc for a -Werror,-Wtautological-constant-out-of-range-compare Message-ID: <27530E44-2C93-45FD-AEDA-050206F6C401@yahoo.com> References: <27530E44-2C93-45FD-AEDA-050206F6C401.ref@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 =3D>> Cleaning up wrkdir =3D=3D=3D> 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. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27530E44-2C93-45FD-AEDA-050206F6C401>