Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation/compilation on MS R Open (32-bit vs 64-bit issues) #2

Closed
jmboehm opened this issue Jan 26, 2018 · 2 comments
Closed

Installation/compilation on MS R Open (32-bit vs 64-bit issues) #2

jmboehm opened this issue Jan 26, 2018 · 2 comments

Comments

@jmboehm
Copy link

jmboehm commented Jan 26, 2018

Hi Amrei,

First of all, thanks a lot for all your work on the package.

I'm trying to install alpaca on Microsoft R Open 3.4.3 (which is 64-bit), in order to use the Intel MKL libraries, which I hope will speed up the linear algebra quite a bit. However, installation fails.

I'm running

devtools::install_github("amrei-stammann/alpaca", build_vignettes = TRUE)

and get

devtools::install_github("amrei-stammann/alpaca", build_vignettes = TRUE)
Downloading GitHub repo amrei-stammann/alpaca@master
from URL https://api.github.com/repos/amrei-stammann/alpaca/zipball/master
Installing alpaca
"C:/PROGRA~1/MICROS~3/ROPEN~1/R-34~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD  \
  INSTALL  \
  "C:/Users/johannes.boehm/AppData/Local/Temp/RtmpaMFVQc/devtools1ced84b4c22fd/amrei-stammann-alpaca-a72d1f9"  \
  --library="C:/Program Files/Microsoft/R Open/R-3.4.3/library" --install-tests 

* installing *source* package 'alpaca' ...
** libs
c:/Rtools/mingw_64/bin/g++ -m64 -std=gnu++11 -I"C:/PROGRA~1/MICROS~3/ROPEN~1/R-34~1.3/include" -DNDEBUG  -I"C:/Program Files/Microsoft/R Open/R-3.4.3/library/Rcpp/include" -I"C:/Program Files/Microsoft/R Open/R-3.4.3/library/RcppArmadillo/include"   -I"C:/swarm/workspace/External-R-3.4.3/vendor/extsoft/include"  -fopenmp    -O2 -Wall  -mtune=core2 -c feglm.cpp -o feglm.o
feglm.cpp: In function 'double Deviance(const vec&, const vec&, const vec&, const mat&, unsigned int)':
feglm.cpp:332:16: warning: unused variable 'keps' [-Wunused-variable]
   const double keps = std::numeric_limits<double>::epsilon();
                ^
c:/Rtools/mingw_64/bin/g++ -m64 -std=gnu++11 -I"C:/PROGRA~1/MICROS~3/ROPEN~1/R-34~1.3/include" -DNDEBUG  -I"C:/Program Files/Microsoft/R Open/R-3.4.3/library/Rcpp/include" -I"C:/Program Files/Microsoft/R Open/R-3.4.3/library/RcppArmadillo/include"   -I"C:/swarm/workspace/External-R-3.4.3/vendor/extsoft/include"  -fopenmp    -O2 -Wall  -mtune=core2 -c getFEs.cpp -o getFEs.o
c:/Rtools/mingw_64/bin/g++ -m64 -shared -s -static-libgcc -o alpaca.dll tmp.def RcppExports.o feglm.o getFEs.o -fopenmp -LC:/PROGRA~1/MICROS~3/ROPEN~1/R-34~1.3/bin/x64 -lRlapack -LC:/PROGRA~1/MICROS~3/ROPEN~1/R-34~1.3/bin/x64 -lRblas -lgfortran -lm -lquadmath -LC:/swarm/workspace/External-R-3.4.3/vendor/extsoft/lib/x64 -LC:/swarm/workspace/External-R-3.4.3/vendor/extsoft/lib -LC:/PROGRA~1/MICROS~3/ROPEN~1/R-34~1.3/bin/x64 -lR
feglm.o:feglm.cpp:(.data$_ZZN4arma16arma_cerr_streamIcEERSoPSoE11cerr_stream[_ZZN4arma16arma_cerr_streamIcEERSoPSoE11cerr_stream]+0x0): multiple definition of `std::ostream& arma::arma_cerr_stream<char>(std::ostream*)::cerr_stream'
RcppExports.o:(.data.rel.local._ZZN4arma16arma_cerr_streamIcEERSoPSoE11cerr_stream[_ZZN4arma16arma_cerr_streamIcEERSoPSoE11cerr_stream]+0x0): first defined here
feglm.o:feglm.cpp:(.data$_ZGVZ7dataptrP7SEXPRECE3fun[_ZGVZ7dataptrP7SEXPRECE3fun]+0x0): multiple definition of `guard variable for dataptr(SEXPREC*)::fun'
RcppExports.o:/usr/include/c++/5/bits/basic_string.tcc:210: first defined here
feglm.o:feglm.cpp:(.data$_ZZ7dataptrP7SEXPRECE3fun[_ZZ7dataptrP7SEXPRECE3fun]+0x0): multiple definition of `dataptr(SEXPREC*)::fun'
RcppExports.o:/usr/include/c++/5/bits/basic_string.tcc:210: first defined here
feglm.o:feglm.cpp:(.data$_ZGVZ11stack_tracePKciE3fun[_ZGVZ11stack_tracePKciE3fun]+0x0): multiple definition of `guard variable for stack_trace(char const*, int)::fun'
RcppExports.o:/usr/include/c++/5/bits/basic_string.tcc:210: first defined here
feglm.o:feglm.cpp:(.data$_ZZ11stack_tracePKciE3fun[_ZZ11stack_tracePKciE3fun]+0x0): multiple definition of `stack_trace(char const*, int)::fun'
RcppExports.o:/usr/include/c++/5/bits/basic_string.tcc:210: first defined here
feglm.o:feglm.cpp:(.data$_ZGVZ20rcpp_set_stack_traceP7SEXPRECE3fun[_ZGVZ20rcpp_set_stack_traceP7SEXPRECE3fun]+0x0): multiple definition of `guard variable for rcpp_set_stack_trace(SEXPREC*)::fun'
RcppExports.o:/usr/include/c++/5/bits/basic_string.tcc:210: first defined here
feglm.o:feglm.cpp:(.data$_ZZ20rcpp_set_stack_traceP7SEXPRECE3fun[_ZZ20rcpp_set_stack_traceP7SEXPRECE3fun]+0x0): multiple definition of `rcpp_set_stack_trace(SEXPREC*)::fun'
RcppExports.o:/usr/include/c++/5/bits/basic_string.tcc:210: first defined here
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
RcppExports.o: In function `_alpaca_FEGLM':
/home/daniel/ownCloud/Research/alpaca/alpaca/src/RcppExports.cpp:12: Cannot get section contents - auto-import exception
collect2.exe: error: ld returned 5 exit status
installing to C:/Program Files/Microsoft/R Open/R-3.4.3/library/alpaca/libs/x64
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error: package or namespace load failed for 'alpaca' in inDL(x, as.logical(local), as.logical(now), ...):
 unable to load shared object 'C:/Program Files/Microsoft/R Open/R-3.4.3/library/alpaca/libs/x64/alpaca.dll':
  LoadLibrary failure:  %1 is not a valid Win32 application.

Error: loading failed
Execution halted
ERROR: loading failed
* removing 'C:/Program Files/Microsoft/R Open/R-3.4.3/library/alpaca'
In R CMD INSTALL
Installation failed: Command failed (1)

Some people on the internet suggest using the --no-multiarch flag, as in

devtools::install_github("amrei-stammann/alpaca", build_vignettes = TRUE, args = "--no-multiarch")

This, however, leads to the same result. R, Rtools, and Windows are on x64. Same result when I run "R CMD INSTALL" manually in the shell.

I've kind of run out of ideas what the problem could be. Do you have any idea?

Thanks & best, Johannes

@jmboehm
Copy link
Author

jmboehm commented Jan 26, 2018

Hmm. I compiled and installed it manually following the instructions here, and it worked. Interestingly I had to install knitr as well; perhaps was missing as a dependency. This post here had a similar issue, so perhaps it's related to devtools or Rtools, as they suggest.

@jmboehm jmboehm closed this as completed Jan 26, 2018
@jmboehm
Copy link
Author

jmboehm commented Jan 29, 2018

That said, I still don't manage to make it use more than one core, so the MKL is effectively not used (my CPU utilisation never goes above 15% on an 8-core system). Are you using all of your cores?

By the way, why did you implement the Cholesky yourself instead of relying on the one from the BLAS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant