Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error #3

Open
nroak opened this issue Apr 17, 2020 · 1 comment
Open

Installation error #3

nroak opened this issue Apr 17, 2020 · 1 comment

Comments

@nroak
Copy link

nroak commented Apr 17, 2020

When I try to install the package from R, I get the following error:

devtools::install_github('tengfei-emory/scBatch')
Downloading GitHub repo tengfei-emory/scBatch@master
✓  checking for file ‘/private/var/folders/xy/0mtz2jx51cj6n6z7b0c01b01qr2lbw/T/Rtmpnvjh6U/remotes14cb01d143898/tengfei-emory-scBatch-97fca94/DESCRIPTION’ ...
─  preparing ‘scBatch’:
✓  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  looking to see if a ‘data/datalist’ file should be added
─  building ‘scBatch_0.1.0.tar.gz’ (392ms)
   Warning: invalid uid value replaced by that for user 'nobody'
   Warning: invalid gid value replaced by that for user 'nobody'
   
* installing *source* package ‘scBatch’ ...
** 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/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fopenmp  -fPIC  -Wall -g -O2  -c RcppExports.cpp -o RcppExports.o
clang: error: unsupported option '-fopenmp'
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘scBatch’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/scBatch’
Error: Failed to install 'scBatch' from GitHub:
  (converted from warning) installation of package ‘/var/folders/xy/0mtz2jx51cj6n6z7b0c01b01qr2lbw/T//Rtmpnvjh6U/file14cb01a8f9212/scBatch_0.1.0.tar.gz’ had non-zero exit status

I installed llvm (which includes clang) on my local computer using bash as well as using conda but that doesn't seem to solve the problem.

@tengfei-emory
Copy link
Owner

Thank you for letting me know. Maybe the following post can provide some suggestion https://daijiang.name/en/2017/06/21/fopenmp-option-of-clang-error/.

I built the package under windows environment and I did not encounter issues on installation on PCs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants