[R-pkg-devel] clang: error: unsupported option '-fopenmp'

Spencer Graves @pencer@gr@ve@ @end|ng |rom e||ect|vede|en@e@org
Fri May 3 16:18:14 CEST 2019

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?

       Spencer Graves

p.s.  I assume I have to install compiler(s).  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 
-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk 
-I/usr/local/include -fopenmp -fPIC  -Wall -g -O2  -c R_approx.cpp -o 
clang: error: unsupported option '-fopenmp'
make: *** [R_approx.o] Error 1
ERROR: compilation failed for package ‘bssm’
* removing 
ERROR: package installation failed

More information about the R-package-devel mailing list