* installing *source* package ‘fastMatMR’ ... ** package ‘fastMatMR’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.24.1)’ using C++17 using SDK: ‘MacOSX15.0.sdk’ clang++ -mmacos-version-min=14.6 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -D_LIBCPP_DISABLE_AVAILABILITY -I"../inst/include/" -I'/Users/ripley/R/Library/cpp11/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c cpp11.cpp -o cpp11.o In file included from cpp11.cpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/declarations.hpp:13: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:12: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/list.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/named_arg.hpp:9: /Users/ripley/R/Library/cpp11/include/cpp11/sexp.hpp:79:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 79 | operator size_t() const { return REAL_ELT(data_, 0); } | ~~~~~~ ^~~~~~~~~~~~~~~~~~ In file included from cpp11.cpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/declarations.hpp:13: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:48:14: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 48 | return Rf_xlength(nms); | ~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:55:12: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 55 | return Rf_xlength(VECTOR_ELT(x, 0)); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cpp11.cpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/declarations.hpp:13: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/as.hpp:11: /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:130:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 130 | return std::forward(f)(std::get(std::move(a))...); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:136:10: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 136 | return apply(std::forward(f), std::move(a), make_index_sequence{}); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:149:12: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 149 | return apply(ptr_, std::move(arefs_)); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:56:16: note: in instantiation of member function 'cpp11::detail::closure::operator()' requested here 56 | return static_cast(*callback)(); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:163:14: note: in instantiation of function template specialization 'cpp11::unwind_protect, void>' requested here 163 | return unwind_protect( | ^ /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:20:35: note: in instantiation of function template specialization 'cpp11::protect::function::operator()' requested here 20 | : data_(safe[Rf_mkCharLenCE](data.c_str(), data.size(), CE_UTF8)) {} | ^ 4 warnings generated. clang++ -mmacos-version-min=14.6 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -D_LIBCPP_DISABLE_AVAILABILITY -I"../inst/include/" -I'/Users/ripley/R/Library/cpp11/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c from_file.cpp -o from_file.o In file included from from_file.cpp:10: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:12: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/list.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/named_arg.hpp:9: /Users/ripley/R/Library/cpp11/include/cpp11/sexp.hpp:79:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 79 | operator size_t() const { return REAL_ELT(data_, 0); } | ~~~~~~ ^~~~~~~~~~~~~~~~~~ In file included from from_file.cpp:10: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:48:14: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 48 | return Rf_xlength(nms); | ~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:55:12: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 55 | return Rf_xlength(VECTOR_ELT(x, 0)); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ from_file.cpp:53:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 53 | cpp11::writable::doubles_matrix<> mat(nrows, ncols); | ~~~ ^~~~~ from_file.cpp:53:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 53 | cpp11::writable::doubles_matrix<> mat(nrows, ncols); | ~~~ ^~~~~ from_file.cpp:57:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 57 | mat(i, j) = vec[j + i * ncols]; | ~~~ ^ from_file.cpp:57:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 57 | mat(i, j) = vec[j + i * ncols]; | ~~~ ^ In file included from from_file.cpp:10: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/as.hpp:11: /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:130:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 130 | return std::forward(f)(std::get(std::move(a))...); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:136:10: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 136 | return apply(std::forward(f), std::move(a), make_index_sequence{}); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:149:12: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 149 | return apply(ptr_, std::move(arefs_)); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:56:16: note: in instantiation of member function 'cpp11::detail::closure::operator()' requested here 56 | return static_cast(*callback)(); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:163:14: note: in instantiation of function template specialization 'cpp11::unwind_protect, void>' requested here 163 | return unwind_protect( | ^ /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:20:35: note: in instantiation of function template specialization 'cpp11::protect::function::operator()' requested here 20 | : data_(safe[Rf_mkCharLenCE](data.c_str(), data.size(), CE_UTF8)) {} | ^ In file included from from_file.cpp:10: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:12: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/list.hpp:10: /Users/ripley/R/Library/cpp11/include/cpp11/r_vector.hpp:688:15: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 688 | push_back(*first); | ~~~~~~~~~ ^~~~~~ from_file.cpp:96:29: note: in instantiation of function template specialization 'cpp11::writable::r_vector::r_vector>' requested here 96 | cpp11::writable::integers r_row_idx(row_idx.begin(), row_idx.end()); | ^ 9 warnings generated. clang++ -mmacos-version-min=14.6 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -D_LIBCPP_DISABLE_AVAILABILITY -I"../inst/include/" -I'/Users/ripley/R/Library/cpp11/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c helpers.cpp -o helpers.o In file included from helpers.cpp:2: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:12: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/list.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/named_arg.hpp:9: /Users/ripley/R/Library/cpp11/include/cpp11/sexp.hpp:79:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 79 | operator size_t() const { return REAL_ELT(data_, 0); } | ~~~~~~ ^~~~~~~~~~~~~~~~~~ In file included from helpers.cpp:2: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:48:14: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 48 | return Rf_xlength(nms); | ~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:55:12: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 55 | return Rf_xlength(VECTOR_ELT(x, 0)); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from helpers.cpp:2: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/as.hpp:11: /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:130:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 130 | return std::forward(f)(std::get(std::move(a))...); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:136:10: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 136 | return apply(std::forward(f), std::move(a), make_index_sequence{}); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:149:12: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 149 | return apply(ptr_, std::move(arefs_)); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:56:16: note: in instantiation of member function 'cpp11::detail::closure::operator()' requested here 56 | return static_cast(*callback)(); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:163:14: note: in instantiation of function template specialization 'cpp11::unwind_protect, void>' requested here 163 | return unwind_protect( | ^ /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:20:35: note: in instantiation of function template specialization 'cpp11::protect::function::operator()' requested here 20 | : data_(safe[Rf_mkCharLenCE](data.c_str(), data.size(), CE_UTF8)) {} | ^ 4 warnings generated. clang++ -mmacos-version-min=14.6 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -D_LIBCPP_DISABLE_AVAILABILITY -I"../inst/include/" -I'/Users/ripley/R/Library/cpp11/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c to_file.cpp -o to_file.o In file included from to_file.cpp:8: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:12: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/list.hpp:7: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/named_arg.hpp:9: /Users/ripley/R/Library/cpp11/include/cpp11/sexp.hpp:79:36: warning: implicit conversion turns floating-point number into integer: 'double' to 'size_t' (aka 'unsigned long') [-Wfloat-conversion] 79 | operator size_t() const { return REAL_ELT(data_, 0); } | ~~~~~~ ^~~~~~~~~~~~~~~~~~ In file included from to_file.cpp:8: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:7: /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:48:14: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 48 | return Rf_xlength(nms); | ~~~~~~ ^~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/data_frame.hpp:55:12: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 55 | return Rf_xlength(VECTOR_ELT(x, 0)); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from to_file.cpp:8: In file included from /Users/ripley/R/Library/cpp11/include/cpp11.hpp:5: In file included from /Users/ripley/R/Library/cpp11/include/cpp11/as.hpp:11: /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:130:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 130 | return std::forward(f)(std::get(std::move(a))...); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:136:10: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 136 | return apply(std::forward(f), std::move(a), make_index_sequence{}); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:149:12: note: in instantiation of function template specialization 'cpp11::detail::apply' requested here 149 | return apply(ptr_, std::move(arefs_)); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:56:16: note: in instantiation of member function 'cpp11::detail::closure::operator()' requested here 56 | return static_cast(*callback)(); | ^ /Users/ripley/R/Library/cpp11/include/cpp11/protect.hpp:163:14: note: in instantiation of function template specialization 'cpp11::unwind_protect, void>' requested here 163 | return unwind_protect( | ^ /Users/ripley/R/Library/cpp11/include/cpp11/r_string.hpp:20:35: note: in instantiation of function template specialization 'cpp11::protect::function::operator()' requested here 20 | : data_(safe[Rf_mkCharLenCE](data.c_str(), data.size(), CE_UTF8)) {} | ^ In file included from to_file.cpp:11: In file included from ./../inst/include/fast_matrix_market/fast_matrix_market.hpp:217: ./../inst/include/fast_matrix_market/formatters.hpp:264:74: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 264 | chunk += line_formatter.coord_matrix(lf_row, lf_col, *val_iter); | ~~~~~~~~~~~~ ^~~~~~ ./../inst/include/fast_matrix_market/write_body_threads.hpp:47:61: note: in instantiation of member function 'fast_matrix_market::csc_formatter, std::__wrap_iter, std::__wrap_iter, std::__wrap_iter>::chunk::operator()' requested here 47 | futures.push(pool.submit([](auto chunk){ return chunk(); }, formatter.next_chunk(options))); | ^ ./../inst/include/fast_matrix_market/write_body.hpp:69:13: note: in instantiation of function template specialization 'fast_matrix_market::write_body_threads, std::__wrap_iter, std::__wrap_iter, std::__wrap_iter>>' requested here 69 | write_body_threads(os, formatter, options); | ^ ./../inst/include/fast_matrix_market/app/triplet.hpp:201:9: note: in instantiation of function template specialization 'fast_matrix_market::write_body, std::__wrap_iter, std::__wrap_iter, std::__wrap_iter>>' requested here 201 | write_body(os, formatter, options); | ^ to_file.cpp:125:8: note: in instantiation of function template specialization 'fast_matrix_market::write_matrix_market_csc, std::vector>' requested here 125 | fmm::write_matrix_market_csc(os, header, p_vec, i_vec, x_vec, false); | ^ In file included from to_file.cpp:11: In file included from ./../inst/include/fast_matrix_market/fast_matrix_market.hpp:217: ./../inst/include/fast_matrix_market/formatters.hpp:264:66: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 264 | chunk += line_formatter.coord_matrix(lf_row, lf_col, *val_iter); | ~~~~~~~~~~~~ ^~~~~~ ./../inst/include/fast_matrix_market/formatters.hpp:267:82: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 267 | chunk += line_formatter.coord_matrix_pattern(lf_row, lf_col); | ~~~~~~~~~~~~~~~~~~~~ ^~~~~~ ./../inst/include/fast_matrix_market/formatters.hpp:267:74: warning: implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'const int' [-Wshorten-64-to-32] 267 | chunk += line_formatter.coord_matrix_pattern(lf_row, lf_col); | ~~~~~~~~~~~~~~~~~~~~ ^~~~~~ 8 warnings generated. clang++ -mmacos-version-min=14.6 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Users/ripley/R/R-devel/lib -L/opt/R/arm64/lib -o fastMatMR.so cpp11.o from_file.o helpers.o to_file.o -L/Users/ripley/R/R-devel/lib -lR -Wl,-framework -Wl,CoreFoundation installing to /Users/ripley/R/packages/tests-devel/fastMatMR.Rcheck/00LOCK-fastMatMR/00new/fastMatMR/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices *** copying figures ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location Error: package or namespace load failed for ‘fastMatMR’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Users/ripley/R/packages/tests-devel/fastMatMR.Rcheck/00LOCK-fastMatMR/00new/fastMatMR/libs/fastMatMR.so': dlopen(/Users/ripley/R/packages/tests-devel/fastMatMR.Rcheck/00LOCK-fastMatMR/00new/fastMatMR/libs/fastMatMR.so, 0x0006): Symbol not found: __ZNSt13exception_ptr31__from_native_exception_pointerEPv Referenced from: <3596940B-E489-3D1C-849A-EBF138E8D3B6> /Users/ripley/R/packages/tests-devel/fastMatMR.Rcheck/00LOCK-fastMatMR/00new/fastMatMR/libs/fastMatMR.so Expected in: /usr/lib/libc++.1.dylib Error: loading failed Execution halted ERROR: loading failed * removing ‘/Users/ripley/R/packages/tests-devel/fastMatMR.Rcheck/fastMatMR’