Summary: | math/R: fails to build with clang/openmp 13 due to old mgcv | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Dimitry Andric <dim> |
Component: | Individual Port(s) | Assignee: | Joseph Mingrone <jrm> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | rhurlin |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(jrm) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
Bug Depends on: | |||
Bug Blocks: | 258209 |
Description
Dimitry Andric
2021-10-03 11:27:21 UTC
Could you test https://reviews.freebsd.org/D32280 ? (In reply to Joseph Mingrone from comment #1) As noted in the review, it builds with clang 13, installs, and seems to run fine for me. Thanks for the quick fix! A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=16c89d12ec5c03f824e4925d18b8849c4ab1e86b commit 16c89d12ec5c03f824e4925d18b8849c4ab1e86b Author: Joseph Mingrone <jrm@FreeBSD.org> AuthorDate: 2021-10-03 14:20:38 +0000 Commit: Joseph Mingrone <jrm@FreeBSD.org> CommitDate: 2021-10-03 20:28:52 +0000 math/R: Fix build with clang/openmp 13 The mgcv package is one of the recommended packages to be installed with R. A problem with mgcv and clang/openmp 13 is that mgcv versions prior to 1.8-37 place 'include <omp.h>' after 'include <R.h>'. This causes a conflict between '#define match' and an openmp pragma line, which uses match(). This problem was fixed in mgcv 1.8-37, so replace mgcv 1.8-36 with this newer version. While here, incorporate formatting changes suggested by portclippy and portfmt. PR: 258887 Approved by: dim Differential Revision: https://reviews.freebsd.org/D32280 math/R/Makefile | 18 ++++++++++++------ math/R/distinfo | 4 +++- math/R/pkg-plist | 2 -- 3 files changed, 15 insertions(+), 9 deletions(-) Thanks for confirming. |