Closed jailynai closed 3 years ago
maybe you need to install gfortran first?
If you are under a new version of macOS, maybe you have to reconfigure the R toolchain for compilation. See: https://thecoatlessprofessor.com/programming/cpp/r-compiler-tools-for-rcpp-on-macos/
I can't upload the package
I don't know what happened
the code following behind:
define arma_deprecated attribute((deprecated))
phylopars_rcpp.cpp:128:12: warning: 'inv<arma::Mat >' is deprecated [-Wdeprecated-declarations]
Minv = inv(M,"std"); >' has been explicitly marked deprecated here
arma_deprecated
^
/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include/armadillo_bits/compiler_setup.hpp:303:44: note: expanded from macro 'arma_deprecated'
^ /Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include/armadillo_bits/fn_inv.hpp:60:1: note: 'inv<arma::Mat
define arma_deprecated attribute((deprecated))
phylopars_rcpp.cpp:144:11: warning: 'set_stream_err2' is deprecated [-Wdeprecated-declarations] arma::set_stream_err2(nullstream); ^ /Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include/armadillo_bits/debug.hpp:99:1: note: 'set_stream_err2' has been explicitly marked deprecated here arma_deprecated ^ /Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include/armadillo_bits/compiler_setup.hpp:303:44: note: expanded from macro 'arma_deprecated'
define arma_deprecated attribute((deprecated))
phylopars_rcpp.cpp:146:14: warning: 'solve<arma::Mat, arma::Mat >' is deprecated [-Wdeprecated-declarations]
Msolve = solve(M,V,"std");
^
/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include/armadillo_bits/fn_solve.hpp:67:1: note: 'solve<arma::Mat, arma::Mat >' has been explicitly marked deprecated here
arma_deprecated
^
/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include/armadillo_bits/compiler_setup.hpp:303:44: note: expanded from macro 'arma_deprecated'
define arma_deprecated attribute((deprecated))
phylopars_rcpp.cpp:179:11: warning: 'set_stream_err2' is deprecated [-Wdeprecated-declarations] arma::set_stream_err2(nullstream); ^ /Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include/armadillo_bits/debug.hpp:99:1: note: 'set_stream_err2' has been explicitly marked deprecated here arma_deprecated ^ /Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include/armadillo_bits/compiler_setup.hpp:303:44: note: expanded from macro 'arma_deprecated'
define arma_deprecated attribute((deprecated))
5 warnings generated. 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/lib -o Rphylopars.so RcppExports.o phylopars_rcpp.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0' ld: warning: directory not found for option '-L/usr/local/gfortran/lib' ld: library not found for -lgfortran clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Rphylopars.so] Error 1 ERROR: compilation failed for package ‘Rphylopars’