[Rcpp-devel] fatal error: RcppArmadillo.h: No such file or directory

binbinlu at whu.edu.cn binbinlu at whu.edu.cn
Tue Oct 27 03:36:04 CET 2020


Dear all,

I got an incoming check error in Debian when submiting a new version of the package GWmodel to CRAN, of which the detials are as follows:

* installing *source* package ‘GWmodel’ ...
** using staged installation
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
Checking for C++ Compiler
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking "Checking environment variable CUDA_HOME"... "CUDA_HOME not set; using highest version found "
checking for /bin/nvcc... no
"NVCC not found"
./configure: line 2830: 'R' should not be used without a path -- see par. 1.6 of the manual/bin/R: No such file or directory
./configure: line 2831: 'R' should not be used without a path -- see par. 1.6 of the manual/bin/R: No such file or directory
./configure: line 2832: 'R' should not be used without a path -- see par. 1.6 of the manual/bin/R: No such file or directory
checking for Rscript... yes
./configure: line 2875: 'R': command not found
./configure: line 2876: 'R': command not found
building the nvcc command line
building the cuda include path
You use staged install
Your real libray is /srv/hornik/tmp/CRAN/GWmodel.Rcheck/GWmodel
configure: Building Makevars
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++-10  -std=gnu++11 -fopenmp -DNDEBUG -g -O2 -Wall -pedantic -mtune=native    -I./GWmodelCUDA     RcppExports.cpp -c
RcppExports.cpp:4:10: fatal error: RcppArmadillo.h: No such file or directory
4 | #include 
|          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makevars:76: RcppExports.o] Error 1
ERROR: compilation failed for package ‘GWmodel’
* removing ‘/srv/hornik/tmp/CRAN/GWmodel.Rcheck/GWmodel’


Tried to fix it by following the answers to the similar problem, but didn't work it out. Note there is no problem when being checked in Windows. See more details in the directory:


Many thanks in advances.

Best regards,
Binbin




More information about the Rcpp-devel mailing list