############################################################################## ############################################################################## ### ### Running command: ### ### /home/biocbuild/bbs-3.21-bioc/R/bin/R CMD build --keep-empty-dirs --no-resave-data eiR ### ############################################################################## ############################################################################## * checking for file ‘eiR/DESCRIPTION’ ... OK * preparing ‘eiR’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * installing *source* package ‘eiR’ ... ** using staged installation ** libs using C++ compiler: ‘g++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0’ g++ -std=gnu++17 -I"/home/biocbuild/bbs-3.21-bioc/R/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -DR_NO_REMAP -c optimFunctions.cc -o optimFunctions.o optimFunctions.cc: In function ‘SEXPREC* calcF(SEXP, SEXP, SEXP)’: optimFunctions.cc:40:17: error: ‘length’ was not declared in this scope 40 | int k = length(xS); //length of result vector | ^~~~~~ In file included from optimFunctions.cc:2: optimFunctions.cc:91:31: error: ‘allocVector’ was not declared in this scope; did you mean ‘Rf_allocVector’? 91 | SEXP result = PROTECT(allocVector(REALSXP, 1)); | ^~~~~~~~~~~ /home/biocbuild/bbs-3.21-bioc/R/include/Rinternals.h:388:36: note: in definition of macro ‘PROTECT’ 388 | #define PROTECT(s) Rf_protect(s) | ^ optimFunctions.cc: In function ‘SEXPREC* calcG(SEXP, SEXP, SEXP)’: optimFunctions.cc:99:17: error: ‘length’ was not declared in this scope 99 | int k = length(xS); //length of result vector | ^~~~~~ optimFunctions.cc:102:31: error: ‘allocVector’ was not declared in this scope; did you mean ‘Rf_allocVector’? 102 | SEXP result = PROTECT(allocVector(REALSXP, k)); | ^~~~~~~~~~~ /home/biocbuild/bbs-3.21-bioc/R/include/Rinternals.h:388:36: note: in definition of macro ‘PROTECT’ 388 | #define PROTECT(s) Rf_protect(s) | ^ make: *** [/home/biocbuild/bbs-3.21-bioc/R/etc/Makeconf:200: optimFunctions.o] Error 1 ERROR: compilation failed for package ‘eiR’ * removing ‘/tmp/RtmpkTGrsI/Rinst4dc181f654b7c/eiR’ ----------------------------------- ERROR: package installation failed