Coder Social home page Coder Social logo

Comments (15)

jamespr615 avatar jamespr615 commented on May 27, 2024

Sorry to bother, by reviewing on line and seeing various related postings, I found the answer, mostly in your previous comments. Here is a duplicate of workaround resolution from another thread. Feel free to close the issue.

Sequence:
rsparse would not build.
Did devtools install of float.

devtools::install_github("dselivanov/float").
It built. .DLLs are present on the file system.

Could not build rsparse using devtool github install
devtools::install_github("dselivanov/rsparse")

downloaded the zip and worked to install_local

install_local("C:/Users/reefej/R/win-library/3.4/rsparse", force=TRUE)

No good. Choked on many things.

Changed the name of Makevars.in to Makevars.win
Updated Makevars.win to
SLAPACK_LIB = ${R_HOME}/bin/Rscript -e "float:::ldflags()"

PKG_CXXFLAGS = -std=c++11 $(SHLIB_OPENMP_CFLAGS) -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx
PKG_LIBS = $(SHLIB_OPENMP_CFLAGS) $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SLAPACK_LIB)
CXX_STD = CXX11

It built but could not find float.dll.

I dropped both i386 and x64 version of float.dll into directory in windows path.
It found them, completed the build and I could do
library(rparse)
model = WRMF$new(rank = 8)

After Makevars updates, I expect the problem float install and build does not register the .dlls with R environment. So you have to 'show' R and windows where to find them. since the .dlls have the same name I dropped the i386 and x64 versions into separate dirs. Do not know implications at run time, but windows will find the first' one in the search path. A windows tool can tell you which gets loaded. The build knew the difference though. I will check how to 'register the float dll dirs with the R environment.

from rsparse.

dselivanov avatar dselivanov commented on May 27, 2024

Yea, I know there some issues with autoconfigure. Unfortunately I don't have access to windows machine to figure out how to fix it. Also float is soft dependency for the latest versions. So you even don't need to install it.

from rsparse.

BigTimeStats avatar BigTimeStats commented on May 27, 2024

Hi @jamespr615,

I followed your instructions to install and still getting a failure.

Here is what I did:

  1. devtools::install_github('dselivanov/float') installed successfully
  2. Downloaded zip of this repo
  3. Changed Makevars.win file
  4. Updated path to the float .dll file which is in float package.
    C:\Users\...xxx...\Documents\R\win-library\3.4\float\libs\x64
    I did not find the i386 file, only the x64 file.
  5. Ran devtools::install_local("rsparse-master", force=TRUE)

Here is the error log:

> devtools::install_local("rsparse-master", force=TRUE)
Installing rsparse
"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Users/...xxx.../AppData/Local/Temp/3/RtmpeG1fjR/file446058ac6cd7/rsparse-master" --library="C:/Users/...xxx.../Documents/R/win-library/3.4" --install-tests 

Installing rsparse
"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Users/...xxx.../AppData/Local/Temp/3/RtmpeG1fjR/file44601f1f8b7/rsparse-master" --library="C:/Users/...xxx.../Documents/R/win-library/3.4" --install-tests 

* installing *source* package 'rsparse' ...

   **********************************************
   WARNING: this package has a configure script
         It probably needs manual configuration
   **********************************************


** libs
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c FTRL.cpp -o FTRL.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c FactorizationMachine.cpp -o FactorizationMachine.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c ProductSparseDense.cpp -o ProductSparseDense.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c RcppExports.cpp -o RcppExports.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c SolverAlsWrmf.cpp -o SolverAlsWrmf.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c TopProduct.cpp -o TopProduct.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c kmeans.cpp -o kmeans.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c utils.cpp -o utils.o
C:/RBuildTools/3.4/mingw_64/bin/g++ -shared -s -static-libgcc -o rsparse.dll tmp.def FTRL.o FactorizationMachine.o ProductSparseDense.o RcppExports.o SolverAlsWrmf.o TopProduct.o kmeans.o utils.o -fopenmp -fopenmp -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lRlapack -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lRblas -lgfortran -lm -lquadmath C:/PROGRA~1/R/R-34~1.3/bin/Rscript -e float:::ldflags() -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lR
g++.exe: error: C:/PROGRA~1/R/R-34~1.3/bin/Rscript: No such file or directory
no DLL was created
ERROR: compilation failed for package 'rsparse'
* removing 'C:/Users/...xxx.../Documents/R/win-library/3.4/rsparse'
In R CMD INSTALL
Installation failed: Command failed (1)

And session:

> sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server >= 2012 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] float_0.1-2       data.table_1.11.4

loaded via a namespace (and not attached):
 [1] httr_1.3.1      compiler_3.4.3  R6_2.2.2        tools_3.4.3     withr_2.1.1     curl_3.1        yaml_2.1.16     memoise_1.1.0   git2r_0.21.0   
[10] digest_0.6.13   devtools_1.13.4

I also installed g++ via MinGW via these instructions but this did not help the problem: http://www.codebind.com/cprogramming/install-mingw-windows-10-gcc/

Path image:
image

Thank you for the help!

from rsparse.

jamespr615 avatar jamespr615 commented on May 27, 2024

from rsparse.

BigTimeStats avatar BigTimeStats commented on May 27, 2024

Gotcha, unfortunately that still did not work and getting the same error..

I think it has something to do with the Makevars.win file as the error I am getting is:

C:/RBuildTools/3.4/mingw_64/bin/g++ -shared -s -static-libgcc -o rsparse.dll tmp.def FTRL.o FactorizationMachine.o ProductSparseDense.o RcppExports.o SolverAlsWrmf.o TopProduct.o kmeans.o utils.o -fopenmp -fopenmp -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lRlapack -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lRblas -lgfortran -lm -lquadmath C:/PROGRA~1/R/R-34~1.3/bin/Rscript -e float:::ldflags() -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lR
g++.exe: error: C:/PROGRA~1/R/R-34~1.3/bin/Rscript: No such file or directory
no DLL was created

Which means it's not finding Rscript which is kind of weird, I even made a system path variable for R_HOME

EDIT:

I changed your Makevars.win file to reference Rscript.exe.. that did something, but now getting new errors:

* installing *source* package 'rsparse' ...

   **********************************************
   WARNING: this package has a configure script
         It probably needs manual configuration
   **********************************************


** libs
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c FTRL.cpp -o FTRL.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c FactorizationMachine.cpp -o FactorizationMachine.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c ProductSparseDense.cpp -o ProductSparseDense.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c RcppExports.cpp -o RcppExports.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c SolverAlsWrmf.cpp -o SolverAlsWrmf.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c TopProduct.cpp -o TopProduct.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c kmeans.cpp -o kmeans.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -std=c++11 -fopenmp -DARMA_64BIT_WORD -O3 -fopenmp -ffast-math -march=native -mavx   -O2 -Wall  -mtune=generic -c utils.cpp -o utils.o
C:/RBuildTools/3.4/mingw_64/bin/g++ -shared -s -static-libgcc -o rsparse.dll tmp.def FTRL.o FactorizationMachine.o ProductSparseDense.o RcppExports.o SolverAlsWrmf.o TopProduct.o kmeans.o utils.o -fopenmp -fopenmp -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lRlapack -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lRblas -lgfortran -lm -lquadmath C:/PROGRA~1/R/R-34~1.3/bin/Rscript.exe -e float:::ldflags() -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lR
C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: warning: cannot find entry symbol float:::ldflags(); defaulting to 000000006f241000
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma6auxlib19solve_square_refineINS_3MatIfEEEEbRNS2_INT_8pod_typeEEERS5_S7_RKNS_4BaseIS5_S4_EEb[_ZN4arma6auxlib19solve_square_refineINS_3MatIfEEEEbRNS2_INT_8pod_typeEEERS5_S7_RKNS_4BaseIS5_S4_EEb]+0x417): undefined reference to `sgesvx_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma6auxlib20solve_tridiag_refineINS_3MatIfEEEEbRNS2_INT_8pod_typeEEERS5_S7_RKNS_4BaseIS5_S4_EE[_ZN4arma6auxlib20solve_tridiag_refineINS_3MatIfEEEEbRNS2_INT_8pod_typeEEERS5_S7_RKNS_4BaseIS5_S4_EE]+0x494): undefined reference to `sgtsvx_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma6auxlib16solve_approx_svdINS_3MatIfEEEEbRNS2_INT_8pod_typeEEES7_RKNS_4BaseIS5_S4_EE[_ZN4arma6auxlib16solve_approx_svdINS_3MatIfEEEEbRNS2_INT_8pod_typeEEES7_RKNS_4BaseIS5_S4_EE]+0x43d): undefined reference to `sgelsd_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma6auxlib16solve_approx_svdINS_3MatIfEEEEbRNS2_INT_8pod_typeEEES7_RKNS_4BaseIS5_S4_EE[_ZN4arma6auxlib16solve_approx_svdINS_3MatIfEEEEbRNS2_INT_8pod_typeEEES7_RKNS_4BaseIS5_S4_EE]+0x61e): undefined reference to `sgelsd_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma6auxlib17solve_square_fastINS_3MatIfEEEEbRNS2_INT_9elem_typeEEES7_RKNS_4BaseIS5_S4_EE[_ZN4arma6auxlib17solve_square_fastINS_3MatIfEEEEbRNS2_INT_9elem_typeEEES7_RKNS_4BaseIS5_S4_EE]+0x31e): undefined reference to `sgesv_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma6auxlib17solve_band_refineINS_3MatIfEEEEbRNS2_INT_8pod_typeEEERS5_S7_yyRKNS_4BaseIS5_S4_EEb[_ZN4arma6auxlib17solve_band_refineINS_3MatIfEEEEbRNS2_INT_8pod_typeEEERS5_S7_yyRKNS_4BaseIS5_S4_EEb]+0x490): undefined reference to `sgbsvx_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma14glue_solve_gen5applyIfNS_3MatIfEES3_EEbRNS2_IT_EERKNS_4BaseIS4_T0_EERKNS7_IS4_T1_EEy[_ZN4arma14glue_solve_gen5applyIfNS_3MatIfEES3_EEbRNS2_IT_EERKNS_4BaseIS4_T0_EERKNS7_IS4_T1_EEy]+0x59d): undefined reference to `sgels_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma14glue_solve_gen5applyIfNS_3MatIfEES3_EEbRNS2_IT_EERKNS_4BaseIS4_T0_EERKNS7_IS4_T1_EEy[_ZN4arma14glue_solve_gen5applyIfNS_3MatIfEES3_EEbRNS2_IT_EERKNS_4BaseIS4_T0_EERKNS7_IS4_T1_EEy]+0xc71): undefined reference to `sgbsv_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma14glue_solve_gen5applyIfNS_3MatIfEES3_EEbRNS2_IT_EERKNS_4BaseIS4_T0_EERKNS7_IS4_T1_EEy[_ZN4arma14glue_solve_gen5applyIfNS_3MatIfEES3_EEbRNS2_IT_EERKNS_4BaseIS4_T0_EERKNS7_IS4_T1_EEy]+0xf6c): undefined reference to `sgtsv_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma4gemvILb1ELb0ELb0EE15apply_blas_typeIfNS_3MatIfEEEEvPT_RKT0_PKS5_S5_S5_[_ZN4arma4gemvILb1ELb0ELb0EE15apply_blas_typeIfNS_3MatIfEEEEvPT_RKT0_PKS5_S5_S5_]+0xbc): undefined reference to `sgemv_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma4gemvILb0ELb0ELb0EE15apply_blas_typeIfNS_3MatIfEEEEvPT_RKT0_PKS5_S5_S5_[_ZN4arma4gemvILb0ELb0ELb0EE15apply_blas_typeIfNS_3MatIfEEEEvPT_RKT0_PKS5_S5_S5_]+0xa4): undefined reference to `sgemv_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma10glue_times5applyIfLb0ELb1ELb0ENS_3MatIfEES3_EEvRNS2_IT_EERKT3_RKT4_S4_[_ZN4arma10glue_times5applyIfLb0ELb1ELb0ENS_3MatIfEES3_EEvRNS2_IT_EERKT3_RKT4_S4_]+0x19c): undefined reference to `sgemm_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma10glue_times5applyIfLb0ELb1ELb0ENS_3MatIfEES3_EEvRNS2_IT_EERKT3_RKT4_S4_[_ZN4arma10glue_times5applyIfLb0ELb1ELb0ENS_3MatIfEES3_EEvRNS2_IT_EERKT3_RKT4_S4_]+0x3b0): undefined reference to `ssyrk_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma4gemvILb1ELb0ELb0EE15apply_blas_typeIfNS_3ColIfEEEEvPT_RKT0_PKS5_S5_S5_[_ZN4arma4gemvILb1ELb0ELb0EE15apply_blas_typeIfNS_3ColIfEEEEvPT_RKT0_PKS5_S5_S5_]+0xbc): undefined reference to `sgemv_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma10glue_times5applyIfLb0ELb0ELb0ENS_3MatIfEENS_3ColIfEEEEvRNS2_IT_EERKT3_RKT4_S6_[_ZN4arma10glue_times5applyIfLb0ELb0ELb0ENS_3MatIfEENS_3ColIfEEEEvRNS2_IT_EERKT3_RKT4_S6_]+0xf8): undefined reference to `sgemv_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIfEENS_3ColIfEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE[_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIfEENS_3ColIfEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE]+0x11a): undefined reference to `sgemv_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIfEENS_3ColIfEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE[_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIfEENS_3ColIfEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE]+0x299): undefined reference to `sgemv_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma10glue_times5applyIfLb1ELb0ELb0ENS_3MatIfEENS_3ColIfEEEEvRNS2_IT_EERKT3_RKT4_S6_[_ZN4arma10glue_times5applyIfLb1ELb0ELb0ENS_3MatIfEENS_3ColIfEEEEvRNS2_IT_EERKT3_RKT4_S6_]+0x10f): undefined reference to `sgemv_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_ZN4arma10glue_times5applyIfLb0ELb0ELb0ENS_3MatIfEES3_EEvRNS2_IT_EERKT3_RKT4_S4_[_ZN4arma10glue_times5applyIfLb0ELb0ELb0ENS_3MatIfEES3_EEvRNS2_IT_EERKT3_RKT4_S4_]+0x168): undefined reference to `sgemm_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_Z9cg_solverIfEN4arma3ColIT_EERKNS0_3MatIS2_EES7_RKS3_S9_i[_Z9cg_solverIfEN4arma3ColIT_EERKNS0_3MatIS2_EES7_RKS3_S9_i]+0xa22): undefined reference to `sdot_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_Z9cg_solverIfEN4arma3ColIT_EERKNS0_3MatIS2_EES7_RKS3_S9_i[_Z9cg_solverIfEN4arma3ColIT_EERKNS0_3MatIS2_EES7_RKS3_S9_i]+0xa4f): undefined reference to `sdot_'
SolverAlsWrmf.o:SolverAlsWrmf.cpp:(.text$_Z9cg_solverIfEN4arma3ColIT_EERKNS0_3MatIS2_EES7_RKS3_S9_i[_Z9cg_solverIfEN4arma3ColIT_EERKNS0_3MatIS2_EES7_RKS3_S9_i]+0xb1c): undefined reference to `sdot_'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'rsparse'
* removing 'C:/Users/...xxx.../Documents/R/win-library/3.4/rsparse'
In R CMD INSTALL
Installation failed: Command failed (1)

from rsparse.

jamespr615 avatar jamespr615 commented on May 27, 2024

from rsparse.

BigTimeStats avatar BigTimeStats commented on May 27, 2024

Thanks for looking into it. I put the .dll into system32 with no luck. I added the dir to path and also didn't work. I don't have rblas installed... tried to install it with no luck, seems like other people have also struggled.

I think the ~ are just abbreviations in the log, so I don't think that's the problem. They correspond to where all those items are located.

At a certain point, it becomes a deep rabbit hole that's hard to get out of haha... install this/that to fix one thing in the installation chain, and just get a new error lol

Thanks!

from rsparse.

dselivanov avatar dselivanov commented on May 27, 2024

Hey here. I'm working on fix (will allow just to use remotes::install_github("dselivanov/rsparse")). Hope to push it very soon.

from rsparse.

dselivanov avatar dselivanov commented on May 27, 2024

@jamespr615 @BigTimeStats can you please try to install latest version from master with remotes::install_github("dselivanov/rsparse") or devtools::install_github("dselivanov/rsparse") and report whether it works or not?

from rsparse.

jamespr615 avatar jamespr615 commented on May 27, 2024

from rsparse.

jamespr615 avatar jamespr615 commented on May 27, 2024

from rsparse.

dselivanov avatar dselivanov commented on May 27, 2024

I'm not sure about your particular problem - it seems you have non standard R/Rtools installation. I've checked latest rsparse on win builder service and everything runs fine and passes all the tests.

from rsparse.

BigTimeStats avatar BigTimeStats commented on May 27, 2024

@dselivanov thanks so much. I don't know what you did, but it seems to have worked!

Log in case it's helpful:

> devtools::install_github('dselivanov/rsparse')
Downloading GitHub repo dselivanov/rsparse@master
from URL https://api.github.com/repos/dselivanov/rsparse/zipball/master
Installing rsparse
"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Users/...xxx.../AppData/Local/Temp/3/RtmpeG1fjR/devtools4460787713e4/dselivanov-rsparse-044231d" --library="C:/Users/...xxx.../Documents/R/win-library/3.4"  \
  --install-tests 

* installing *source* package 'rsparse' ...

   **********************************************
   WARNING: this package has a configure script
         It probably needs manual configuration
   **********************************************


** libs
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -fopenmp -DARMA_32BIT_WORD -DARMA_DONT_USE_BLAS   -O2 -Wall  -mtune=generic -c FTRL.cpp -o FTRL.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -fopenmp -DARMA_32BIT_WORD -DARMA_DONT_USE_BLAS   -O2 -Wall  -mtune=generic -c FactorizationMachine.cpp -o FactorizationMachine.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -fopenmp -DARMA_32BIT_WORD -DARMA_DONT_USE_BLAS   -O2 -Wall  -mtune=generic -c ProductSparseDense.cpp -o ProductSparseDense.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -fopenmp -DARMA_32BIT_WORD -DARMA_DONT_USE_BLAS   -O2 -Wall  -mtune=generic -c RcppExports.cpp -o RcppExports.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -fopenmp -DARMA_32BIT_WORD -DARMA_DONT_USE_BLAS   -O2 -Wall  -mtune=generic -c SolverAlsWrmf.cpp -o SolverAlsWrmf.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -fopenmp -DARMA_32BIT_WORD -DARMA_DONT_USE_BLAS   -O2 -Wall  -mtune=generic -c TopProduct.cpp -o TopProduct.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -fopenmp -DARMA_32BIT_WORD -DARMA_DONT_USE_BLAS   -O2 -Wall  -mtune=generic -c kmeans.cpp -o kmeans.o
C:/RBuildTools/3.4/mingw_64/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG  -I"C:/Users/...xxx.../Documents/R/win-library/3.4/Rcpp/include" -I"C:/Users/...xxx.../Documents/R/win-library/3.4/RcppArmadillo/include"     -fopenmp -DARMA_32BIT_WORD -DARMA_DONT_USE_BLAS   -O2 -Wall  -mtune=generic -c utils.cpp -o utils.o
C:/RBuildTools/3.4/mingw_64/bin/g++ -shared -s -static-libgcc -o rsparse.dll tmp.def FTRL.o FactorizationMachine.o ProductSparseDense.o RcppExports.o SolverAlsWrmf.o TopProduct.o kmeans.o utils.o -fopenmp -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lRlapack -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lRblas -lgfortran -lm -lquadmath -LC:/PROGRA~1/R/R-34~1.3/bin/x64 -lR
installing to C:/Users/...xxx.../Documents/R/win-library/3.4/rsparse/libs/x64
** R
** data
*** moving datasets to lazyload DB
** tests
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'rsparse'
    finding HTML links ... done
    FTRL                                    html  
    FactorizationMachine                    html  
    LinearFlow                              html  
    PureSVD                                 html  
    WRMF                                    html  
    ap_k                                    html  
    movielens100k                           html  
    soft_impute                             html  
    train_test_split                        html  
** building package indices
** testing if installed package can be loaded
* DONE (rsparse)
In R CMD INSTALL
> library(rsparse)
Setting OpenMP threads number to 48. 
Can be adjusted by setting `options("rsparse_omp_threads" = N_THREADS)`

from rsparse.

dselivanov avatar dselivanov commented on May 27, 2024

Perfect!

from rsparse.

jamespr615 avatar jamespr615 commented on May 27, 2024

from rsparse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.