* installing *source* package ‘ontologySimilarity’ ... ** this is package ‘ontologySimilarity’ version ‘2.7’ ** package ‘ontologySimilarity’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘g++ (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)’ make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-C++20/ontologySimilarity/src' g++ -std=gnu++20 -I"/data/gannet/ripley/R/cxx20/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c Interface.cpp -o Interface.o Interface.cpp: In function ‘Rcpp::NumericVector sample_null(std::string, Rcpp::RObject, bool, int, int)’: Interface.cpp:39:70: error: reference to ‘identity’ is ambiguous 39 | ReduceSim r(use_mean ? &add : &worst, use_mean ? &by_size : &identity, use_mean ? 0.0 : INFINITY); | ^~~~~~~~ In file included from /usr/include/c++/15/bits/iterator_concepts.h:40, from /usr/include/c++/15/bits/stl_iterator_base_types.h:73, from /usr/include/c++/15/bits/stl_algobase.h:65, from /usr/include/c++/15/bits/specfun.h:43, from /usr/include/c++/15/cmath:3913, from /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/platform/compiler.h:37, from /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/r/headers.h:67, from /data/gannet/ripley/R/test-dev/Rcpp/include/RcppCommon.h:31, from /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp.h:27, from Interface.h:1, from Interface.cpp:1: /usr/include/c++/15/bits/ranges_cmp.h:47:10: note: candidates are: ‘struct std::identity’ 47 | struct identity | ^~~~~~~~ In file included from SimMatrix.h:4, from Interface.h:3: TermSetSimData.h:21:8: note: ‘double identity(double, int)’ 21 | double identity(double a, int b); | ^~~~~~~~ Interface.cpp: In function ‘double sim_p(std::string, Rcpp::RObject, bool, Rcpp::IntegerVector, int, int, double, double)’: Interface.cpp:59:70: error: reference to ‘identity’ is ambiguous 59 | ReduceSim r(use_mean ? &add : &worst, use_mean ? &by_size : &identity, use_mean ? 0.0 : INFINITY); | ^~~~~~~~ /usr/include/c++/15/bits/ranges_cmp.h:47:10: note: candidates are: ‘struct std::identity’ 47 | struct identity | ^~~~~~~~ TermSetSimData.h:21:8: note: ‘double identity(double, int)’ 21 | double identity(double a, int b); | ^~~~~~~~ Interface.cpp: In function ‘double group_sim(std::string, Rcpp::RObject, bool, Rcpp::IntegerVector)’: Interface.cpp:89:70: error: reference to ‘identity’ is ambiguous 89 | ReduceSim r(use_mean ? &add : &worst, use_mean ? &by_size : &identity, use_mean ? 0.0 : INFINITY); | ^~~~~~~~ /usr/include/c++/15/bits/ranges_cmp.h:47:10: note: candidates are: ‘struct std::identity’ 47 | struct identity | ^~~~~~~~ TermSetSimData.h:21:8: note: ‘double identity(double, int)’ 21 | double identity(double a, int b); | ^~~~~~~~ g++ -std=gnu++20 -I"/data/gannet/ripley/R/cxx20/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c PVal.cpp -o PVal.o make[1]: *** [/data/gannet/ripley/R/cxx20/etc/Makeconf:201: Interface.o] Error 1 g++ -std=gnu++20 -I"/data/gannet/ripley/R/cxx20/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++20 -I"/data/gannet/ripley/R/cxx20/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c Sampling.cpp -o Sampling.o Sampling.cpp: In function ‘bool next_combination(Rcpp::IntegerVector, size_t, int)’: Sampling.cpp:16:23: warning: comparison of integer expressions of different signedness: ‘Rcpp::traits::storage_type<13>::type’ {aka ‘int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 16 | if (item[n-i] < N-i) { g++ -std=gnu++20 -I"/data/gannet/ripley/R/cxx20/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c SimMatrix.cpp -o SimMatrix.o g++ -std=gnu++20 -I"/data/gannet/ripley/R/cxx20/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c TermList.cpp -o TermList.o g++ -std=gnu++20 -I"/data/gannet/ripley/R/cxx20/include" -DNDEBUG -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -c TermSetSimData.cpp -o TermSetSimData.o make[1]: Target 'all' not remade because of errors. make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-C++20/ontologySimilarity/src' ERROR: compilation failed for package ‘ontologySimilarity’ * removing ‘/data/gannet/ripley/R/packages/tests-C++20/ontologySimilarity.Rcheck/ontologySimilarity’