From owner-freebsd-gecko@freebsd.org Mon Dec 25 04:41:17 2017 Return-Path: Delivered-To: freebsd-gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 887CBE9D046 for ; Mon, 25 Dec 2017 04:41:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 6B89475E91 for ; Mon, 25 Dec 2017 04:41:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: by mailman.ysv.freebsd.org (Postfix) id 6A6F3E9D044; Mon, 25 Dec 2017 04:41:17 +0000 (UTC) Delivered-To: gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 688A6E9D043 for ; Mon, 25 Dec 2017 04:41:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-116.reflexion.net [208.70.210.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EC26675E8E for ; Mon, 25 Dec 2017 04:41:16 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 23179 invoked from network); 25 Dec 2017 04:41:09 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 25 Dec 2017 04:41:09 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Sun, 24 Dec 2017 23:41:09 -0500 (EST) Received: (qmail 29562 invoked from network); 25 Dec 2017 04:41:08 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 25 Dec 2017 04:41:08 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 4BD9BEC8929; Sun, 24 Dec 2017 20:41:08 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: security/nss vs. TARGET_ARCH=powerpc : error: comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true Message-Id: Date: Sun, 24 Dec 2017 20:41:07 -0800 Cc: jbeich@FreeBSD.org, gecko@FreeBSD.org To: FreeBSD Ports X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Dec 2017 04:41:17 -0000 [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. =3D=3D=3D Mark Millard markmi at dsl-only.net