NNLM icon indicating copy to clipboard operation
NNLM copied to clipboard

Installation issue

Open georgewu1999 opened this issue 3 years ago • 0 comments

uments/R/win-library/3.5/Rcpp/include/Rcpp/as.h:152:82: required from 'T Rcpp::as(SEXP) [with T = arma::Mat; SEXP = SEXPREC*]' C:/Users/admin/Documents/R/win-library/3.5/Rcpp/include/Rcpp/InputParameter.h:34:45: required from 'Rcpp::InputParameter<T>::operator T() [with T = arma::Mat]' RcppExports.cpp:51:171: required from here C:/Users/admin/Documents/R/win-library/3.5/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:5958:3: warning: no return statement in function returning non-void [-Wreturn-type] } ^ In file included from C:/Rtools/mingw_32/i686-w64-mingw32/include/c++/atomic:41:0, from C:/Users/admin/Documents/R/win-library/3.5/RcppArmadillo/include/armadillo:50, from C:/Users/admin/Documents/R/win-library/3.5/RcppArmadillo/include/RcppArmadilloForward.h:49, from C:/Users/admin/Documents/R/win-library/3.5/RcppArmadillo/include/RcppArmadillo.h:31, from RcppExports.cpp:4: C:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/atomic_base.h: At global scope: C:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/atomic_base.h:494:7: warning: inline function 'std::__atomic_base<_IntTp>::__int_type std::__atomic_base<_IntTp>::load(std::memory_order) const [with _ITp = int; std::__atomic_base<_IntTp>::__int_type = int; std::memory_order = std::memory_order]' used but never defined load(memory_order __m = memory_order_seq_cst) const noexcept ^ C:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/atomic_base.h:471:7: warning: inline function 'void std::__atomic_base<_IntTp>::store(std::__atomic_base<_IntTp>::__int_type, std::memory_order) [with _ITp = int; std::__atomic_base<_IntTp>::__int_type = int; std::memory_order = std::memory_order]' used but never defined store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept ^ make: *** [C:/PROGRA~1/R/R-35~1.0/etc/i386/Makeconf:215: RcppExports.o] Error 1 ERROR: compilation failed for package 'NNLM'

  • removing 'C:/Users/admin/Documents/R/win-library/3.5/NNLM' In R CMD INSTALL Installation failed: Command failed (1)

I used R 3.5.0 to install NNLM but got the error message above. The script I will use doesn't allow me to upgrade R to 4.0. Is there any way to fix this compilation error? Do I have to update anything else? I tried the following command and I assume my RTools is working:

Sys.which("make") make "C:\Rtools\bin\make.exe"

georgewu1999 avatar May 29 '21 09:05 georgewu1999