Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2019 15:46:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 242143] math/sleef: fix build on powerpc64 elfv2
Message-ID:  <bug-242143-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242143

            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@freebsd.org
          Reporter: pkubaj@FreeBSD.org
             Flags: maintainer-feedback?(jmd@freebsd.org)
          Assignee: jmd@freebsd.org

Created attachment 209321
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D209321&action=
=3Dedit
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:2=
66: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:2=
66:54:
error: returning 'int' from a function with incompatible result type 'vopma=
sk'
(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.

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



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