[Bug 242143] math/sleef: fix build on powerpc64 elfv2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 21 15:47:00 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242143

            Bug ID: 242143
           Summary: math/sleef: fix build on powerpc64 elfv2
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jmd at freebsd.org
          Reporter: pkubaj at FreeBSD.org
             Flags: maintainer-feedback?(jmd at freebsd.org)
          Assignee: jmd at freebsd.org

Created attachment 209321
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=209321&action=edit
patch

This port doesn't build on powerpc64 elfv2, because 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list