* installing *source* package ‘fastkmedoids’ ... ** this is package ‘fastkmedoids’ version ‘1.4’ ** using staged installation ** libs using C++ compiler: ‘g++-15 (Debian 15.2.0-13) 15.2.0’ g++-15 -std=gnu++20 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c RcppExports.cpp -o RcppExports.o g++-15 -std=gnu++20 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c pam.cpp -o pam.o In file included from pam.cpp:21: pam.h: In member function ‘int Xoroshiro128Random::nextInt(int)’: pam.h:57:55: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] 57 | int r = (int)((n & -n) == n ? nextLong() & n - 1 // power of two | ~~^~~ pam.h: In member function ‘std::vector Xoroshiro128Random::randomSample(int, int)’: pam.h:82:35: warning: comparison of integer expressions of different signedness: ‘std::unordered_map::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 82 | while (sample_dict.size() < samplesize) { | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ pam.h: At global scope: pam.h:465:25: warning: ‘virtual Assignment& Assignment::operator=(const Assignment&)’ was hidden [-Woverloaded-virtual=] 465 | virtual Assignment& operator=(const Assignment& other); | ^~~~~~~~ pam.h:533:7: note: by ‘FastAssignment& FastAssignment::operator=(const FastAssignment&)’ 533 | class FastAssignment : public Assignment | ^~~~~~~~~~~~~~ pam.cpp: In member function ‘double LAB::getMinDist(int, std::vector&, std::vector&)’: pam.cpp:132:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 132 | for (int i=0; i LAB::run(const std::vector&, int)’: pam.cpp:166:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 166 | for (int j=0; j::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 191 | while(medids.size() < k) { | ~~~~~~~~~~~~~~^~~ pam.cpp:203:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (int j=0; j&)’: pam.cpp:374:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 374 | for (int j=0; j&, std::vector&, std::vector&, std::vector&)’: pam.cpp:522:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 522 | for (int j=0; j::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 527 | for(int i = 0; i < cost.size(); i++) { | ~~^~~~~~~~~~~~~ pam.cpp: In member function ‘virtual void FastPAM::computeReassignmentCost(int, std::vector&)’: pam.cpp:566:37: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 566 | for(int pi = pj + 1; pi < cost.size(); pi++) { | ~~~^~~~~~~~~~~~~ pam.cpp: In member function ‘virtual double FastPAM::assignToNearestCluster(std::vector&)’: pam.cpp:608:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 608 | for (int h=0; h< means.size(); ++h) { | ~^~~~~~~~~~~~~~ pam.cpp: In member function ‘int FastPAM::argmin(const std::vector&)’: pam.cpp:639:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 639 | for(int i = 0; i < best.size(); i++) { | ~~^~~~~~~~~~~~~ pam.cpp: In member function ‘int FastPAM::updateSecondNearest(int, std::vector&, int, double, int)’: pam.cpp:716:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 716 | for (int i=0; i PAMUtils::randomSample(Xoroshiro128Random&, int, int, const std::vector&)’: pam.cpp:740:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 740 | for (int i=0; i::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 748 | for (int i=0; i::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 756 | if (sample_dict.size() < samplesize) { | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ pam.cpp:761:58: warning: comparison of integer expressions of different signedness: ‘std::unordered_map::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 761 | for (int i=0; i::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 822 | for (int k=0; k&, std::vector&, std::vector&, std::vector&)’: pam.cpp:844:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 844 | for (int j=0; j::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 856 | for (int i=0; i::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 916 | for (int k=0; k::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 1119 | for(int i = 0; i < medoids.size(); i++) { | ~~^~~~~~~~~~~~~~~~ pam.cpp: In member function ‘virtual bool Assignment::hasMedoid(int)’: pam.cpp:1157:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 1157 | for (int i=0; i&, int)’: pam.cpp:344:30: warning: ‘bestid’ may be used uninitialized [-Wmaybe-uninitialized] 344 | medoids[bestcluster] = bestid; pam.cpp:313:9: note: ‘bestid’ was declared here 313 | int bestid; | ^~~~~~ In file included from /usr/include/c++/15/bits/stl_iterator.h:78, from /usr/include/c++/15/bits/stl_algobase.h:67, from /usr/include/c++/15/bits/stl_tree.h:65, from /usr/include/c++/15/map:64, from pam.cpp:14: In function ‘constexpr _Tp* std::construct_at(_Tp*, _Args&& ...) [with _Tp = int; _Args = {const int&}]’, inlined from ‘static constexpr void std::allocator_traits >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = int; _Args = {const int&}; _Tp = int]’ at /usr/include/c++/15/bits/alloc_traits.h:676:21, inlined from ‘constexpr void std::vector<_Tp, _Alloc>::_M_realloc_append(_Args&& ...) [with _Args = {const int&}; _Tp = int; _Alloc = std::allocator]’ at /usr/include/c++/15/bits/vector.tcc:586:26, inlined from ‘constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator]’ at /usr/include/c++/15/bits/stl_vector.h:1427:21, inlined from ‘virtual std::vector BUILD::run(const std::vector&, int)’ at pam.cpp:62:25: /usr/include/c++/15/bits/stl_construct.h:110:16: warning: ‘bestid’ may be used uninitialized [-Wmaybe-uninitialized] 110 | return ::new(__loc) _Tp(std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pam.cpp: In member function ‘virtual std::vector BUILD::run(const std::vector&, int)’: pam.cpp:42:9: note: ‘bestid’ was declared here 42 | int bestid; | ^~~~~~ g++-15 -std=gnu++20 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c rcpp_fastkmedoids.cpp -o rcpp_fastkmedoids.o In file included from rcpp_fastkmedoids.cpp:19: pam.h: In member function ‘int Xoroshiro128Random::nextInt(int)’: pam.h:57:55: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] 57 | int r = (int)((n & -n) == n ? nextLong() & n - 1 // power of two | ~~^~~ pam.h: In member function ‘std::vector Xoroshiro128Random::randomSample(int, int)’: pam.h:82:35: warning: comparison of integer expressions of different signedness: ‘std::unordered_map::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 82 | while (sample_dict.size() < samplesize) { | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ pam.h: At global scope: pam.h:465:25: warning: ‘virtual Assignment& Assignment::operator=(const Assignment&)’ was hidden [-Woverloaded-virtual=] 465 | virtual Assignment& operator=(const Assignment& other); | ^~~~~~~~ pam.h:533:7: note: by ‘FastAssignment& FastAssignment::operator=(const FastAssignment&)’ 533 | class FastAssignment : public Assignment | ^~~~~~~~~~~~~~ g++-15 -std=gnu++20 -shared -L/home/hornik/tmp/R/lib -Wl,-O1 -o fastkmedoids.so RcppExports.o pam.o rcpp_fastkmedoids.o -L/home/hornik/tmp/R/lib -lR installing to /home/hornik/tmp/CRAN_recheck/fastkmedoids.Rcheck/00LOCK-fastkmedoids/00new/fastkmedoids/libs ** R ** 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 (fastkmedoids)