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 failing on R 3.6.3 and Mac OS Catalina ? #11

Open
egarpor opened this issue Apr 11, 2020 · 0 comments
Open

Installation failing on R 3.6.3 and Mac OS Catalina ? #11

egarpor opened this issue Apr 11, 2020 · 0 comments

Comments

@egarpor
Copy link

egarpor commented Apr 11, 2020

After installing R 3.6.3 and r-macos-rtools, then successfully installing devtools::install_github("lbartnik/subprocess") (since such package is no longer on CRAN and is a dependency), I got the following error when trying to install prodyna:

> devtools::install_github("lettis/prodyna")
Downloading GitHub repo lettis/prodyna@master
✓  checking for file ‘/private/var/folders/mb/8h7xjbpj6dj81r10lzk8gxxm0000gn/T/RtmpQsmSv0/remotes4d2f458ae093/lettis-prodyna-e7411aa/DESCRIPTION’ ...
─  preparing ‘prodyna’:
✓  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
─  building ‘prodyna_0.1.0.tar.gz’
   
* installing *source* package ‘prodyna’ ...
** using staged installation
** libs
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -fopenmp -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fopenmp `Rscript -e 'Rcpp:::CxxFlags()'` -fPIC  -Wall -g -O2  -c RcppExports.cpp -o RcppExports.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -fopenmp -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fopenmp `Rscript -e 'Rcpp:::CxxFlags()'` -fPIC  -Wall -g -O2  -c circacf.cpp -o circacf.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -fopenmp -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fopenmp `Rscript -e 'Rcpp:::CxxFlags()'` -fPIC  -Wall -g -O2  -c fastacf.cpp -o fastacf.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -fopenmp -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fopenmp `Rscript -e 'Rcpp:::CxxFlags()'` -fPIC  -Wall -g -O2  -c rama2rgb.cpp -o rama2rgb.o
rama2rgb.cpp:34:21: error: constexpr variable 'scale' must be initialized by a constant expression
    constexpr float scale = std::sqrt(2) * 180.0;
                    ^       ~~~~~~~~~~~~~~~~~~~~
rama2rgb.cpp:34:29: note: non-constexpr function 'sqrt<int>' cannot be used in a constant expression
    constexpr float scale = std::sqrt(2) * 180.0;
                            ^
/usr/local/clang7/include/c++/v1/math.h:1038:1: note: declared here
sqrt(_A1 __lcpp_x) _NOEXCEPT {return ::sqrt((double)__lcpp_x);}
^
1 error generated.
make: *** [rama2rgb.o] Error 1
ERROR: compilation failed for package ‘prodyna’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/prodyna’
Error: Failed to install 'prodyna' from GitHub:
  (converted from warning) installation of package ‘/var/folders/mb/8h7xjbpj6dj81r10lzk8gxxm0000gn/T//RtmpQsmSv0/file4d2f209df690/prodyna_0.1.0.tar.gz’ had non-zero exit status

The version details:

> version
               _                           
platform       x86_64-apple-darwin15.6.0   
arch           x86_64                      
os             darwin15.6.0                
system         x86_64, darwin15.6.0        
status                                     
major          3                           
minor          6.3                         
year           2020                        
month          02                          
day            29                          
svn rev        77875                       
language       R                           
version.string R version 3.6.3 (2020-02-29)
nickname       Holding the Windsock        
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

1 participant