* installing *source* package ‘hdtg’ ... ** package ‘hdtg’ successfully unpacked and MD5 sums checked ** using staged installation configure: creating ./config.status config.status: creating src/Makevars ** libs using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’ using C++14 using SDK: ‘MacOSX13.3.sdk’ The name of the shared library to be created is: hdtg.so clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/RcppXsimd/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppHarmonic.cpp -o RcppHarmonic.o In file included from RcppHarmonic.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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:540: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:2: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/LU:47: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:12: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Jacobi:29: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:15: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Householder:27: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:5: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SVD:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:6: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Geometry:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:7: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Eigenvalues:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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/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] Index count = 0; ^ In file included from RcppHarmonic.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/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:66: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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/Eigen/Sparse:27: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/OrderingMethods:71: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:33: /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] 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] Index nsuper_et = 0; // Number of relaxed snodes in the original etree ^ In file included from RcppHarmonic.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/Eigen/Sparse:32: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseQR:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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/Eigen/Sparse:33: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:46: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:32: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/CholmodSupport:45: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:35: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/KroneckerProduct:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:39: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/Polynomials:135: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.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:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:44: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:239:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] int count = 0; ^ In file included from RcppHarmonic.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:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:51: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppHarmonic.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:39:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] dd[0] = dd[1] = f->n; ~ ~~~^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:48:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] tt[4] = f->maxcsize; tt[5] = f->maxesize; ~ ~~~^~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:48:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] tt[4] = f->maxcsize; tt[5] = f->maxesize; ~ ~~~^~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:101:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[0] = m; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:102:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[1] = n; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:101:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[0] = m; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:138:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:155:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here return eigen_wrap_is_plain( obj, ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here return ::Rcpp::RcppEigen::eigen_wrap(object); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); ^ /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 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: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:525:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch__isArgument>>' requested here replace_element__dispatch__isArgument( typename traits::same_type(), it, names, index, u ) ; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:514:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch>>' requested here replace_element__dispatch( typename traits::is_named::type(), ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/generated/Vector__create.h:183:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element>>' requested here replace_element( it, names, index, t1 ) ; ++it; ++index ; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/generated/Vector__create.h:152:10: note: in instantiation of function template specialization 'Rcpp::Vector<19>::create__dispatch>, Rcpp::traits::named_object, const Eigen::Array>, Eigen::internal::member_sum, 1>>, Rcpp::traits::named_object, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>>' requested here return create__dispatch( typename traits::integral_constant::create>, Rcpp::traits::named_object, const Eigen::Array>, Eigen::internal::member_sum, 1>>, Rcpp::traits::named_object, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>>' requested here return Rcpp::List::create( ^ In file included from RcppHarmonic.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:102:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[1] = n; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:101:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[0] = m; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:138:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:144:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here return eigen_wrap_is_plain( obj.eval(), Rcpp::traits::true_type() ) ; ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:155:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain, const Eigen::Array>, Eigen::internal::member_sum, 1>>' requested here return eigen_wrap_is_plain( obj, ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap, const Eigen::Array>, Eigen::internal::member_sum, 1>>' requested here return ::Rcpp::RcppEigen::eigen_wrap(object); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen, const Eigen::Array>, Eigen::internal::member_sum, 1>>' requested here return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:525:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch__isArgument, const Eigen::Array>, Eigen::internal::member_sum, 1>>>' requested here replace_element__dispatch__isArgument( typename traits::same_type(), it, names, index, u ) ; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:514:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch, const Eigen::Array>, Eigen::internal::member_sum, 1>>>' requested here replace_element__dispatch( typename traits::is_named::type(), ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/generated/Vector__create.h:184:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element, const Eigen::Array>, Eigen::internal::member_sum, 1>>>' requested here replace_element( it, names, index, t2 ) ; ++it; ++index ; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/generated/Vector__create.h:152:10: note: in instantiation of function template specialization 'Rcpp::Vector<19>::create__dispatch>, Rcpp::traits::named_object, const Eigen::Array>, Eigen::internal::member_sum, 1>>, Rcpp::traits::named_object, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>>' requested here return create__dispatch( typename traits::integral_constant::create>, Rcpp::traits::named_object, const Eigen::Array>, Eigen::internal::member_sum, 1>>, Rcpp::traits::named_object, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>>' requested here return Rcpp::List::create( ^ In file included from RcppHarmonic.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:102:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[1] = n; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:101:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[0] = m; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:138:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:144:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here return eigen_wrap_is_plain( obj.eval(), Rcpp::traits::true_type() ) ; ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:155:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>' requested here return eigen_wrap_is_plain( obj, ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>' requested here return ::Rcpp::RcppEigen::eigen_wrap(object); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>' requested here return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:807:20: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) return wrap_dispatch_unknown_importable(object, typename ::Rcpp::traits::is_importer::type()); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:525:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch__isArgument, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>>' requested here replace_element__dispatch__isArgument( typename traits::same_type(), it, names, index, u ) ; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Vector.h:514:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element__dispatch, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>>' requested here replace_element__dispatch( typename traits::is_named::type(), ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/generated/Vector__create.h:185:9: note: in instantiation of function template specialization 'Rcpp::Vector<19>::replace_element, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>>' requested here replace_element( it, names, index, t3 ) ; ++it; ++index ; ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/generated/Vector__create.h:152:10: note: in instantiation of function template specialization 'Rcpp::Vector<19>::create__dispatch>, Rcpp::traits::named_object, const Eigen::Array>, Eigen::internal::member_sum, 1>>, Rcpp::traits::named_object, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>>' requested here return create__dispatch( typename traits::integral_constant::create>, Rcpp::traits::named_object, const Eigen::Array>, Eigen::internal::member_sum, 1>>, Rcpp::traits::named_object, const Eigen::Map, 0>, const Eigen::Product, 0>, Eigen::Map, 0>, 0>>>>' requested here return Rcpp::List::create( ^ In file included from RcppHarmonic.cpp:1: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:102:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[1] = n; ~ ^ 33 warnings generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/RcppXsimd/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppZigZag.cpp -o RcppZigZag.o In file included from RcppZigZag.cpp:8: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:36:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] return value; ~~~~~~ ^~~~~ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:33: ./MemoryManagement.h:52:28: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] *destination = *begin; ~ ^~~~~~ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:34: In file included from ./Simd.h:8: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/xsimd.hpp:14: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_traits.hpp:15: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_types_include.hpp:53: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_conversion.hpp:13: /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_float.hpp:279:5: warning: all paths through this function will call itself [-Winfinite-recursion] { ^ /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_float.hpp:305:5: warning: all paths through this function will call itself [-Winfinite-recursion] { ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:34: In file included from ./Simd.h:8: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/xsimd.hpp:14: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_traits.hpp:15: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_types_include.hpp:53: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_conversion.hpp:15: /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_int64.hpp:183:5: warning: all paths through this function will call itself [-Winfinite-recursion] { ^ /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_int64.hpp:484:40: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] return detail::shift_left(lhs, rhs); ~~~~~~ ^~~ /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_int64.hpp:489:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] return detail::shift_right(lhs, rhs); ~~~~~~ ^~~ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:34: In file included from ./Simd.h:8: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/xsimd.hpp:14: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_traits.hpp:15: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_types_include.hpp:66: /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_uint64.hpp:186:5: warning: all paths through this function will call itself [-Winfinite-recursion] { ^ /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_uint64.hpp:507:40: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] return detail::shift_left(lhs, rhs); ~~~~~~ ^~~ /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_uint64.hpp:512:41: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] return detail::shift_right(lhs, rhs); ~~~~~~ ^~~ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:34: In file included from ./Simd.h:8: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/xsimd.hpp:14: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_traits.hpp:15: In file included from /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_types_include.hpp:67: /Users/ripley/R/Library/RcppXsimd/include/xsimd/types/xsimd_neon_complex.hpp:157:5: warning: all paths through this function will call itself [-Winfinite-recursion] { ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:34: In file included from ./Simd.h:12: ./sse2neon.h:94:13: warning: unknown pragma ignored [-Wunknown-pragmas] #pragma GCC push_options ^ ./sse2neon.h:95:13: warning: unknown pragma ignored [-Wunknown-pragmas] #pragma GCC target("+simd") ^ ./sse2neon.h:446:12: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] return vgetq_lane_s64( ~~~~~~ ^~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/lib/clang/14.0.3/include/arm_neon.h:7832:50: note: expanded from macro 'vgetq_lane_s64' #define vgetq_lane_s64(__p0, __p1) __extension__ ({ \ ^~~~ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:34: In file included from ./Simd.h:12: ./sse2neon.h:1156:12: warning: variable 'a' is uninitialized when used here [-Wuninitialized] return a; ^ ./sse2neon.h:1155:5: note: variable 'a' is declared here __m128 a; ^ ./sse2neon.h:2044:59: warning: implicit conversion loses integer precision: 'int' to 'int16_t' (aka 'short') [-Wimplicit-int-conversion] return (__m128i) vshlq_s16((int16x8_t) a, vdupq_n_s16(-count)); ~~~~~~~~~~~ ^~~~~~ ./sse2neon.h:5259:73: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int16_t' (aka 'short') [-Wimplicit-int-conversion] return vreinterpretq_m128i_s16(vshlq_s16((int16x8_t) a, vdupq_n_s16(-c))); ~~~~~~~~~~~ ^~ ./sse2neon.h:193:58: note: expanded from macro 'vreinterpretq_m128i_s16' #define vreinterpretq_m128i_s16(x) vreinterpretq_s64_s16(x) ^ ./sse2neon.h:5276:73: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'int32_t' (aka 'int') [-Wshorten-64-to-32] return vreinterpretq_m128i_s32(vshlq_s32((int32x4_t) a, vdupq_n_s32(-c))); ~~~~~~~~~~~ ^~ ./sse2neon.h:194:58: note: expanded from macro 'vreinterpretq_m128i_s32' #define vreinterpretq_m128i_s32(x) vreinterpretq_s64_s32(x) ^ ./sse2neon.h:6299:13: warning: unknown pragma ignored [-Wunknown-pragmas] #pragma GCC pop_options ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:540: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:2: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/LU:47: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:12: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Jacobi:29: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:15: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Householder:27: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:5: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SVD:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:6: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Geometry:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppZigZag.cpp:10: In file included from ./ZigZag.h:37: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:7: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Eigenvalues:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppZigZag.cpp:11: In file included from ./NoUTurn.h:30: ./NutsTreeState.h:39:70: warning: implicit conversion loses integer precision: 'tcb::span::index_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] dim(position.size()), ~~~~~~~~~~^~~~~~ RcppZigZag.cpp:160:61: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] auto nuts = new NutsWrapper(nuts::dispatchNuts(100, 10, seed, TRUE, stepSize, ptr)); ~~~~ ^~~~ In file included from RcppZigZag.cpp:8: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:36:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] return value; ~~~~~~ ^~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TBB.h:194:23: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here int stackSize = resolveValue("RCPP_PARALLEL_STACK_SIZE", 0, 0); ^ In file included from RcppZigZag.cpp:8: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:17:14: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] return requestedValue; ~~~~~~ ^~~~~~~~~~~~~~ /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:37:16: note: in instantiation of function template specialization 'RcppParallel::resolveValue' requested here grainSize = resolveValue("RCPP_PARALLEL_GRAIN_SIZE", grainSize, 1u); ^ In file included from RcppZigZag.cpp:8: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel.h:6: In file included from /Users/ripley/R/Library/RcppParallel/include/RcppParallel/TinyThread.h:7: /Users/ripley/R/Library/RcppParallel/include/RcppParallel/Common.h:36:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] return value; ~~~~~~ ^~~~~ In file included from RcppZigZag.cpp:10: ./ZigZag.h:503:55: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] reduce_min(result, boundaryTimeLower, i, BounceType::BOUNDARY_LOWER); ~~~~~~~~~~ ^ ./ZigZag.h:384:40: note: in instantiation of function template specialization 'zz::ZigZag::vectorized_transform' requested here MinTravelInfo travel = vectorized_transform(begin, begin + vectorCount, dynamics, ^ ./ZigZag.h:277:42: note: in instantiation of function template specialization 'zz::ZigZag::getNextBounce' requested here const auto firstBounce = getNextBounce(dynamics); ^ ./ZigZag.h:172:20: note: in instantiation of function template specialization 'zz::ZigZag::operateImpl' requested here return operateImpl(dynamics, time); ^ ./ZigZag.h:52:9: note: in instantiation of member function 'zz::ZigZag::operate' requested here ZigZag(size_t dimension, ^ ./AbstractZigZag.h:91:39: note: in instantiation of member function 'zz::ZigZag::ZigZag' requested here return std::unique_ptr(new T(std::forward(args)...)); ^ ./ZigZag.h:998:24: note: in instantiation of function template specialization 'zz::make_unique, int &, double *&, double *&, double *&, long &, int &, long &>' requested here return zz::make_unique>( ^ ./ZigZag.h:510:55: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] reduce_min(result, boundaryTimeUpper, i, ~~~~~~~~~~ ^ ./ZigZag.h:518:50: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] reduce_min(result, gradientTime, i, BounceType::GRADIENT); ~~~~~~~~~~ ^ ./ZigZag.h:503:55: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] reduce_min(result, boundaryTimeLower, i, BounceType::BOUNDARY_LOWER); ~~~~~~~~~~ ^ ./ZigZag.h:384:40: note: in instantiation of function template specialization 'zz::ZigZag::vectorized_transform, 2, double, zz::DoubleSseMinTravelInfo, unsigned long>' requested here MinTravelInfo travel = vectorized_transform(begin, begin + vectorCount, dynamics, ^ ./ZigZag.h:277:42: note: in instantiation of function template specialization 'zz::ZigZag::getNextBounce' requested here const auto firstBounce = getNextBounce(dynamics); ^ ./ZigZag.h:172:20: note: in instantiation of function template specialization 'zz::ZigZag::operateImpl' requested here return operateImpl(dynamics, time); ^ ./NoUTurn.h:48:78: note: in instantiation of member function 'zz::ZigZag::operate' requested here zzEngine(*zigzag), ^ In file included from RcppZigZag.cpp:10: ./ZigZag.h:510:55: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] reduce_min(result, boundaryTimeUpper, i, ~~~~~~~~~~ ^ ./ZigZag.h:518:50: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] reduce_min(result, gradientTime, i, BounceType::GRADIENT); ~~~~~~~~~~ ^ ./ZigZag.h:503:55: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] reduce_min(result, boundaryTimeLower, i, BounceType::BOUNDARY_LOWER); ~~~~~~~~~~ ^ ./ZigZag.h:388:30: note: in instantiation of function template specialization 'zz::ZigZag::vectorized_transform' requested here travel = vectorized_transform(begin + vectorCount, end, dynamics, travel); ^ ./ZigZag.h:277:42: note: in instantiation of function template specialization 'zz::ZigZag::getNextBounce' requested here const auto firstBounce = getNextBounce(dynamics); ^ ./ZigZag.h:172:20: note: in instantiation of function template specialization 'zz::ZigZag::operateImpl' requested here return operateImpl(dynamics, time); ^ ./NoUTurn.h:48:78: note: in instantiation of member function 'zz::ZigZag::operate' requested here zzEngine(*zigzag), ^ In file included from RcppZigZag.cpp:10: ./ZigZag.h:510:55: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] reduce_min(result, boundaryTimeUpper, i, ~~~~~~~~~~ ^ ./ZigZag.h:518:50: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] reduce_min(result, gradientTime, i, BounceType::GRADIENT); ~~~~~~~~~~ ^ 42 warnings generated. clang++ -std=gnu++14 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -I'/Users/ripley/R/Library/RcppEigen/include' -I'/Users/ripley/R/Library/RcppParallel/include' -I'/Users/ripley/R/Library/RcppXsimd/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/RcppEigen/include/RcppEigen.h:25: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigenForward.h:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:1: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Core:540: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:2: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/LU:47: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:12: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Jacobi:29: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:3: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Cholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:15: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Householder:27: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:4: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/QR:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:5: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SVD:48: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:6: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Geometry:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:30: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Dense:7: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/Eigenvalues:58: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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/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] Index count = 0; ^ In file included from RcppExports.cpp:4: 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/Eigen/Sparse:26: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCore:66: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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/Eigen/Sparse:27: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/OrderingMethods:71: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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/Eigen/Sparse:29: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseCholesky:43: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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/Eigen/Sparse:31: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseLU:33: /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] 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] Index nsuper_et = 0; // Number of relaxed snodes in the original etree ^ In file included from RcppExports.cpp:4: 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/Eigen/Sparse:32: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/SparseQR:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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/Eigen/Sparse:33: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/IterativeLinearSolvers:46: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:32: In file included from /Users/ripley/R/Library/RcppEigen/include/Eigen/CholmodSupport:45: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:35: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/KroneckerProduct:34: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:39: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/Polynomials:135: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: 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:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:44: /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:239:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] int count = 0; ^ In file included from RcppExports.cpp:4: 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:40: In file included from /Users/ripley/R/Library/RcppEigen/include/unsupported/Eigen/SparseExtra:51: /Users/ripley/R/Library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:39:32: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] dd[0] = dd[1] = f->n; ~ ~~~^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:48:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] tt[4] = f->maxcsize; tt[5] = f->maxesize; ~ ~~~^~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:48:49: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'typename storage_type<13>::type' (aka 'int') [-Wshorten-64-to-32] tt[4] = f->maxcsize; tt[5] = f->maxesize; ~ ~~~^~~~~~~~ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:101:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[0] = m; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:102:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[1] = n; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:264:58: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) { ^~~~~~~~~~~~~ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:87:41: note: in instantiation of member function 'Rcpp::traits::Exporter, 0>>::Exporter' requested here ::Rcpp::traits::Exporter exporter(x); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/as.h:152:26: note: in instantiation of function template specialization 'Rcpp::internal::as, 0>>' requested here 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, 0>>' requested here ConstInputParameter(SEXP x_) : obj( as(x_) ){} ^ RcppExports.cpp:20:78: note: in instantiation of member function 'Rcpp::ConstInputParameter, 0>>::ConstInputParameter' requested here Rcpp::traits::input_parameter< const Eigen::Map >::type A(ASEXP); ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:101:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[0] = m; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:138:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:155:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here return eigen_wrap_is_plain( obj, ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here return ::Rcpp::RcppEigen::eigen_wrap(object); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); ^ /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 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 return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; ^ RcppExports.cpp:21:29: note: in instantiation of function template specialization 'Rcpp::wrap>' requested here rcpp_result_gen = Rcpp::wrap(cholesky(A)); ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:102:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[1] = n; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:101:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[0] = m; ~ ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:138:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_plain_dense>' requested here return eigen_wrap_plain_dense( obj, typename is_dense::type() ) ; ^ /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:155:20: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap_is_plain>' requested here return eigen_wrap_is_plain( obj, ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:776:39: note: in instantiation of function template specialization 'Rcpp::RcppEigen::eigen_wrap>' requested here return ::Rcpp::RcppEigen::eigen_wrap(object); ^ /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:787:20: note: in instantiation of function template specialization 'Rcpp::internal::wrap_dispatch_eigen>' requested here return wrap_dispatch_eigen(object, typename traits::is_eigen_base::type()); ^ /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 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 return internal::wrap_dispatch( object, typename ::Rcpp::traits::wrap_type_traits::wrap_category() ) ; ^ RcppExports.cpp:52:29: note: in instantiation of function template specialization 'Rcpp::wrap>' requested here rcpp_result_gen = Rcpp::wrap(whitenPosition(position, constraintDirec, constraintBound, choleskyFactor, unconstrainedMean, precParametrized)); ^ In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/RcppEigen/include/RcppEigen.h:27: /Users/ripley/R/Library/RcppEigen/include/RcppEigenWrap.h:102:24: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] d[1] = n; ~ ^ 32 warnings generated. clang++ -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Users/ripley/R/R-devel/lib -L/opt/R/arm64/lib -o hdtg.so RcppHarmonic.o RcppZigZag.o RcppExports.o -L/Users/ripley/R/R-devel/lib -lR -Wl,-framework -Wl,CoreFoundation The name of the shared library to be created is: hdtg.so installing to /Users/ripley/R/packages/tests-devel/hdtg.Rcheck/00LOCK-hdtg/00new/hdtg/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (hdtg)