* installing *source* package ‘vostokR’ ... ** this is package ‘vostokR’ version ‘0.2.0’ ** package ‘vostokR’ successfully unpacked and MD5 sums checked ** using staged installation ** libs specified C++17 using C++ compiler: ‘Apple clang version 21.0.0 (clang-2100.0.123.102)’ using C++17 using SDK: ‘MacOSX26.4.sdk’ clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/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:35: 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:35: 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:40: /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; | ~ ^~ clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c rcpp_interface.cpp -o rcpp_interface.o In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_Memory.h:72:49: warning: implicit conversion from 'Index' (aka 'long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 72 | new_len = (std::max)(length+1,Index(alpha * length)); | ~ ^~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_Memory.h:109:53: warning: implicit conversion from 'Index' (aka 'long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 109 | new_len = (std::max)(length+1,Index(alpha * length)); | ~ ^~~~~~ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from RcppExports.cpp:5: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = 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/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/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/current/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/current/armadillo_bits/SpMat_meat.hpp:4479:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4479 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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:5: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:219:58: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 219 | Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { | ^~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:86:41: note: in instantiation of member function 'Rcpp::traits::Exporter>>::Exporter' requested here 86 | ::Rcpp::traits::Exporter exporter(x); | ^ /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:59:45: note: in instantiation of function template specialization 'Rcpp::as>>' requested here 59 | ConstInputParameter(SEXP x_) : obj( as(x_) ){} | ^ RcppExports.cpp:21:78: note: in instantiation of member function 'Rcpp::ConstInputParameter>>::ConstInputParameter' requested here 21 | Rcpp::traits::input_parameter< const Eigen::Map >::type coords(coordsSEXP); | ^ 26 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c add_normals_fast.cpp -o add_normals_fast.o In file included from rcpp_interface.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 rcpp_interface.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 rcpp_interface.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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; | ~ ^~ rcpp_interface.cpp:135:34: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 135 | thread_solpos.latitude = lat; | ~ ^~~ rcpp_interface.cpp:136:35: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 136 | thread_solpos.longitude = lon; | ~ ^~~ rcpp_interface.cpp:137:34: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 137 | thread_solpos.timezone = timezone; | ~ ^~~~~~~~ rcpp_interface.cpp:150:48: warning: implicit conversion turns floating-point number into integer: 'float' to 'int' [-Wfloat-conversion] 150 | int sunrise_minute = thread_solpos.sretr; | ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~ rcpp_interface.cpp:151:47: warning: implicit conversion turns floating-point number into integer: 'float' to 'int' [-Wfloat-conversion] 151 | int sunset_minute = thread_solpos.ssetr; | ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~ rcpp_interface.cpp:198:70: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 198 | float sunny_hours = (float)(minute_step) / 60.0; | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~ rcpp_interface.cpp:125:9: warning: unused variable 'num_threads' [-Wunused-variable] 125 | int num_threads = 1; | ^~~~~~~~~~~ rcpp_interface.cpp:211:10: warning: unused variable 'duration' [-Wunused-variable] 211 | auto duration = std::chrono::duration_cast(end_time - start_time); | ^~~~~~~~ In file included from rcpp_interface.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/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/current/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/current/armadillo_bits/SpMat_meat.hpp:4479:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4479 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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 rcpp_interface.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 138 | return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ ./pointCloud/LidrPointCloud.h:26:57: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 26 | min_vec[j] = std::min(min_vec[j], coords(i,j)); | ^ In file included from rcpp_interface.cpp:1: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 138 | return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ In file included from add_normals_fast.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:61: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from add_normals_fast.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_Memory.h:72:49: warning: implicit conversion from 'Index' (aka 'long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 72 | new_len = (std::max)(length+1,Index(alpha * length)); | ~ ^~~~~~ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_Memory.h:109:53: warning: implicit conversion from 'Index' (aka 'long') to 'float' may lose precision [-Wimplicit-int-float-conversion] 109 | new_len = (std::max)(length+1,Index(alpha * length)); | ~ ^~~~~~ In file included from add_normals_fast.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:35: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /Users/ripley/R/Library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from add_normals_fast.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:31: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from add_normals_fast.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ In file included from add_normals_fast.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: 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; | ~^ 26 warnings generated. In file included from add_normals_fast.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: 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 add_normals_fast.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:56:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 56 | d[0] = m; | ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:57:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 57 | d[1] = n; | ~ ^ add_normals_fast.cpp:32:34: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'const int' [-Wshorten-64-to-32] 32 | const int n_points = neighbors.rows(); | ~~~~~~~~ ~~~~~~~~~~^~~~~~ add_normals_fast.cpp:33:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'const int' [-Wshorten-64-to-32] 33 | const int k = neighbors.cols(); | ~ ~~~~~~~~~~^~~~~~ add_normals_fast.cpp:129:34: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'const int' [-Wshorten-64-to-32] 129 | const int n_points = neighbors.rows(); | ~~~~~~~~ ~~~~~~~~~~^~~~~~ add_normals_fast.cpp:130:27: warning: implicit conversion loses integer precision: 'Index' (aka 'long') to 'const int' [-Wshorten-64-to-32] 130 | const int k = neighbors.cols(); | ~ ~~~~~~~~~~^~~~~~ In file included from add_normals_fast.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 138 | return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ add_normals_fast.cpp:59:14: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 59 | normals(i, 0) = 0.0; | ^ In file included from add_normals_fast.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:26: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 138 | return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ 28 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ShadowCalcOptimized.cpp -o ShadowCalcOptimized.o clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c SpatialOptimizer.cpp -o SpatialOptimizer.o In file included from SpatialOptimizer.cpp:1: In file included from ./SpatialOptimizer.h:8: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 SpatialOptimizer.cpp:1: In file included from ./SpatialOptimizer.h:8: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: 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 SpatialOptimizer.cpp:1: In file included from ./SpatialOptimizer.h:8: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:40: /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 SpatialOptimizer.cpp:1: In file included from ./SpatialOptimizer.h:8: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:32: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57: In file included from /Users/ripley/R/Library/RcppArmadillo/include/current/armadillo:518: /Users/ripley/R/Library/RcppArmadillo/include/current/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/current/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/current/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/current/armadillo_bits/SpMat_meat.hpp:4479:18: note: in instantiation of function template specialization 'arma::linspace>' requested here 4479 | uvec indices = linspace( 0u, in_rows*in_cols-1, new_n_nonzero ); | ^ /Users/ripley/R/Library/RcppArmadillo/include/current/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); | ^ clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c IrradianceCalc.cpp -o IrradianceCalc.o In file included from SpatialOptimizer.cpp:1: In file included from ./SpatialOptimizer.h:8: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:141:83: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 141 | return static_cast< const Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ SpatialOptimizer.cpp:41:30: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 41 | points[i][0] = coords(i, 0); | ^ In file included from SpatialOptimizer.cpp:1: In file included from ./SpatialOptimizer.h:8: In file included from /Users/ripley/R/Library/RcppArmadillo/include/RcppArmadillo.h:35: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:141:80: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 141 | return static_cast< const Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c ShadowCalc.cpp -o ShadowCalc.o 18 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c Vec3d.cpp -o Vec3d.o ShadowCalc.cpp:12:10: fatal error: 'omp.h' file not found 12 | #include | ^~~~~~~ clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c solpos/solpos.cpp -o solpos/solpos.o 1 error generated. make[1]: *** [ShadowCalc.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c octree/Octree.cpp -o octree/Octree.o solpos/solpos.cpp:117:23: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 117 | static float degrad = 57.295779513; /* converts from radians to degrees */ | ~~~~~~ ^~~~~~~~~~~~ solpos/solpos.cpp:118:23: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 118 | static float raddeg = 0.0174532925; /* converts from degrees to radians */ | ~~~~~~ ^~~~~~~~~~~~ solpos/solpos.cpp:271:16: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 271 | pdat->sbwid = 7.6; /* Eppley shadow band width */ | ~ ^~~ solpos/solpos.cpp:272:16: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 272 | pdat->sbrad = 31.7; /* Eppley shadow band radius */ | ~ ^~~~ solpos/solpos.cpp:273:16: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 273 | pdat->sbsky = 0.04; /* Drummond factor for partly cloudy skies */ | ~ ^~~~ solpos/solpos.cpp:419:44: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 419 | pdat->dayang = 360.0 * (pdat->daynum - 1) / 365.0; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ solpos/solpos.cpp:426:11: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 426 | d2 = 2.0 * pdat->dayang; | ~ ~~~~^~~~~~~~~~~~~~ solpos/solpos.cpp:430:39: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 430 | pdat->erv = 1.000110 + 0.034221 * cd + 0.001280 * sd; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ solpos/solpos.cpp:431:29: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 431 | pdat->erv += 0.000719 * c2 + 0.000077 * s2; | ~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ solpos/solpos.cpp:437:73: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 437 | pdat->utime = pdat->hour * 3600.0 + pdat->minute * 60.0 + pdat->second - (float) pdat->interval / 2.0; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:438:37: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 438 | pdat->utime = pdat->utime / 3600.0 - pdat->timezone; | ~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ solpos/solpos.cpp:447:21: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion] 447 | delta = pdat->year - 1949; | ~ ~~~~~~~~~~~^~~~~~ solpos/solpos.cpp:449:63: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 449 | pdat->julday = 32916.5 + delta * 365.0 + leap + pdat->daynum + pdat->utime / 24.0; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:456:30: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 456 | pdat->ectime = pdat->julday - 51545.0; | ~ ~~~~~~~~~~~~~^~~~~~~~~ solpos/solpos.cpp:462:25: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 462 | pdat->mnlong = 280.460 + 0.9856474 * pdat->ectime; | ~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:465:24: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 465 | pdat->mnlong -= 360.0 * (int) (pdat->mnlong / 360.0); | ~~ ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:467:19: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 467 | pdat->mnlong += 360.0; | ~~ ^~~~~ solpos/solpos.cpp:473:25: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 473 | pdat->mnanom = 357.528 + 0.9856003 * pdat->ectime; | ~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:476:24: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 476 | pdat->mnanom -= 360.0 * (int) (pdat->mnanom / 360.0); | ~~ ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:478:19: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 478 | pdat->mnanom += 360.0; | ~~ ^~~~~ solpos/solpos.cpp:484:67: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 484 | pdat->eclong = pdat->mnlong + 1.915 * sin(pdat->mnanom * raddeg) + 0.020 * sin(2.0 * pdat->mnanom * raddeg); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:487:24: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 487 | pdat->eclong -= 360.0 * (int) (pdat->eclong / 360.0); | ~~ ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:489:19: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 489 | pdat->eclong += 360.0; | ~~ ^~~~~ solpos/solpos.cpp:498:24: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 498 | pdat->ecobli = 23.439 - 4.0e-07 * pdat->ectime; | ~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:517:19: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 517 | pdat->rascen += 360.0; | ~~ ^~~~~ solpos/solpos.cpp:523:54: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 523 | pdat->gmst = 6.697375 + 0.0657098242 * pdat->ectime + pdat->utime; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ solpos/solpos.cpp:526:21: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 526 | pdat->gmst -= 24.0 * (int) (pdat->gmst / 24.0); | ~~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:528:17: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 528 | pdat->gmst += 24.0; | ~~ ^~~~ solpos/solpos.cpp:534:33: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 534 | pdat->lmst = pdat->gmst * 15.0 + pdat->longitude; | ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ solpos/solpos.cpp:537:22: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 537 | pdat->lmst -= 360.0 * (int) (pdat->lmst / 360.0); | ~~ ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:539:17: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 539 | pdat->lmst += 360.0; | ~~ ^~~~~ solpos/solpos.cpp:549:18: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 549 | pdat->hrang += 360.0; | ~~ ^~~~~ solpos/solpos.cpp:551:18: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 551 | pdat->hrang -= 360.0; | ~~ ^~~~~ solpos/solpos.cpp:581:23: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 581 | pdat->elevetr = 90.0 - pdat->zenetr; | ~ ~~~~~^~~~~~~~~~~~~~ solpos/solpos.cpp:625:44: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 625 | p = 0.6366198 * pdat->sbwid / pdat->sbrad * pow(tdat->cd, 3); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:628:27: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 628 | pdat->sbcf = pdat->sbsky + 1.0 / (1.0 - p * (t1 + t2)); | ~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:641:36: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 641 | pdat->tst = (180.0 + pdat->hrang) * 4.0; | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~ solpos/solpos.cpp:643:4: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 642 | pdat->tstfix = pdat->tst - (float) pdat->hour * 60.0 - pdat->minute - (float) pdat->second / 60.0 | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 643 | + (float) pdat->interval / 120.0; /* add back half of the interval */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:647:19: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 647 | pdat->tstfix -= 1440.0; | ~~ ^~~~~~ solpos/solpos.cpp:649:19: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 649 | pdat->tstfix += 1440.0; | ~~ ^~~~~~ solpos/solpos.cpp:651:54: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 651 | pdat->eqntim = pdat->tstfix + 60.0 * pdat->timezone - 4.0 * pdat->longitude; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:668:42: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 668 | pdat->sretr = 720.0 - 4.0 * pdat->ssha - pdat->tstfix; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ solpos/solpos.cpp:669:42: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 669 | pdat->ssetr = 720.0 + 4.0 * pdat->ssha - pdat->tstfix; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ solpos/solpos.cpp:699:22: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 699 | pdat->azim = 180.0 - acos(ca) * degrad; | ~ ~~~~~~^~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:701:23: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 701 | pdat->azim = 360.0 - pdat->azim; | ~ ~~~~~~^~~~~~~~~~~~ solpos/solpos.cpp:727:55: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 727 | refcor = 58.1 / tanelev - 0.07 / (pow(tanelev, 3)) + 0.000086 / (pow(tanelev, 5)); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:730:6: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 729 | refcor = 1735.0 | ~ ~~~~~~ 730 | + pdat->elevetr | ^~~~~~~~~~~~~~~ 731 | * (-518.2 + pdat->elevetr * (103.4 + pdat->elevetr * (-12.79 + pdat->elevetr * 0.711))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:733:21: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 733 | refcor = -20.774 / tanelev; | ~ ~~~~~~~~^~~~~~~~~ solpos/solpos.cpp:735:36: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 735 | prestemp = (pdat->press * 283.0) / (1013.0 * (273.0 + pdat->temp)); | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:736:22: warning: implicit conversion when assigning computation result loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 736 | refcor *= prestemp / 3600.0; | ~~ ~~~~~~~~~^~~~~~~~ solpos/solpos.cpp:747:22: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 747 | pdat->zenref = 90.0 - pdat->elevref; | ~ ~~~~~^~~~~~~~~~~~~~~ solpos/solpos.cpp:764:21: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 764 | pdat->amass = 1.0 / (cos(raddeg * pdat->zenref) + 0.50572 * pow((96.07995 - pdat->zenref), -1.6364)); | ~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ solpos/solpos.cpp:766:45: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 766 | pdat->ampress = pdat->amass * pdat->press / 1013.0; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ solpos/solpos.cpp:781:64: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 781 | pdat->unprime = 1.031 * exp(-1.4 / (0.9 + 9.4 / pdat->amass)) + 0.1; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ solpos/solpos.cpp:782:20: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 782 | pdat->prime = 1.0 / pdat->unprime; | ~ ~~~~^~~~~~~~~~~~~~~ 55 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c octree/OctreeNode.cpp -o octree/OctreeNode.o clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c octree/OctreeNodeInfo.cpp -o octree/OctreeNodeInfo.o In file included from octree/Octree.cpp:11: 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 octree/Octree.cpp:11: 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; | ~ ^ clang++ -mmacos-version-min=26 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -Ioctree -Isolpos -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppArmadillo/include' -I'/Users/ripley/R/Library/RcppEigen/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c pointCloud/AbstractPointCloud.cpp -o pointCloud/AbstractPointCloud.o 13 warnings generated. make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘vostokR’ * removing ‘/Users/ripley/R/packages/tests-devel/vostokR.Rcheck/vostokR’