Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2023 13:33:09 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 87c041d4b3f6 - main - math/py-pplpy: work-around for clang 16
Message-ID:  <202307231333.36NDX91R077545@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=87c041d4b3f6cd5457bbd02df55b7ab90cb33dbe

commit 87c041d4b3f6cd5457bbd02df55b7ab90cb33dbe
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-07-23 13:29:49 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-07-23 13:29:49 +0000

    math/py-pplpy: work-around for clang 16
    
    Like devel/ppl, py-pplpy does not build with clang 16:
    
    In file included from ppl/linear_algebra.cpp:799:
    /usr/local/include/ppl.hh:101797:33: error: no member named 'mem_fun_ref' in namespace 'std'; did you mean 'widen_fun_ref'?
      pairwise_apply_assign(y, std::mem_fun_ref(&D::meet_assign));
                               ~~~~~^
    /usr/local/include/ppl.hh:96540:1: note: 'widen_fun_ref' declared here
    widen_fun_ref(void (PSET::* wm)(const PSET&, unsigned*)) {
    ^
    /usr/local/include/ppl.hh:103755:57: error: no member named 'mem_fun_ref' in namespace 'std'; did you mean 'widen_fun_ref'?
                              Det_PSET::lift_op_assign(std::mem_fun_ref(&PSET::intersection_assign)));
                                                       ~~~~~^
    /usr/local/include/ppl.hh:96540:1: note: 'widen_fun_ref' declared here
    widen_fun_ref(void (PSET::* wm)(const PSET&, unsigned*)) {
    ^
    /usr/local/include/ppl.hh:103763:57: error: no member named 'mem_fun_ref' in namespace 'std'; did you mean 'widen_fun_ref'?
                              Det_PSET::lift_op_assign(std::mem_fun_ref(&PSET::time_elapse_assign)));
                                                       ~~~~~^
    /usr/local/include/ppl.hh:96540:1: note: 'widen_fun_ref' declared here
    widen_fun_ref(void (PSET::* wm)(const PSET&, unsigned*)) {
    ^
    3 errors generated.
    
    Reported by:    pkg-fallout
---
 math/py-pplpy/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/math/py-pplpy/Makefile b/math/py-pplpy/Makefile
index b3e3178f4d47..94dd80c42bdb 100644
--- a/math/py-pplpy/Makefile
+++ b/math/py-pplpy/Makefile
@@ -27,6 +27,8 @@ TEST_DEPENDS=	py.test:devel/py-pytest@${PY_FLAVOR}
 USES=		compiler:c++11-lang localbase python
 USE_PYTHON=	cython distutils
 
+CFLAGS+=	-std=c++14
+
 .if !defined(WITH_DEBUG)
 LDFLAGS+=	-s
 .endif



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