* installing *source* package ‘csvread’ ... ** package ‘csvread’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘gcc-13 (GCC) 13.2.0’ using C++ compiler: ‘g++-13 (GCC) 13.2.0’ make[2]: Entering directory '/data/gannet/ripley/R/packages/tests-noRemap/csvread/src' g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -DR_NO_REMAP -c csvread.cpp -o csvread.o In file included from csvread.cpp:35: CMRDataCollector.h: In member function 'virtual void cm::CMRDataCollectorStr::attach(SEXP)': CMRDataCollector.h:127:20: error: 'length' was not declared in this scope 127 | m_capacity = length(rvec); | ^~~~~~ CMRDataCollector.h: In member function 'virtual bool cm::CMRDataCollectorStr::append(const char*, const cm::CMRNAStrings&)': CMRDataCollector.h:141:41: error: 'mkChar' was not declared in this scope 141 | SET_STRING_ELT(m_data, m_count++, mkChar(s)); | ^~~~~~ CMRDataCollector.h: In member function 'virtual void cm::CMRDataCollectorInt::attach(SEXP)': CMRDataCollector.h:185:21: error: 'length' was not declared in this scope 185 | m_data.attach(length(rvec), INTEGER(rvec)); | ^~~~~~ CMRDataCollector.h: In member function 'virtual void cm::CMRDataCollectorDbl::attach(SEXP)': CMRDataCollector.h:254:21: error: 'length' was not declared in this scope 254 | m_data.attach(length(rvec), REAL(rvec)); | ^~~~~~ csvread.cpp: In function 'SEXPREC* getListElement(SEXP, const char*)': csvread.cpp:75:17: error: 'getAttrib' was not declared in this scope; did you mean 'Rf_getAttrib'? 75 | SEXP names = getAttrib(list, R_NamesSymbol); | ^~~~~~~~~ | Rf_getAttrib csvread.cpp:76:24: error: 'length' was not declared in this scope 76 | for (int i = 0, n = length(list); i < n; i++) | ^~~~~~ In file included from CMRDataCollector.h:34: csvread.cpp: In function 'SEXPREC* numLines(SEXP)': csvread.cpp:101:18: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 101 | PROTECT(ret = allocVector(INTSXP,1)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ csvread.cpp: In function 'SEXPREC* readCSV(SEXP)': csvread.cpp:129:9: error: 'isNewList' was not declared in this scope; did you mean 'Rf_isNewList'? 129 | if (!isNewList(rschema)) | ^~~~~~~~~ | Rf_isNewList csvread.cpp:131:7: error: 'error' was not declared in this scope; did you mean 'perror'? 131 | error("c_readCSV: expecting a list with schema as the only argument"); | ^~~~~ | perror csvread.cpp:134:33: error: 'error' was not declared in this scope; did you mean 'perror'? 134 | if (rfilename == R_NilValue) error("c_readCSV: missing 'filename' in the argument list"); | ^~~~~ | perror csvread.cpp:138:35: error: 'length' was not declared in this scope 138 | if (rcoltypes == R_NilValue || length(rcoltypes) == 0) error("c_readCSV: missing 'coltypes' in the argument list"); | ^~~~~~ csvread.cpp:138:59: error: 'error' was not declared in this scope; did you mean 'perror'? 138 | if (rcoltypes == R_NilValue || length(rcoltypes) == 0) error("c_readCSV: missing 'coltypes' in the argument list"); | ^~~~~ | perror csvread.cpp:141:36: error: 'length' was not declared in this scope 141 | if (rnastrings == R_NilValue || length(rnastrings) == 0) error("c_readCSV: missing 'na.strings' in the argument list"); | ^~~~~~ csvread.cpp:141:61: error: 'error' was not declared in this scope; did you mean 'perror'? 141 | if (rnastrings == R_NilValue || length(rnastrings) == 0) error("c_readCSV: missing 'na.strings' in the argument list"); | ^~~~~ | perror csvread.cpp:154:22: error: 'error' was not declared in this scope; did you mean 'perror'? 154 | if (nrows < 1) error("c_readCSV: 'nrows' must be positive"); | ^~~~~ | perror csvread.cpp:158:23: error: 'coerceVector' was not declared in this scope; did you mean 'Rf_coerceVector'? 158 | PROTECT(rverbose = coerceVector(rverbose, INTSXP)); | ^~~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ csvread.cpp:167:40: error: 'error' was not declared in this scope; did you mean 'perror'? 167 | if (strlen(sdelim.c_str()) != 1) error("c_readCSV: delimiter must be a single character"); | ^~~~~ | perror csvread.cpp:171:16: error: 'length' was not declared in this scope 171 | int ncols = length(rcoltypes); | ^~~~~~ csvread.cpp:188:7: error: 'error' was not declared in this scope; did you mean 'perror'? 188 | error("c_readCSV: can't open file %s.", filename.c_str()); | ^~~~~ | perror csvread.cpp:270:21: error: 'allocVector' was not declared in this scope; did you mean 'Rf_allocVector'? 270 | PROTECT(rframe = allocVector(VECSXP, ncols)); | ^~~~~~~~~~~ /data/gannet/ripley/R/R-devel/include/Rinternals.h:371:36: note: in definition of macro 'PROTECT' 371 | #define PROTECT(s) Rf_protect(s) | ^ csvread.cpp:296:33: error: 'mkChar' was not declared in this scope 296 | SET_STRING_ELT(cls, 0, mkChar("integer64")); | ^~~~~~ csvread.cpp:297:10: error: 'classgets' was not declared in this scope; did you mean 'Rf_classgets'? 297 | classgets(VECTOR_ELT(rframe, i), cls); | ^~~~~~~~~ | Rf_classgets csvread.cpp:309:33: error: 'mkChar' was not declared in this scope 309 | SET_STRING_ELT(cls, 0, mkChar("int64")); | ^~~~~~ csvread.cpp:310:10: error: 'classgets' was not declared in this scope; did you mean 'Rf_classgets'? 310 | classgets(VECTOR_ELT(rframe, i), cls); | ^~~~~~~~~ | Rf_classgets csvread.cpp:322:33: error: 'mkChar' was not declared in this scope 322 | SET_STRING_ELT(cls, 0, mkChar("int64")); | ^~~~~~ csvread.cpp:323:10: error: 'classgets' was not declared in this scope; did you mean 'Rf_classgets'? 323 | classgets(VECTOR_ELT(rframe, i), cls); | ^~~~~~~~~ | Rf_classgets csvread.cpp:329:43: error: 'install' was not declared in this scope 329 | setAttrib(VECTOR_ELT(rframe, i), install("base"), rb); | ^~~~~~~ csvread.cpp:329:10: error: 'setAttrib' was not declared in this scope; did you mean 'Rf_setAttrib'? 329 | setAttrib(VECTOR_ELT(rframe, i), install("base"), rb); | ^~~~~~~~~ | Rf_setAttrib csvread.cpp:347:10: error: 'error' was not declared in this scope; did you mean 'perror'? 347 | error("c_readCSV: unsupported column type '%s'", CHAR(STRING_ELT(rcoltypes, i))); | ^~~~~ | perror csvread.cpp:372:39: error: 'mkChar' was not declared in this scope 372 | SET_STRING_ELT(rOutColNames, i, mkChar(colnames[i].c_str())); | ^~~~~~ csvread.cpp:374:4: error: 'setAttrib' was not declared in this scope; did you mean 'Rf_setAttrib'? 374 | setAttrib(rframe, R_NamesSymbol, rOutColNames); | ^~~~~~~~~ | Rf_setAttrib csvread.cpp:391:27: error: 'mkChar' was not declared in this scope 391 | SET_STRING_ELT(cls, 0, mkChar("data.frame")); | ^~~~~~ csvread.cpp:392:4: error: 'classgets' was not declared in this scope; did you mean 'Rf_classgets'? 392 | classgets(rframe, cls); | ^~~~~~~~~ | Rf_classgets make[2]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:202: csvread.o] Error 1 make[2]: Leaving directory '/data/gannet/ripley/R/packages/tests-noRemap/csvread/src' ERROR: compilation failed for package ‘csvread’ * removing ‘/data/gannet/ripley/R/packages/tests-noRemap/Libs/csvread-lib/csvread’ Command exited with non-zero status 1 Time 0:03.15, 2.41 + 0.32