Closed alexpghayes closed 5 years ago
Do you have Rtools installed?
It would be more helpful to install from a local directory and see the check log file.
> 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
Happy to add a check log file, but realizing I don't know how.
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!
Sorry the reprex isn't more informative. Is anyone else having this issue?
Created on 2019-05-31 by the reprex package (v0.2.1)