* installing *source* package ‘phreeqc’ ... ** using staged installation ** libs using C compiler: ‘Debian clang version 19.1.3 (2)’ using C++ compiler: ‘Debian clang version 19.1.3 (2)’ clang++-19 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-19/include" -DNDEBUG -I. -Iphreeqcpp -DNDEBUG -DR_SO -DSWIG_SHARED_OBJ -DNO_UTF8_ENCODING -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c CSelectedOutput.cpp -o CSelectedOutput.o clang++-19 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-19/include" -DNDEBUG -I. -Iphreeqcpp -DNDEBUG -DR_SO -DSWIG_SHARED_OBJ -DNO_UTF8_ENCODING -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c IPhreeqcLib.cpp -o IPhreeqcLib.o IPhreeqcLib.cpp:716:20: warning: unused variable 'err_msg' [-Wunused-variable] 716 | static const char err_msg[] = "OutputAccumulatedLines: Invalid instance id.\n"; | ^~~~~~~ IPhreeqcLib.cpp:731:20: warning: unused variable 'err_msg' [-Wunused-variable] 731 | static const char err_msg[] = "OutputErrorString: Invalid instance id.\n"; | ^~~~~~~ IPhreeqcLib.cpp:746:20: warning: unused variable 'err_msg' [-Wunused-variable] 746 | static const char err_msg[] = "OutputWarningString: Invalid instance id.\n"; | ^~~~~~~ 3 warnings generated. clang++-19 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-19/include" -DNDEBUG -I. -Iphreeqcpp -DNDEBUG -DR_SO -DSWIG_SHARED_OBJ -DNO_UTF8_ENCODING -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c IPhreeqc.cpp -o IPhreeqc.o clang++-19 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-19/include" -DNDEBUG -I. -Iphreeqcpp -DNDEBUG -DR_SO -DSWIG_SHARED_OBJ -DNO_UTF8_ENCODING -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c R.cpp -o R.o R.cpp:33:8: error: use of undeclared identifier 'isString' 33 | if (!isString(line) || length(line) != 1 || STRING_ELT(line, 0) == NA_STRING) { | ^ R.cpp:33:26: error: use of undeclared identifier 'length' 33 | if (!isString(line) || length(line) != 1 || STRING_ELT(line, 0) == NA_STRING) { | ^ R.cpp:34:5: error: use of undeclared identifier 'error' 34 | error("AccumulateLine:line is not a single string\n"); | ^ R.cpp:40:7: error: use of undeclared identifier 'error' 40 | error(R::singleton().GetErrorString()); | ^ R.cpp:53:8: error: use of undeclared identifier 'isString' 53 | if (!isString(line)) { | ^ R.cpp:54:5: error: use of undeclared identifier 'error' 54 | error("a character vector argument expected"); | ^ R.cpp:57:11: error: use of undeclared identifier 'length' 57 | int n = length(line); | ^ R.cpp:64:9: error: use of undeclared identifier 'error' 64 | error(R::singleton().GetErrorString()); | ^ R.cpp:93:19: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 93 | PROTECT(ans = allocVector(STRSXP, lines.size())); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-19/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-19/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ R.cpp:96:30: error: use of undeclared identifier 'mkChar' 96 | SET_STRING_ELT(ans, i, mkChar(lines[i].c_str())); | ^ R.cpp:135:19: error: use of undeclared identifier 'allocVector'; did you mean 'Rf_allocVector'? 135 | PROTECT(ans = allocVector(STRSXP, rows-1)); | ^~~~~~~~~~~ | Rf_allocVector /home/hornik/tmp/R-d-clang-19/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ /home/hornik/tmp/R-d-clang-19/include/Rinternals.h:1078:10: note: 'Rf_allocVector' declared here 1078 | SEXP Rf_allocVector(SEXPTYPE, R_xlen_t); | ^ R.cpp:141:34: error: use of undeclared identifier 'mkChar' 141 | SET_STRING_ELT(ans, r-1, mkChar("")); | ^ R.cpp:145:55: error: use of undeclared identifier 'mkChar' 145 | case VR_OK: SET_STRING_ELT(ans, r-1, mkChar("VR_OK")); break; | ^ R.cpp:146:55: error: use of undeclared identifier 'mkChar' 146 | case VR_OUTOFMEMORY: SET_STRING_ELT(ans, r-1, mkChar("VR_OUTOFMEMORY")); break; | ^ R.cpp:147:55: error: use of undeclared identifier 'mkChar' 147 | case VR_BADVARTYPE: SET_STRING_ELT(ans, r-1, mkChar("VR_BADVARTYPE")); break; | ^ R.cpp:148:55: error: use of undeclared identifier 'mkChar' 148 | case VR_INVALIDARG: SET_STRING_ELT(ans, r-1, mkChar("VR_INVALIDARG")); break; | ^ R.cpp:149:55: error: use of undeclared identifier 'mkChar' 149 | case VR_INVALIDROW: SET_STRING_ELT(ans, r-1, mkChar("VR_INVALIDROW")); break; | ^ R.cpp:150:55: error: use of undeclared identifier 'mkChar' 150 | case VR_INVALIDCOL: SET_STRING_ELT(ans, r-1, mkChar("VR_INVALIDCOL")); break; | ^ R.cpp:159:34: error: use of undeclared identifier 'mkChar' 159 | SET_STRING_ELT(ans, r-1, mkChar(buffer)); | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [/home/hornik/tmp/R-d-clang-19/etc/Makeconf:202: R.o] Error 1 ERROR: compilation failed for package ‘phreeqc’ * removing ‘/srv/hornik/tmp/CRAN_pretest/phreeqc.Rcheck/phreeqc’