git: 87c041d4b3f6 - main - math/py-pplpy: work-around for clang 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Jul 2023 13:33:09 UTC
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