yixuan / RSpectra

R Interface to the Spectra Library for Large Scale Eigenvalue and SVD Problems
http://cran.r-project.org/package=RSpectra
80 stars 12 forks source link

Unable to install dev version #18

Closed alexpghayes closed 5 years ago

alexpghayes commented 5 years ago

Sorry the reprex isn't more informative. Is anyone else having this issue?

devtools::install_github("yixuan/RSpectra")
#> Downloading GitHub repo yixuan/RSpectra@master
#> 
#>   

   checking for file 'C:\Users\alex\AppData\Local\Temp\RtmpOiJbBt\remotes17ac66a9851\yixuan-RSpectra-1bd1337/DESCRIPTION' ...

   checking for file 'C:\Users\alex\AppData\Local\Temp\RtmpOiJbBt\remotes17ac66a9851\yixuan-RSpectra-1bd1337/DESCRIPTION' ... 

v  checking for file 'C:\Users\alex\AppData\Local\Temp\RtmpOiJbBt\remotes17ac66a9851\yixuan-RSpectra-1bd1337/DESCRIPTION' (404ms)
#> 

-  preparing 'RSpectra':
#>    checking DESCRIPTION meta-information ...

   checking DESCRIPTION meta-information ... 

v  checking DESCRIPTION meta-information
#> -  cleaning src
#> 

-  checking for LF line-endings in source and make files and shell scripts (507ms)
#> 

-  checking for empty or unneeded directories
#> 

-  building 'RSpectra_0.15-0.tar.gz'
#> 

#> 
#> Installing package into 'C:/Users/alex/Documents/R/win-library/3.5'
#> (as 'lib' is unspecified)
#> Error in i.p(...): (converted from warning) installation of package 'C:/Users/alex/AppData/Local/Temp/RtmpOiJbBt/file17ac6ad46b7f/RSpectra_0.15-0.tar.gz' had non-zero exit status

Created on 2019-05-31 by the reprex package (v0.2.1)

privefl commented 5 years ago

Do you have Rtools installed?

yixuan commented 5 years ago

It would be more helpful to install from a local directory and see the check log file.

alexpghayes commented 5 years ago
> devtools::install_local()
√  checking for file 'C:\Users\alex\AppData\Local\Temp\RtmpUP0VMJ\file20746e192af5\RSpectra/DESCRIPTION' (392ms)
-  preparing 'RSpectra':
√  checking DESCRIPTION meta-information ... 
-  cleaning src
-  checking for LF line-endings in source and make files and shell scripts (496ms)
-  checking for empty or unneeded directories
-  building 'RSpectra_0.15-0.tar.gz'

Installing package into ‘C:/Users/alex/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'RSpectra' ...
** libs

*** arch - i386
c:/Rtools/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-35~1.3/include" -DNDEBUG -I../inst/include -I"C:/Users/alex/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/alex/Documents/R/win-library/3.5/RcppEigen/include"        -O2 -Wall  -mtune=generic -c eigs_gen.cpp -o eigs_gen.o
c:/Rtools/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-35~1.3/include" -DNDEBUG -I../inst/include -I"C:/Users/alex/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/alex/Documents/R/win-library/3.5/RcppEigen/include"        -O2 -Wall  -mtune=generic -c eigs_sym.cpp -o eigs_sym.o
c:/Rtools/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-35~1.3/include" -DNDEBUG -I../inst/include -I"C:/Users/alex/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/alex/Documents/R/win-library/3.5/RcppEigen/include"        -O2 -Wall  -mtune=generic -c is_sym.cpp -o is_sym.o
c:/Rtools/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-35~1.3/include" -DNDEBUG -I../inst/include -I"C:/Users/alex/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/alex/Documents/R/win-library/3.5/RcppEigen/include"        -O2 -Wall  -mtune=generic -c matops.cpp -o matops.o
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-35~1.3/include" -DNDEBUG -I../inst/include -I"C:/Users/alex/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/alex/Documents/R/win-library/3.5/RcppEigen/include"        -O3 -Wall  -std=gnu99 -mtune=generic -c register_routines.c -o register_routines.o
c:/Rtools/mingw_32/bin/g++  -I"C:/PROGRA~1/R/R-35~1.3/include" -DNDEBUG -I../inst/include -I"C:/Users/alex/Documents/R/win-library/3.5/Rcpp/include" -I"C:/Users/alex/Documents/R/win-library/3.5/RcppEigen/include"        -O2 -Wall  -mtune=generic -c svds.cpp -o svds.o
c:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o RSpectra.dll tmp.def eigs_gen.o eigs_sym.o is_sym.o matops.o register_routines.o svds.o -LC:/PROGRA~1/R/R-35~1.3/bin/i386 -lRblas -lgfortran -lm -lquadmath -LC:/PROGRA~1/R/R-35~1.3/bin/i386 -lR
matops.o:matops.cpp:(.text$_ZN20RealShift_sym_matrix10perform_opEPKdPd[__ZN20RealShift_sym_matrix10perform_opEPKdPd]+0x52): undefined reference to `dsytrs_'
matops.o:matops.cpp:(.text$_ZN20RealShift_sym_matrix9set_shiftEd[__ZN20RealShift_sym_matrix9set_shiftEd]+0x83): undefined reference to `dsytrf_'
matops.o:matops.cpp:(.text$_ZN20RealShift_sym_matrix9set_shiftEd[__ZN20RealShift_sym_matrix9set_shiftEd]+0xfd): undefined reference to `dsytrf_'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'RSpectra'
* removing 'C:/Users/alex/Documents/R/win-library/3.5/RSpectra'
* restoring previous 'C:/Users/alex/Documents/R/win-library/3.5/RSpectra'
In R CMD INSTALL
Error in i.p(...) : 
  (converted from warning) installation of package ‘C:/Users/alex/AppData/Local/Temp/RtmpUP0VMJ/file207447296ce2/RSpectra_0.15-0.tar.gz’ had non-zero exit status
alexpghayes commented 5 years ago

Happy to add a check log file, but realizing I don't know how.

yixuan commented 5 years ago

Oh, the message is already very informative. It turns out that I forgot to add necessary Lapack flags in the Makevars files. It has been fixed. Thank you!