* installing to library ‘/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages’
* installing *source* package ‘BCT’ ...
** this is package ‘BCT’ version ‘1.2’
** package ‘BCT’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘Debian clang version 21.1.6 (2)’
using C++11
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpYGKt9Y/R.INSTALLf34a176a81cf1/BCT/src'
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -Wno-missing-template-arg-list-after-template-kw -Wdeprecated-literal-operator -c RcppExports.cpp -o RcppExports.o
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -Wno-missing-template-arg-list-after-template-kw -Wdeprecated-literal-operator -c bct_rcpp.cpp -o bct_rcpp.o
In file included from bct_rcpp.cpp:3:
./utils.h:268:54: error: reference to 'beta' is ambiguous
268 | long double delta = T[d][k]->le - sum + log2(beta) - log2(1.0 - beta);
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:268:73: error: reference to 'beta' is ambiguous
268 | long double delta = T[d][k]->le - sum + log2(beta) - log2(1.0 - beta);
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:271:36: error: reference to 'beta' is ambiguous
271 | T[d][k]->lw = log2(1.0 - beta) + sum + log2(1.0 + pow(2.0, delta));
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:275:30: error: reference to 'beta' is ambiguous
275 | T[d][k]->lw = log2(beta) + T[d][k]->le + log2(exp(1))*(pow(2.0, -delta) - pow(2.0, -2.0*delta - 1));
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:316:32: error: reference to 'beta' is ambiguous
316 | sum = sum + log2(beta);
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:333:28: error: reference to 'beta' is ambiguous
333 | if (log2(1.0 - 1.0*beta) + sum > log2(beta) + T[d][k]->le) { // maximum achieved by children term
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:333:47: error: reference to 'beta' is ambiguous
333 | if (log2(1.0 - 1.0*beta) + sum > log2(beta) + T[d][k]->le) { // maximum achieved by children term
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:335:40: error: reference to 'beta' is ambiguous
335 | T[d][k]->lw = log2(1.0 - 1.0*beta) + sum; // set max prob of node
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:342:30: error: reference to 'beta' is ambiguous
342 | T[d][k]->lw = log2(beta) + T[d][k]->le; // set max prob of node and mark to be pruned
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:410:33: error: reference to 'beta' is ambiguous
410 | init->lw = log2(beta); // set maximal prob for leaf at depth < D, if leaf is at depth D then logP=0;
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:516:27: error: reference to 'beta' is ambiguous
516 | init[d]->lm[0] = log2(beta); // for smaller depth first add c=0 with p=logbeta
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:597:29: error: reference to 'beta' is ambiguous
597 | double sum = log2(1.0 - beta);
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:713:31: error: reference to 'beta' is ambiguous
713 | T[d][k]->lm[0] = log2(beta) + T[d][k]->le; // for d<D first add the c=0 lm=le combination
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:841:66: error: reference to 'beta' is ambiguous
841 | long double prior = log2(pow(alpha, (tp.n_leaves - 1.0))*pow(beta, (tp.n_leaves - trees[i][D].size())));// log-prior
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:896:29: error: reference to 'beta' is ambiguous
896 | double sum = log2(1.0 - beta);
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:1064:58: error: reference to 'beta' is ambiguous
1064 | long double delta = nodes_ct[d]->le - sum + log2(beta) - log2(1.0 - beta);
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:1064:77: error: reference to 'beta' is ambiguous
1064 | long double delta = nodes_ct[d]->le - sum + log2(beta) - log2(1.0 - beta);
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:1067:40: error: reference to 'beta' is ambiguous
1067 | nodes_ct[d]->lw = log2(1.0 - beta) + sum + log2(1.0 + pow(2.0, delta));
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
In file included from bct_rcpp.cpp:3:
./utils.h:1071:34: error: reference to 'beta' is ambiguous
1071 | nodes_ct[d]->lw = log2(beta) + nodes_ct[d]->le + log2(exp(1))*(pow(2.0, -delta) - pow(2.0, -2.0*delta - 1));
| ^
./utils.h:27:13: note: candidate found by name lookup is 'beta'
27 | long double beta; // prior hyper-parameter
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/specfun.h:341:5: note: candidate found by name lookup is 'std::beta'
341 | beta(_Tpa __a, _Tpb __b)
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:209: bct_rcpp.o] Error 1
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpYGKt9Y/R.INSTALLf34a176a81cf1/BCT/src'
ERROR: compilation failed for package ‘BCT’
* removing ‘/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BCT’