Page MenuHomeFreeBSD

math/R: Fix build with clang/openmp 13
ClosedPublic

Authored by jrm on Oct 3 2021, 2:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 21 2024, 11:56 AM
Unknown Object (File)
Jan 10 2024, 8:56 AM
Unknown Object (File)
Jan 2 2024, 1:59 PM
Unknown Object (File)
Dec 28 2023, 3:03 PM
Unknown Object (File)
Dec 23 2023, 1:15 AM
Unknown Object (File)
Dec 23 2023, 1:15 AM
Unknown Object (File)
Dec 23 2023, 1:15 AM
Unknown Object (File)
Dec 23 2023, 1:15 AM
Subscribers

Details

Summary

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 include omp.h after including 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 switch to this newer version.

PR: 258887
Reported by: dim

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jrm requested review of this revision.Oct 3 2021, 2:27 PM
  • Fix plist issue when the NLS knob is on
  • Bump PORTREVISION

Builds OK for me, also installs, and seems to run (at least very rudimentarily :) ):

% R

R version 4.1.1 (2021-08-10) -- "Kick Things"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: amd64-portbld-freebsd14.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> print("Hello World")
[1] "Hello World"
> sin(pi)
[1] 1.224647e-16
> quit()
Save workspace image? [y/n/c]: n
This revision is now accepted and ready to land.Oct 3 2021, 7:00 PM
This revision was automatically updated to reflect the committed changes.