* installing *source* package ‘calipeRmatching’ ... ** using staged installation ** libs using C compiler: ‘Debian clang version 16.0.6 (16)’ using C++ compiler: ‘Debian clang version 16.0.6 (16)’ clang++-16 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-16/include" -DNDEBUG -I../inst/include -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c RcppExports.cpp -o RcppExports.o clang++-16 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-16/include" -DNDEBUG -I../inst/include -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c calipeRmatching.cpp -o calipeRmatching.o calipeRmatching.cpp:364:13: warning: unused variable '_propscore' [-Wunused-variable] vector *_propscore = vector_alloc(n); ^ 1 warning generated. clang-16 -I"/home/hornik/tmp/R-d-clang-16/include" -DNDEBUG -I../inst/include -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c cm.c -o cm.o cm.c:51:9: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] fnc_ptr propscore_g[cm_number_of_modeltypes] = {[logit] = propscore_g_logit, [probit] = propscore_g_probit}; ^ cm.c:52:9: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] fnc_ptr propscore_ginv[cm_number_of_modeltypes] = {[logit] = propscore_ginv_logit, [probit] = propscore_ginv_probit}; ^ cm.c:53:9: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] fnc_ptr propscore_gderiv[cm_number_of_modeltypes] = {[logit] = propscore_gderiv_logit, [probit] = propscore_gderiv_probit}; ^ cm.c:54:9: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant] fnc_ptr propscore_ginvderiv[cm_number_of_modeltypes] = {[logit] = propscore_ginvderiv_logit, [probit] = propscore_ginvderiv_probit}; ^ cm.c:172:12: warning: variable 'x' set but not used [-Wunused-but-set-variable] double x, y; ^ cm.c:172:15: warning: variable 'y' set but not used [-Wunused-but-set-variable] double x, y; ^ cm.c:241:9: warning: variable 'cond1' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:241:16: warning: unused variable 'cond2' [-Wunused-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:241:23: warning: unused variable 'cond3' [-Wunused-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:241:30: warning: variable 'cond4' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:241:37: warning: variable 'condv1' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:241:45: warning: variable 'condv2' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:241:53: warning: variable 'condv3' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:241:61: warning: variable 'condv4' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:300:5: error: call to undeclared function 'qsort_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] qsort_r(sort_index, v->size, sizeof(sort_index[0]), (void *)v, vector_sort_index_compare); ^ cm.c:300:5: note: did you mean 'qsort'? /usr/include/stdlib.h:851:13: note: 'qsort' declared here extern void qsort (void *__base, size_t __nmemb, size_t __size, ^ cm.c:306:9: warning: variable 'cond1' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:306:16: warning: unused variable 'cond2' [-Wunused-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:306:23: warning: unused variable 'cond3' [-Wunused-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:306:30: warning: variable 'cond4' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:306:37: warning: variable 'condv1' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:306:45: warning: variable 'condv2' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:306:53: warning: variable 'condv3' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:306:61: warning: variable 'condv4' set but not used [-Wunused-but-set-variable] int cond1, cond2, cond3, cond4, condv1, condv2, condv3, condv4; ^ cm.c:550:9: warning: variable 'ret_code' set but not used [-Wunused-but-set-variable] int ret_code; ^ cm.c:551:9: warning: variable 'err_code' set but not used [-Wunused-but-set-variable] int err_code = CMModel_ERROR_DIMENSIONMISMATCH; ^ cm.c:1367:9: warning: variable 'ret_code' set but not used [-Wunused-but-set-variable] int ret_code; ^ cm.c:1368:9: warning: variable 'err_code' set but not used [-Wunused-but-set-variable] int err_code = CMModelKnownPropscore_ERROR_DIMENSIONMISMATCH; ^ cm.c:1893:13: warning: unused variable 'result' [-Wunused-variable] vector *result = cm_compute_singleindex_score(x, theta); ^ cm.c:1914:15: warning: unused variable 'i' [-Wunused-variable] size_t n, i; ^ cm.c:2065:13: warning: variable 'result_code' set but not used [-Wunused-but-set-variable] int result_code; ^ cm.c:2380:12: warning: variable 'ate_hat' set but not used [-Wunused-but-set-variable] double ate_hat, att_hat; ^ cm.c:2380:21: warning: variable 'att_hat' set but not used [-Wunused-but-set-variable] double ate_hat, att_hat; ^ cm.c:2676:13: warning: variable 'result_code' set but not used [-Wunused-but-set-variable] int result_code; ^ cm.c:2776:13: warning: variable 'result' set but not used [-Wunused-but-set-variable] double *result = cm_compute_var_estpi(q_d0, q_d0_treated, q_d1, q_d1_treated, fisher_info); ^ cm.c:2840:14: warning: variable 'g' set but not used [-Wunused-but-set-variable] double (*g)(double); ^ cm.c:3099:14: warning: variable 'g' set but not used [-Wunused-but-set-variable] double (*g)(double); ^ cm.c:3254:15: warning: unused variable 'i' [-Wunused-variable] size_t n, i, k, j; ^ cm.c:3260:12: warning: unused variable 'y_i' [-Wunused-variable] double y_i, score_i, propscore_i, x_ij; ^ cm.c:3711:13: warning: variable 'result_code' set but not used [-Wunused-but-set-variable] int result_code; ^ cm.c:3877:13: warning: variable 'result_code' set but not used [-Wunused-but-set-variable] int result_code; ^ cm.c:3871:9: warning: unused variable 'n_treated' [-Wunused-variable] int n_treated = vector_short_sum(d); ^ cm.c:3930:12: warning: variable 'maxmin' set but not used [-Wunused-but-set-variable] double maxmin; ^ 41 warnings and 1 error generated. make: *** [/home/hornik/tmp/R-d-clang-16/etc/Makeconf:191: cm.o] Error 1 ERROR: compilation failed for package ‘calipeRmatching’ * removing ‘/srv/hornik/tmp/CRAN/calipeRmatching.Rcheck/calipeRmatching’