* installing *source* package ‘KMT’ ... ** this is package ‘KMT’ version ‘1.0.0’ ** package ‘KMT’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 21.0.0 (clang-2100.0.123.102)’ using SDK: ‘MacOSX26.4.1.sdk’ clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c FuncLib.cpp -o FuncLib.o In file included from FuncLib.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ In file included from FuncLib.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ In file included from FuncLib.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | j[ie] = cp; | ~ ^~ FuncLib.cpp:17:10: fatal error: 'omp.h' file not found 17 | #include | ^~~~~~~ 14 warnings and 1 error generated. make[1]: *** [FuncLib.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:79: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/sugar.h:31: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/functions.h:63: /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:38:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 38 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:44:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 44 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:68:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 68 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:69:15: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 69 | si /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:77:20: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 77 | s += t/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:78:22: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 78 | si += ti/n; | ~^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:104:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 104 | s /= n; // no overflow correction needed for logical vectors | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:122:14: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 122 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/sugar/functions/mean.h:128:16: warning: implicit conversion from 'R_xlen_t' (aka 'long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 128 | s += t/n; | ~^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:93: /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:399:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 399 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:407:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 407 | s += t / n; | ~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:426:14: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 426 | s /= n; | ~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/algorithm.h:435:22: warning: implicit conversion from 'std::size_t' (aka 'unsigned long') to 'long double' may lose precision [-Wimplicit-int-float-conversion] 435 | s += t / n; | ~ ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:37: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloSugar.h:45:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] 45 | j[ie] = cp; | ~ ^~ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51: In file included from /Users/ripley/R/Library/RcppArmadillo/include/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:109:10: note: in instantiation of function template specialization 'arma::linspace>' requested here 109 | return linspace(start, end, num); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_misc.hpp:80:38: warning: implicit conversion from 'uword' (aka 'unsigned int') to 'float' may lose precision [-Wimplicit-int-float-conversion] 80 | x_mem[i] = eT(float(start) + i*delta); | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/SpMat_meat.hpp:4487:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4487 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_sprandn.hpp:83:7: note: in instantiation of member function 'arma::SpMat::sprandn' requested here 83 | out.sprandn(n_rows, n_cols, density); | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:36: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:613:94: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 613 | ArmaVec_InputParameter( SEXP x_ ) : v(x_), vec( reinterpret_cast( v.begin() ), v.size(), false ){} | ~~~ ~~^~~~~~ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:648:5: note: in instantiation of member function 'Rcpp::ArmaVec_InputParameter, arma::Col &>::ArmaVec_InputParameter' requested here 648 | MAKE_INPUT_PARAMETER(ReferenceInputParameter , arma::Col, arma::Col& ) | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:644:27: note: expanded from macro 'MAKE_INPUT_PARAMETER' 644 | INPUT_TYPE( SEXP x) : ArmaVec_InputParameter(x){} \ | ^ RcppExports.cpp:21:55: note: in instantiation of member function 'Rcpp::ReferenceInputParameter>::ReferenceInputParameter' requested here 21 | Rcpp::traits::input_parameter< arma::vec& >::type Normed_X(Normed_XSEXP); | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:167: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:112:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | res[i] = start[i] ; | ~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:130:4: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing__impl, double>' requested here 130 | export_indexing__impl( | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:153:4: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing__dispatch, double>' requested here 153 | export_indexing__dispatch( | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/Exporter.h:64:35: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing, double>' requested here 64 | ::Rcpp::internal::export_indexing( object, result ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:88:29: note: in instantiation of member function 'Rcpp::traits::IndexingExporter, double>::get' requested here 88 | return exporter.get(); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:151:26: note: in instantiation of function template specialization 'Rcpp::internal::as>' requested here 151 | return internal::as(x, typename traits::r_type_traits::r_category()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/InputParameter.h:34:38: note: in instantiation of function template specialization 'Rcpp::as>' requested here 34 | inline operator T() { return as(x) ; } | ^ RcppExports.cpp:45:44: note: in instantiation of member function 'Rcpp::InputParameter>::operator Col' requested here 45 | rcpp_result_gen = Rcpp::wrap(GetUnzVec(Normed_X, strDistr, xVec, SMat, VMat, ReVec, nNum, sighat)); | ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:167: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:112:9: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'uword' (aka 'unsigned int') [-Wshorten-64-to-32] 112 | res[i] = start[i] ; | ~~~ ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:130:4: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing__impl, double>' requested here 130 | export_indexing__impl( | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/export.h:153:4: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing__dispatch, double>' requested here 153 | export_indexing__dispatch( | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/Exporter.h:86:35: note: in instantiation of function template specialization 'Rcpp::internal::export_indexing, double>' requested here 86 | ::Rcpp::internal::export_indexing( object, result ) ; | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:88:29: note: in instantiation of member function 'Rcpp::traits::MatrixExporter, double>::get' requested here 88 | return exporter.get(); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:151:26: note: in instantiation of function template specialization 'Rcpp::internal::as>' requested here 151 | return internal::as(x, typename traits::r_type_traits::r_category()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/InputParameter.h:34:38: note: in instantiation of function template specialization 'Rcpp::as>' requested here 34 | inline operator T() { return as(x) ; } | ^ RcppExports.cpp:45:70: note: in instantiation of member function 'Rcpp::InputParameter>::operator Mat' requested here 45 | rcpp_result_gen = Rcpp::wrap(GetUnzVec(Normed_X, strDistr, xVec, SMat, VMat, ReVec, nNum, sighat)); | ^ 19 warnings generated. make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘KMT’ * removing ‘/Users/ripley/R/packages/tests-devel/KMT.Rcheck/KMT’