From owner-svn-ports-head@freebsd.org Mon Dec 2 18:00:07 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D541E1B2009; Mon, 2 Dec 2019 18:00:07 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47RXvW5Jmlz48rH; Mon, 2 Dec 2019 18:00:07 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9B05A2B6F; Mon, 2 Dec 2019 18:00:07 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xB2I07rM072317; Mon, 2 Dec 2019 18:00:07 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xB2I07Mm072315; Mon, 2 Dec 2019 18:00:07 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201912021800.xB2I07Mm072315@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Mon, 2 Dec 2019 18:00:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r518859 - head/math/sleef X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/math/sleef X-SVN-Commit-Revision: 518859 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Dec 2019 18:00:07 -0000 Author: pkubaj Date: Mon Dec 2 18:00:07 2019 New Revision: 518859 URL: https://svnweb.freebsd.org/changeset/ports/518859 Log: math/sleef: fix build on powerpc64 elfv2 clang doesn't find vec_nand: In file included from /wrkdirs/usr/ports/math/sleef/work/sleef-3.4.0/src/libm/sleefsimdsp.c:145: /wrkdirs/usr/ports/math/sleef/work/sleef-3.4.0/src/arch/helperpower_128.h:266:54: warning: implicit declaration of function 'vec_nand' is invalid in C99 [-Wimplicit-function-declaration] static INLINE vopmask vnot_vo_vo(vopmask o) { return vec_nand(o, o); } ^ /wrkdirs/usr/ports/math/sleef/work/sleef-3.4.0/src/arch/helperpower_128.h:266:54: error: returning 'int' from a function with incompatible result type 'vopmask' (vector of 4 'unsigned int' values) static INLINE vopmask vnot_vo_vo(vopmask o) { return vec_nand(o, o); } ^~~~~~~~~~~~~~ -mpower8-vector is needed because vec_nand is behind #ifdef __POWER8_VECTOR__ in clang's altivec.h. PR: 242143 Approved by: linimon (mentor), jmd (maintainer) Modified: head/math/sleef/Makefile Modified: head/math/sleef/Makefile ============================================================================== --- head/math/sleef/Makefile Mon Dec 2 17:57:54 2019 (r518858) +++ head/math/sleef/Makefile Mon Dec 2 18:00:07 2019 (r518859) @@ -18,6 +18,8 @@ USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= shibatch +CFLAGS_powerpc64= -mpower8-vector + .include .if ${ARCH} == powerpc64