[R-pkg-devel] Compiling packages from source on Mac OS X that require "-f openmp" - A solution

Roy Mendelssohn - NOAA Federal roy.mendelssohn at noaa.gov
Sun Nov 12 02:41:07 CET 2017


Hi All:

I wasn't quite certain the appropriate list for this,  but hopefully this will be found as needed. I know I have seen for several packages where building from source has failed on the Mac because of an error from using "-f openmp" in the compile options,  because the clang on the Mac didn't have openmp.

Now there is an R compatible version of clang with  openmp,  see:

http://thecoatlessprofessor.com/programming/openmp-in-r-on-os-x/#after-3-4-0

I just ran into this in trying to compile the latest version of the package "bssm".  Installing that version of clang solved the compilation errors.

-Roy

**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



More information about the R-package-devel mailing list