* installing *source* package ‘AdmixPoly’ ... ** this is package ‘AdmixPoly’ version ‘1.0.0’ ** package ‘AdmixPoly’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 21.0.0 (clang-2100.1.1.101)’ using SDK: ‘MacOSX26.5.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 -DARMA_64BIT_WORD=1 -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c AdmixGlobal.cpp -o AdmixGlobal.o In file included from AdmixGlobal.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h:1: 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:791: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from AdmixGlobal.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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 AdmixGlobal.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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 AdmixGlobal.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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; | ~ ^~ In file included from AdmixGlobal.cpp:1: ./AdmixUtils.h:23:29: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 23 | if(nelem!=NULL) *nelem = v.length(); | ~ ~~^~~~~~~~ ./AdmixUtils.h:168:56: warning: implicit conversion from 'a_uint' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 168 | return std::exp(logCoeff + x * std::log(prob) + (size - x) * std::log(1 - prob)); | ~~~~~^~~ ~ ./AdmixUtils.h:168:29: warning: implicit conversion from 'const a_uint' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 168 | return std::exp(logCoeff + x * std::log(prob) + (size - x) * std::log(1 - prob)); | ^ ~ ./AdmixUtils.h:178:10: warning: implicit conversion turns floating-point number into integer: 'typename Col::elem_type' (aka 'double') to 'int' [-Wfloat-conversion] 178 | int n = arma::accu(x); //// QUESTION | ~ ^~~~~~~~~~~~~ ./AdmixUtils.h:183:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 183 | return exp(coef); | ~~~~~~ ^~~~~~~~~ ./AdmixUtils.h:196:14: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 196 | logpdf += x[i] * std::log(p[i]) - std::lgamma(x[i] + 1); | ^~~~ ~ ./AdmixUtils.h:193:10: warning: implicit conversion loses integer precision: 'typename Row::elem_type' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 193 | int n = arma::accu(x); | ~ ^~~~~~~~~~~~~ ./AdmixUtils.h:296:46: warning: implicit conversion from 'const a_uint' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 296 | for(size_t i=0; isecond; | ~ ~~~~^~~~~~ ./AdmixUtils.h:371:54: warning: implicit conversion from 'value_type' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 371 | for(a_uint i = 0; i < k; i++) result.at(row, i) = indx[i]; | ~ ^~~~~~~ ./AdmixUtils.h:393:12: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 393 | int N = x.size(); | ~ ~~^~~~~~ ./AdmixUtils.h:394:10: warning: implicit conversion loses integer precision: 'a_uint' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 394 | int M = BinomialCoefficient(N,J); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ ./AdmixUtils.h:459:30: warning: implicit conversion from 'a_uint' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 459 | } else if (Geno_m[l] != (a_uint)Geno_m[l]) { //// QUESTION | ~~ ^~~~~~~~~~~~~~~~~ AdmixGlobal.cpp:3:10: fatal error: 'omp.h' file not found 3 | #include | ^~~~~~~ 29 warnings and 1 error generated. make[1]: *** [AdmixGlobal.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 -DARMA_64BIT_WORD=1 -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c AdmixLocal.cpp -o AdmixLocal.o In file included from AdmixLocal.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h:1: 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:791: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from AdmixLocal.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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 AdmixLocal.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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 AdmixLocal.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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; | ~ ^~ In file included from AdmixLocal.cpp:1: ./AdmixUtils.h:23:29: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 23 | if(nelem!=NULL) *nelem = v.length(); | ~ ~~^~~~~~~~ ./AdmixUtils.h:168:56: warning: implicit conversion from 'a_uint' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 168 | return std::exp(logCoeff + x * std::log(prob) + (size - x) * std::log(1 - prob)); | ~~~~~^~~ ~ ./AdmixUtils.h:168:29: warning: implicit conversion from 'const a_uint' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 168 | return std::exp(logCoeff + x * std::log(prob) + (size - x) * std::log(1 - prob)); | ^ ~ ./AdmixUtils.h:178:10: warning: implicit conversion turns floating-point number into integer: 'typename Col::elem_type' (aka 'double') to 'int' [-Wfloat-conversion] 178 | int n = arma::accu(x); //// QUESTION | ~ ^~~~~~~~~~~~~ ./AdmixUtils.h:183:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 183 | return exp(coef); | ~~~~~~ ^~~~~~~~~ ./AdmixUtils.h:196:14: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 196 | logpdf += x[i] * std::log(p[i]) - std::lgamma(x[i] + 1); | ^~~~ ~ ./AdmixUtils.h:193:10: warning: implicit conversion loses integer precision: 'typename Row::elem_type' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 193 | int n = arma::accu(x); | ~ ^~~~~~~~~~~~~ ./AdmixUtils.h:296:46: warning: implicit conversion from 'const a_uint' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 296 | for(size_t i=0; isecond; | ~ ~~~~^~~~~~ ./AdmixUtils.h:371:54: warning: implicit conversion from 'value_type' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 371 | for(a_uint i = 0; i < k; i++) result.at(row, i) = indx[i]; | ~ ^~~~~~~ ./AdmixUtils.h:393:12: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 393 | int N = x.size(); | ~ ~~^~~~~~ ./AdmixUtils.h:394:10: warning: implicit conversion loses integer precision: 'a_uint' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 394 | int M = BinomialCoefficient(N,J); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ ./AdmixUtils.h:459:30: warning: implicit conversion from 'a_uint' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 459 | } else if (Geno_m[l] != (a_uint)Geno_m[l]) { //// QUESTION | ~~ ^~~~~~~~~~~~~~~~~ AdmixLocal.cpp:2:10: fatal error: 'omp.h' file not found 2 | #include | ^~~~~~~ 29 warnings and 1 error generated. make[1]: *** [AdmixLocal.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 -DARMA_64BIT_WORD=1 -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 ./AdmixPoly_types.h:1: 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:791: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from RcppExports.cpp:4: In file included from ./AdmixPoly_types.h: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 RcppExports.cpp:4: In file included from ./AdmixPoly_types.h: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 RcppExports.cpp:4: In file included from ./AdmixPoly_types.h: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; | ~ ^~ In file included from RcppExports.cpp:4: In file included from ./AdmixPoly_types.h:1: 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:68:31: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 68 | x_mem[i] = eT(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 long long') 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:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from RcppExports.cpp:4: In file included from ./AdmixPoly_types.h:1: 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:520: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_regspace.hpp:90:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 90 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start + T(i*inc) ); } | ^~ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_regspace.hpp:163:5: note: in instantiation of function template specialization 'arma::internal_regspace_var_delta' requested here 163 | internal_regspace_var_delta(x, start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_regspace.hpp:248:10: note: in instantiation of function template specialization 'arma::regspace, double>' requested here 248 | return regspace(start, delta, end); | ^ /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/fn_regspace.hpp:94:59: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'T' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 94 | for(uword i=0; i < N; ++i) { x_mem[i] = eT( start - T(i*inc) ); } | ^~ In file included from RcppExports.cpp:4: In file included from ./AdmixPoly_types.h:1: 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 long long') 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 ./AdmixPoly_types.h:1: 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:91:39: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 91 | x_mem[i] = eT(double(start) + i*delta); | ^~ In file included from RcppExports.cpp:4: In file included from ./AdmixPoly_types.h:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h:140:44: warning: implicit conversion loses integer precision: 'const uword' (aka 'const unsigned long long') to 'int' [-Wshorten-64-to-32] 140 | inline int size() const { return data.n_elem ; } | ~~~~~~ ~~~~~^~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:710:31: note: in instantiation of member function 'Rcpp::RcppArmadillo::FieldImporter>::size' requested here 710 | int size = object.size(); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:720:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_importer__impl>, arma::SpMat>' requested here 720 | return wrap_dispatch_importer__impl(object, | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:796:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_importer>, arma::SpMat>' requested here 796 | return wrap_dispatch_importer(object); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_unknown_importable>>' requested here 807 | return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); | ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap_end.h:30:25: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch>>' requested here 30 | return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; | ^ /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h:151:21: note: in instantiation of function template specialization 'Rcpp::wrap>>' requested here 151 | RObject x = wrap( RcppArmadillo::FieldImporter( data ) ) ; | ^ RcppExports.cpp:191:29: note: in instantiation of function template specialization 'Rcpp::wrap>' requested here 191 | rcpp_result_gen = Rcpp::wrap(TransProbComponents(Prop, P, MaxRec, NbThreads)); | ^ 23 warnings generated. 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 -DARMA_64BIT_WORD=1 -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ReadFile.cpp -o ReadFile.o In file included from ReadFile.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h:1: 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:791: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from ReadFile.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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 ReadFile.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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 ReadFile.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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; | ~ ^~ In file included from ReadFile.cpp:1: ./AdmixUtils.h:23:29: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 23 | if(nelem!=NULL) *nelem = v.length(); | ~ ~~^~~~~~~~ ./AdmixUtils.h:168:56: warning: implicit conversion from 'a_uint' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 168 | return std::exp(logCoeff + x * std::log(prob) + (size - x) * std::log(1 - prob)); | ~~~~~^~~ ~ ./AdmixUtils.h:168:29: warning: implicit conversion from 'const a_uint' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 168 | return std::exp(logCoeff + x * std::log(prob) + (size - x) * std::log(1 - prob)); | ^ ~ ./AdmixUtils.h:178:10: warning: implicit conversion turns floating-point number into integer: 'typename Col::elem_type' (aka 'double') to 'int' [-Wfloat-conversion] 178 | int n = arma::accu(x); //// QUESTION | ~ ^~~~~~~~~~~~~ ./AdmixUtils.h:183:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 183 | return exp(coef); | ~~~~~~ ^~~~~~~~~ ./AdmixUtils.h:196:14: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 196 | logpdf += x[i] * std::log(p[i]) - std::lgamma(x[i] + 1); | ^~~~ ~ ./AdmixUtils.h:193:10: warning: implicit conversion loses integer precision: 'typename Row::elem_type' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 193 | int n = arma::accu(x); | ~ ^~~~~~~~~~~~~ ./AdmixUtils.h:296:46: warning: implicit conversion from 'const a_uint' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 296 | for(size_t i=0; isecond; | ~ ~~~~^~~~~~ ./AdmixUtils.h:371:54: warning: implicit conversion from 'value_type' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 371 | for(a_uint i = 0; i < k; i++) result.at(row, i) = indx[i]; | ~ ^~~~~~~ ./AdmixUtils.h:393:12: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 393 | int N = x.size(); | ~ ~~^~~~~~ ./AdmixUtils.h:394:10: warning: implicit conversion loses integer precision: 'a_uint' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 394 | int M = BinomialCoefficient(N,J); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ ./AdmixUtils.h:459:30: warning: implicit conversion from 'a_uint' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 459 | } else if (Geno_m[l] != (a_uint)Geno_m[l]) { //// QUESTION | ~~ ^~~~~~~~~~~~~~~~~ ReadFile.cpp:2:10: fatal error: 'omp.h' file not found 2 | #include | ^~~~~~~ 29 warnings and 1 error generated. make[1]: *** [ReadFile.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 -DARMA_64BIT_WORD=1 -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c SimulatePop.cpp -o SimulatePop.o In file included from SimulatePop.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h:1: 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:791: /Users/ripley/R/Library/RcppArmadillo/include/armadillo_bits/op_logmat_meat.hpp:431:40: warning: implicit conversion from 'uword' (aka 'unsigned long long') to 'typename Col::pod_type' (aka 'double') may lose precision [-Wimplicit-int-float-conversion] 431 | const vec indices = regspace(1,m-1); | ~~~~~~~~ ~^~ In file included from SimulatePop.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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 SimulatePop.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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 SimulatePop.cpp:1: In file included from ./AdmixUtils.h:7: In file included from ./AdmixPoly_types.h: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; | ~ ^~ In file included from SimulatePop.cpp:1: ./AdmixUtils.h:23:29: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 23 | if(nelem!=NULL) *nelem = v.length(); | ~ ~~^~~~~~~~ ./AdmixUtils.h:168:56: warning: implicit conversion from 'a_uint' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 168 | return std::exp(logCoeff + x * std::log(prob) + (size - x) * std::log(1 - prob)); | ~~~~~^~~ ~ ./AdmixUtils.h:168:29: warning: implicit conversion from 'const a_uint' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 168 | return std::exp(logCoeff + x * std::log(prob) + (size - x) * std::log(1 - prob)); | ^ ~ ./AdmixUtils.h:178:10: warning: implicit conversion turns floating-point number into integer: 'typename Col::elem_type' (aka 'double') to 'int' [-Wfloat-conversion] 178 | int n = arma::accu(x); //// QUESTION | ~ ^~~~~~~~~~~~~ ./AdmixUtils.h:183:9: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 183 | return exp(coef); | ~~~~~~ ^~~~~~~~~ ./AdmixUtils.h:196:14: warning: implicit conversion from 'const unsigned long long' to 'double' may lose precision [-Wimplicit-int-float-conversion] 196 | logpdf += x[i] * std::log(p[i]) - std::lgamma(x[i] + 1); | ^~~~ ~ ./AdmixUtils.h:193:10: warning: implicit conversion loses integer precision: 'typename Row::elem_type' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 193 | int n = arma::accu(x); | ~ ^~~~~~~~~~~~~ ./AdmixUtils.h:296:46: warning: implicit conversion from 'const a_uint' (aka 'const unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 296 | for(size_t i=0; isecond; | ~ ~~~~^~~~~~ ./AdmixUtils.h:371:54: warning: implicit conversion from 'value_type' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 371 | for(a_uint i = 0; i < k; i++) result.at(row, i) = indx[i]; | ~ ^~~~~~~ ./AdmixUtils.h:393:12: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 393 | int N = x.size(); | ~ ~~^~~~~~ ./AdmixUtils.h:394:10: warning: implicit conversion loses integer precision: 'a_uint' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32] 394 | int M = BinomialCoefficient(N,J); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~ ./AdmixUtils.h:459:30: warning: implicit conversion from 'a_uint' (aka 'unsigned long long') to 'double' may lose precision [-Wimplicit-int-float-conversion] 459 | } else if (Geno_m[l] != (a_uint)Geno_m[l]) { //// QUESTION | ~~ ^~~~~~~~~~~~~~~~~ SimulatePop.cpp:3:10: fatal error: 'omp.h' file not found 3 | #include | ^~~~~~~ 29 warnings and 1 error generated. make[1]: *** [SimulatePop.o] Error 1 make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘AdmixPoly’ * removing ‘/Users/ripley/R/packages/tests-devel/AdmixPoly.Rcheck/AdmixPoly’