Skip to content

Compilation error on install for Mac #16

@geotheory

Description

@geotheory

Are you aware of this compile error for Mac users?

> devtools::install_github('dselivanov/LSHR', upgrade_dependencies = FALSE)
Downloading GitHub repo dselivanov/LSHR@master
from URL https://api.github.com/repos/dselivanov/LSHR/zipball/master
Installing LSHR
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore  \
  --quiet CMD INSTALL  \
  '/private/var/folders/_3/b8whcf8d1bb8w_lr2rrscb5m0000gp/T/RtmpFvV8j6/devtools80bc1545917a/dselivanov-LSHR-3231ad6'  \
  --library='/Library/Frameworks/R.framework/Versions/3.5/Resources/library' --install-tests 

* installing *source* package ‘LSHR’ ...
** libs
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include   -fPIC  -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include   -fPIC  -Wall -g -O2 -c hash.cpp -o hash.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include   -fPIC  -Wall -g -O2 -c lsh.cpp -o lsh.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include   -fPIC  -Wall -g -O2 -c random_projection.cpp -o random_projection.o
clang++ -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib -o LSHR.so RcppExports.o hash.o lsh.o random_projection.o -fopenmp -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
clang: error: unsupported option '-fopenmp'
make: *** [LSHR.so] Error 1
ERROR: compilation failed for package ‘LSHR’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/LSHR’
Installation failed: Command failed (1)

I'm running R 3.5.3 on macOS Movave 10.14.3. Can provide more env info if it helps. I ran brew upgrade llvm to v8.0.0 but no effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions