* installing *source* package ‘emcAdr’ ...
** this is package ‘emcAdr’ version ‘1.2’
** package ‘emcAdr’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘clang version 21.1.8’
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang/emcAdr/src'
/usr/local/clang21/bin/clang++ -std=gnu++20 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c DataManager.cpp -o DataManager.o
/usr/local/clang21/bin/clang++ -std=gnu++20 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c Individual.cpp -o Individual.o
/usr/local/clang21/bin/clang++ -std=gnu++20 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c MCMC.cpp -o MCMC.o
/usr/local/clang21/bin/clang++ -std=gnu++20 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c Population.cpp -o Population.o
/usr/local/clang21/bin/clang++ -std=gnu++20 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c RcppExports.cpp -o RcppExports.o
/usr/local/clang21/bin/clang++ -std=gnu++20 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c main.cpp -o main.o
In file included from Population.cpp:1:
In file included from ./Population.h:4:
In file included from ./MCMC.h:5:
In file included from ./Individual.h:10:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:67:
In file included from /usr/local/clang21/bin/../include/c++/v1/numeric:164:
/usr/local/clang21/bin/../include/c++/v1/__numeric/accumulate.h:42:14: error: no matching function for call to object of type '(lambda at Population.cpp:423:31)'
42 | __init = __binary_op(std::move(__init), *__first);
| ^~~~~~~~~~~
Population.cpp:422:15: note: in instantiation of function template specialization 'std::accumulate<std::__wrap_iter<const std::pair<double, Individual> *>, double, (lambda at Population.cpp:423:31)>' requested here
422 | return std::accumulate(individuals_.begin(), individuals_.end(),
| ^
Population.cpp:423:31: note: candidate function not viable: expects an lvalue for 1st argument
423 | 0.0, [](double& a, const std::pair<double,Individual>& b){
| ^ ~~~~~~~~~
Population.cpp:423:31: note: conversion candidate of type 'double (*)(double &, const std::pair<double, Individual> &)'
1 error generated.
make[1]: *** [/data/gannet/ripley/R/R-clang/etc/Makeconf:201: Population.o] Error 1
make[1]: Target 'all' not remade because of errors.
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang/emcAdr/src'
ERROR: compilation failed for package ‘emcAdr’
* removing ‘/data/gannet/ripley/R/packages/tests-clang/emcAdr.Rcheck/emcAdr’