Um you didn't mention what version of the compiler and where you downloaded it 
from.  The last couple of versions available through the tools links have 
supported OpenMP.  I have compiled that package,  but I am using R 3.5.3 and 
clang 6,  I believe R 3.6.0 uses clang 7, but that also supports openmp

HTH,

-Roy

> On May 6, 2019, at 4:16 PM, Spencer Graves <spencer.gra...@prodsyse.com> 
> wrote:
> 
> Hello, All:
> 
> 
>       I'm getting "clang: error: unsupported option '-fopenmp'" when trying 
> to build "https://github.com/helske/bssm"; under macOS 10.14.14 with R 3.6.0;  
> see below.
> 
> 
>       What do you suggest?
> 
> 
>       Thanks,
>       Spencer Graves
> 
> 
> p.s.  Helske told me he thought my compiler was out of date. However, I've so 
> far been unable to find instructions that are sufficiently current to 
> convince me I might not do more harm than good following them.
> 
> 
>> R CMD build bssm
> * checking for file ‘bssm/DESCRIPTION’ ... OK
> * preparing ‘bssm’:
> * checking DESCRIPTION meta-information ... OK
> * cleaning src
> * installing the package to build vignettes
>       -----------------------------------
> * installing *source* package ‘bssm’ ...
> ** using staged installation
> ** libs
> clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" 
> -DNDEBUG 
> -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include" 
> -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include"
>  
> -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include"
>  
> -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/ramcmc/include"
>  
> -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/sitmo/include"
>  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk 
> -I/usr/local/include -fopenmp -fPIC  -Wall -g -O2  -c R_approx.cpp -o 
> R_approx.o
> clang: error: unsupported option '-fopenmp'
> make: *** [R_approx.o] Error 1
> ERROR: compilation failed for package ‘bssm’
> * removing 
> ‘/private/var/folders/mh/mrm_14nx19g13lsnj9zmvwjr0000gn/T/RtmppA2gBg/Rinst24427c5cbfeb/bssm’
>       -----------------------------------
> ERROR: package installation failed
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

**********************
"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.mendelss...@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.

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to