From owner-freebsd-ports@freebsd.org Fri Oct 12 12:14:40 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5087A10BA676; Fri, 12 Oct 2018 12:14:40 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 018887FD41; Fri, 12 Oct 2018 12:14:40 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id ECC179AE1; Fri, 12 Oct 2018 12:14:39 +0000 (UTC) From: Jan Beich To: Mark Millard Cc: FreeBSD Ports ML , FreeBSD PowerPC ML Subject: Re: FYI: security/nss (as of -r480180) fails to build on powerpc64: error: incompatible pointer types passing 'int *' to parameter of type 'size_t *' References: <680F1E8C-FF93-447F-AEDC-E01E625A991C@yahoo.com> Date: Fri, 12 Oct 2018 14:14:35 +0200 In-Reply-To: <680F1E8C-FF93-447F-AEDC-E01E625A991C@yahoo.com> (Mark Millard's message of "Wed, 10 Oct 2018 20:08:48 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 12:14:40 -0000 Mark Millard writes: > The following is on a powerpc64 machine (old PowerMac G5 so-called > "Quad Core") running a personal build of head -r339076 that was > built via devel/powerpc64-xtoolchain-gcc and such (no gcc 4.2.1). > The compiler is system-clang (so clang 6 as cc). [I experiment > with more modern compilers and toolchains for some powerpc family > members.] > > -r339076 predates the openssl update in head. > > The port build is via ports-mgmt/poudriere-devel . > > Note: size_t is unsigned long (64 bits) while int is > 32 bits for powerpc64. > > I've no clue if this is supposed to work, be blocked as > broken, or what. (I've been without access to the powerpc > machines for some time and it is even longer since I'd > built updated ports. So this might be a long-standing > issue without my knowing it.) It's a bug as the 4th argument being size_t predates FreeBSD. In FreeBSD base -Werror is default but ports discourage it due to churn. In NSS -Werror was enabled since 3.21 but only for Clang or GCC >= 4.8. For now, the plan is to keep -Werror to avoid more facepalm situations. Anyway, fixed in r481895. Thanks for reporting.