Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Dec 2019 18:00:07 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r518859 - head/math/sleef
Message-ID:  <201912021800.xB2I07Mm072315@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk>
 
 .if ${ARCH} == powerpc64



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912021800.xB2I07Mm072315>