* using log directory 'd:/Rcompile/CRANpkg/local/4.4/TreeDist.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'TreeDist/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'TreeDist' version '2.11.1' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... NOTE Package suggested but not available for checking: 'TreeDistData' * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'TreeDist' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/4.4/TreeDist.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'TreeDist' ... ** package 'TreeDist' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: 'g++.exe (GCC) 13.3.0' using C++17 make[1]: Entering directory '/d/temp/2026_02_13_01_50_00_31302/RtmpmwnoWG/R.INSTALL4da472223ff9/TreeDist/src' g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.4/TreeTools/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.4/TreeTools/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c day_1985.cpp -o day_1985.o In file included from day_1985.cpp:5: information.h:18:35: error: 'CT_MAX_LEAVES' was not declared in this scope 18 | constexpr int_fast32_t FACT_MAX = CT_MAX_LEAVES + CT_MAX_LEAVES + 5 + 1; | ^~~~~~~~~~~~~ information.h:18:51: error: 'CT_MAX_LEAVES' was not declared in this scope 18 | constexpr int_fast32_t FACT_MAX = CT_MAX_LEAVES + CT_MAX_LEAVES + 5 + 1; | ^~~~~~~~~~~~~ information.h:21:15: error: size of array 'ldfact' is not an integral constant-expression 21 | double ldfact[FACT_MAX]; | ^~~~~~~~ information.h:22:17: error: 'CT_MAX_LEAVES' was not declared in this scope 22 | double l2rooted[CT_MAX_LEAVES]; | ^~~~~~~~~~~~~ information.h:23:23: error: 'l2rooted' was not declared in this scope; did you mean 'lg2_rooted'? 23 | double *l2unrooted = &l2rooted[0] - 1; | ^~~~~~~~ | lg2_rooted information.h:24:11: error: 'CT_MAX_LEAVES' was not declared in this scope 24 | double l2[CT_MAX_LEAVES]; | ^~~~~~~~~~~~~ information.h: In function 'void compute_double_factorials()': information.h:29:5: error: 'l2rooted' was not declared in this scope; did you mean 'lg2_rooted'? 29 | l2rooted[0] = 0; | ^~~~~~~~ | lg2_rooted information.h:32:5: error: 'l2' was not declared in this scope; did you mean 'lg2'? 32 | l2[1] = 0; | ^~ | lg2 information.h:39:35: error: 'CT_MAX_LEAVES' was not declared in this scope 39 | for (int_fast32_t i = 3; i != CT_MAX_LEAVES; ++i) { | ^~~~~~~~~~~~~ information.h: In function 'double split_phylo_info(int16, const int16*, double)': information.h:54:34: error: 'l2rooted' was not declared in this scope; did you mean 'lg2_rooted'? 54 | return (l2unrooted[*n_tip] - l2rooted[n_in] - l2rooted[n_out]); | ^~~~~~~~ | lg2_rooted information.h:59:24: error: 'l2rooted' was not declared in this scope; did you mean 'lg2_rooted'? 59 | l2n_consistent = l2rooted[n_in] + l2rooted[n_out], | ^~~~~~~~ | lg2_rooted information.h:67:27: error: 'l2n_inconsistent' was not declared in this scope; did you mean 'l2n_consistent'? 67 | q * (log2(q) - l2n_inconsistent)); | ^~~~~~~~~~~~~~~~ | l2n_consistent information.h: In function 'double split_clust_info(int16, const int16*, double)': information.h:79:17: error: 'l2' was not declared in this scope; did you mean 'lg2'? 79 | (((n_in * l2[n_in]) + (n_out * l2[n_out])) / *n_tip) - l2[*n_tip] | ^~ | lg2 day_1985.cpp: At global scope: day_1985.cpp:11:18: error: 'ct_max_leaves' has not been declared in 'TreeTools' 11 | using TreeTools::ct_max_leaves; | ^~~~~~~~~~~~~ day_1985.cpp: In function 'int COMCLUST(Rcpp::List)': day_1985.cpp:32:32: error: 'ct_max_leaves' is not a member of 'TreeTools'; did you mean 'ct_max_leaves_heap'? 32 | std::array S; | ^~~~~~~~~~~~~ | ct_max_leaves_heap day_1985.cpp:32:45: error: template argument 2 is invalid 32 | std::array S; | ^ day_1985.cpp:40:16: error: cannot convert 'int16*' {aka 'short int*'} to 'int32*' {aka 'int*'} 40 | Ti.NVERTEX(&v, &w); | ^~ | | | int16* {aka short int*} In file included from information.h:5: D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:150:32: note: initializing argument 1 of 'void TreeTools::ClusterTable::NVERTEX(int32*, int32*)' 150 | inline void NVERTEX(int32 *v, int32 *w) noexcept { | ~~~~~~~^ day_1985.cpp:44:9: error: 'CT_PUSH' was not declared in this scope 44 | CT_PUSH(X.ENCODE(v), X.ENCODE(v), 1, 1); | ^~~~~~~ day_1985.cpp:46:9: error: 'CT_POP' was not declared in this scope 46 | CT_POP(L, R, N, W_i); | ^~~~~~ day_1985.cpp:57:9: error: 'CT_PUSH' was not declared in this scope 57 | CT_PUSH(L, R, N, W); | ^~~~~~~ day_1985.cpp:62:18: error: cannot convert 'int16*' {aka 'short int*'} to 'int32*' {aka 'int*'} 62 | Ti.NVERTEX(&v, &w); | ^~ | | | int16* {aka short int*} D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:150:32: note: initializing argument 1 of 'void TreeTools::ClusterTable::NVERTEX(int32*, int32*)' 150 | inline void NVERTEX(int32 *v, int32 *w) noexcept { | ~~~~~~~^ day_1985.cpp:35:11: warning: unused variable 'Spos' [-Wunused-variable] 35 | int16 Spos = 0; // Empty the stack S | ^~~~ day_1985.cpp:32:47: warning: unused variable 'S' [-Wunused-variable] 32 | std::array S; | ^ day_1985.cpp: In function 'double consensus_info(Rcpp::List, Rcpp::LogicalVector, Rcpp::NumericVector)': day_1985.cpp:110:32: error: 'ct_stack_size' is not a member of 'TreeTools' 110 | std::array S; | ^~~~~~~~~~~~~ day_1985.cpp:110:59: error: 'ct_max_leaves' is not a member of 'TreeTools'; did you mean 'ct_max_leaves_heap'? 110 | std::array S; | ^~~~~~~~~~~~~ | ct_max_leaves_heap day_1985.cpp:110:72: error: template argument 2 is invalid 110 | std::array S; | ^ day_1985.cpp:111:32: error: 'ct_max_leaves' is not a member of 'TreeTools'; did you mean 'ct_max_leaves_heap'? 111 | std::array split_count; | ^~~~~~~~~~~~~ | ct_max_leaves_heap day_1985.cpp:111:45: error: template argument 2 is invalid 111 | std::array split_count; | ^ day_1985.cpp:123:27: error: request for member 'begin' in 'split_count', which is of non-class type 'int' 123 | std::fill(split_count.begin(), split_count.begin() + n_tip, 1); | ^~~~~ day_1985.cpp:123:48: error: request for member 'begin' in 'split_count', which is of non-class type 'int' 123 | std::fill(split_count.begin(), split_count.begin() + n_tip, 1); | ^~~~~ day_1985.cpp:130:23: error: cannot convert 'int16*' {aka 'short int*'} to 'int32*' {aka 'int*'} 130 | tables[j].READT(&v, &w); | ^~ | | | int16* {aka short int*} D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:145:30: note: initializing argument 1 of 'void TreeTools::ClusterTable::READT(int32*, int32*)' 145 | inline void READT(int32 *v, int32 *w) { | ~~~~~~~^ day_1985.cpp:136:11: error: 'CT_PUSH' was not declared in this scope 136 | CT_PUSH(tables[i].ENCODE(v), tables[i].ENCODE(v), 1, 1); | ^~~~~~~ day_1985.cpp:138:11: error: 'CT_POP' was not declared in this scope 138 | CT_POP(L, R, N, W_j); | ^~~~~~ day_1985.cpp:149:11: error: 'CT_PUSH' was not declared in this scope 149 | CT_PUSH(L, R, N, W); | ^~~~~~~ day_1985.cpp:152:32: error: cannot convert 'int16*' {aka 'short int*'} to 'int32*' {aka 'int*'} 152 | if (tables[j].GETSWX(&j_pos)) { | ^~~~~~ | | | int16* {aka short int*} D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:290:45: note: initializing argument 1 of 'bool TreeTools::ClusterTable::GETSWX(int32*)' 290 | [[nodiscard]] inline bool GETSWX(int32* row) noexcept { | ~~~~~~~^~~ day_1985.cpp:156:38: error: invalid conversion from 'int16*' {aka 'short int*'} to 'int32' {aka 'int'} [-fpermissive] 156 | if (tables[i].CLUSTONL(&L, &R)) { | ^~ | | | int16* {aka short int*} D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:248:46: note: initializing argument 1 of 'bool TreeTools::ClusterTable::CLUSTONL(int32, int32)' 248 | [[nodiscard]] inline bool CLUSTONL(int32 L, int32 R) noexcept { | ~~~~~~^ day_1985.cpp:156:42: error: invalid conversion from 'int16*' {aka 'short int*'} to 'int32' {aka 'int'} [-fpermissive] 156 | if (tables[i].CLUSTONL(&L, &R)) { | ^~ | | | int16* {aka short int*} D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:248:55: note: initializing argument 2 of 'bool TreeTools::ClusterTable::CLUSTONL(int32, int32)' 248 | [[nodiscard]] inline bool CLUSTONL(int32 L, int32 R) noexcept { | ~~~~~~^ day_1985.cpp:159:30: error: invalid types 'int[int]' for array subscript 159 | ++split_count[L - 1]; | ^ day_1985.cpp:164:45: error: invalid conversion from 'int16*' {aka 'short int*'} to 'int32' {aka 'int'} [-fpermissive] 164 | } else if (tables[i].CLUSTONR(&L, &R)) { | ^~ | | | int16* {aka short int*} D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:254:46: note: initializing argument 1 of 'bool TreeTools::ClusterTable::CLUSTONR(int32, int32)' 254 | [[nodiscard]] inline bool CLUSTONR(int32 L, int32 R) noexcept { | ~~~~~~^ day_1985.cpp:164:49: error: invalid conversion from 'int16*' {aka 'short int*'} to 'int32' {aka 'int'} [-fpermissive] 164 | } else if (tables[i].CLUSTONR(&L, &R)) { | ^~ | | | int16* {aka short int*} D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:254:55: note: initializing argument 2 of 'bool TreeTools::ClusterTable::CLUSTONR(int32, int32)' 254 | [[nodiscard]] inline bool CLUSTONR(int32 L, int32 R) noexcept { | ~~~~~~^ day_1985.cpp:167:30: error: invalid types 'int[int]' for array subscript 167 | ++split_count[R - 1]; | ^ day_1985.cpp:176:33: error: cannot convert 'int16*' {aka 'short int*'} to 'int32*' {aka 'int*'} 176 | tables[j].NVERTEX_short(&v, &w); | ^~ | | | int16* {aka short int*} D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:160:38: note: initializing argument 1 of 'void TreeTools::ClusterTable::NVERTEX_short(int32*, int32*)' 160 | inline void NVERTEX_short(int32 *v, int32 *w) noexcept { | ~~~~~~~^ day_1985.cpp:132:24: warning: unused variable 'Spos' [-Wunused-variable] 132 | int16 j_pos = 0, Spos = 0; // Empty the stack S | ^~~~ day_1985.cpp:182:22: error: invalid types 'int[int16 {aka short int}]' for array subscript 182 | if (split_count[k] >= thresh) { | ^ day_1985.cpp:186:47: error: invalid types 'int[int16 {aka short int}]' for array subscript 186 | split_count[k] / double(n_trees)); | ^ day_1985.cpp:189:47: error: invalid types 'int[int16 {aka short int}]' for array subscript 189 | split_count[k] / double(n_trees)); | ^ day_1985.cpp:110:74: warning: unused variable 'S' [-Wunused-variable] 110 | std::array S; | ^ day_1985.cpp: In function 'Rcpp::IntegerVector robinson_foulds_all_pairs(Rcpp::List)': day_1985.cpp:225:26: error: 'ct_max_leaves' was not declared in this scope 225 | std::array S_entries; | ^~~~~~~~~~~~~ day_1985.cpp:225:39: error: template argument 2 is invalid 225 | std::array S_entries; | ^ day_1985.cpp:226:33: error: request for member 'data' in 'S_entries', which is of non-class type 'int' 226 | StackEntry* S_top = S_entries.data(); // stack top pointer (points one past last element) | ^~~~ day_1985.cpp:240:25: error: request for member 'data' in 'S_entries', which is of non-class type 'int' 240 | S_top = S_entries.data(); | ^~~~ day_1985.cpp:243:25: error: cannot convert 'int16*' {aka 'short int*'} to 'int32*' {aka 'int*'} 243 | Tj->NVERTEX_short(&v, &w); | ^~ | | | int16* {aka short int*} D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:160:38: note: initializing argument 1 of 'void TreeTools::ClusterTable::NVERTEX_short(int32*, int32*)' 160 | inline void NVERTEX_short(int32 *v, int32 *w) noexcept { | ~~~~~~~^ day_1985.cpp:249:23: warning: narrowing conversion of '(int)enc_v' from 'int' to 'int16' {aka 'short int'} [-Wnarrowing] 249 | *S_top++ = {enc_v, enc_v, 1, 1}; | ^~~~~ day_1985.cpp:249:30: warning: narrowing conversion of '(int)enc_v' from 'int' to 'int16' {aka 'short int'} [-Wnarrowing] 249 | *S_top++ = {enc_v, enc_v, 1, 1}; | ^~~~~ day_1985.cpp:292:27: error: cannot convert 'int16*' {aka 'short int*'} to 'int32*' {aka 'int*'} 292 | Tj->NVERTEX_short(&v, &w); // Doesn't count all-ingroup or all-tips | ^~ | | | int16* {aka short int*} D:/RCompile/CRANpkg/lib/4.4/TreeTools/include/TreeTools/ClusterTable.h:160:38: note: initializing argument 1 of 'void TreeTools::ClusterTable::NVERTEX_short(int32*, int32*)' 160 | inline void NVERTEX_short(int32 *v, int32 *w) noexcept { | ~~~~~~~^ make[1]: *** [D:/RCompile/recent/R-4.4.3/etc/x64/Makeconf:296: day_1985.o] Error 1 make[1]: Leaving directory '/d/temp/2026_02_13_01_50_00_31302/RtmpmwnoWG/R.INSTALL4da472223ff9/TreeDist/src' ERROR: compilation failed for package 'TreeDist' * removing 'd:/Rcompile/CRANpkg/lib/4.4/TreeDist' * restoring previous 'd:/Rcompile/CRANpkg/lib/4.4/TreeDist'