############################################################################## ############################################################################## ### ### Running command: ### ### /home/biocbuild/bbs-3.21-bioc/R/bin/R CMD build --keep-empty-dirs --no-resave-data cn.mops ### ############################################################################## ############################################################################## * checking for file ‘cn.mops/DESCRIPTION’ ... OK * preparing ‘cn.mops’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * installing *source* package ‘cn.mops’ ... ** using staged installation ** libs using C compiler: ‘gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0’ using C++ compiler: ‘g++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0’ gcc -I"/home/biocbuild/bbs-3.21-bioc/R/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -c R_init_cnmops.c -o R_init_cnmops.o 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 cnmops.cpp -o cnmops.o cnmops.cpp: In function ‘SEXPREC* cnmops(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’: cnmops.cpp:18:17: error: ‘length’ was not declared in this scope 18 | int N = length(xS); | ^~~~~~ cnmops.cpp:30:30: error: expected primary-expression before ‘double’ 30 | double *lg=Calloc(N, double); | ^~~~~~ cnmops.cpp:30:20: error: ‘Calloc’ was not declared in this scope; did you mean ‘calloc’? 30 | double *lg=Calloc(N, double); | ^~~~~~ | calloc In file included from cnmops.cpp:8: cnmops.cpp:42:32: error: ‘allocMatrix’ was not declared in this scope; did you mean ‘Rf_allocMatrix’? 42 | PROTECT(alpha_ik_RET = allocMatrix(REALSXP, n, N)); | ^~~~~~~~~~~ /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) | ^ cnmops.cpp:46:31: error: ‘allocVector’ was not declared in this scope; did you mean ‘Rf_allocVector’? 46 | PROTECT(alpha_i_RET = allocVector(REALSXP, n)); | ^~~~~~~~~~~ /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) | ^ cnmops.cpp:113:9: error: ‘Free’ was not declared in this scope; did you mean ‘free’? 113 | Free(lg); | ^~~~ | free cnmops.cpp:117:37: error: ‘mkChar’ was not declared in this scope 117 | SET_STRING_ELT(namesRET, 0, mkChar("alpha.ik")); | ^~~~~~ cnmops.cpp:128:9: error: ‘setAttrib’ was not declared in this scope; did you mean ‘Rf_setAttrib’? 128 | setAttrib(RET, R_NamesSymbol, namesRET); | ^~~~~~~~~ | Rf_setAttrib make: *** [/home/biocbuild/bbs-3.21-bioc/R/etc/Makeconf:202: cnmops.o] Error 1 ERROR: compilation failed for package ‘cn.mops’ * removing ‘/tmp/Rtmpx4jeQp/Rinst411b1832629a/cn.mops’ ----------------------------------- ERROR: package installation failed