* installing *source* package ‘ernm’ ...
** this is package ‘ernm’ version ‘1.0.0’
** package ‘ernm’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘clang version 20.1.7’
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang/ernm/src'
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c Ranker.cpp -o Ranker.o
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/ernm.h:14:
./../inst/include/DyadToggles.h:1613:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
 1613 |                 int degree;
      |                     ^
1 warning generated.
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c RcppModule.cpp -o RcppModule.o
In file included from RcppModule.cpp:6:
../inst/include/DyadToggles.h:1613:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
 1613 |                 int degree;
      |                     ^
In file included from RcppModule.cpp:8:
In file included from ../inst/include/MetropolisHastings.h:13:
../inst/include/ToggleController.h:73:9: warning: instantiation of variable 'ernm::ToggleController<ernm::Directed>::dyadMapPtr' required here, but no definition is available [-Wundefined-var-template]
   73 |                         pS = dyadMapPtr->at(name);
      |                              ^
../inst/include/MetropolisHastings.h:163:56: note: in instantiation of member function 'ernm::ToggleController<ernm::Directed>::getDyadToggle' requested here
  163 |                 dyadToggle = DyadTogglePtr(ToggleController<Engine>::getDyadToggle(name,params));
      |                                                                      ^
RcppModule.cpp:82:63: note: in instantiation of member function 'ernm::MetropolisHastings<ernm::Directed>::setDyadToggleType' requested here
   82 |                         .method("setDyadToggleType",&MetropolisHastings<Directed>::setDyadToggleType)
      |                                                                                    ^
../inst/include/ToggleController.h:26:18: note: forward declaration of template entity is here
   26 |         static DtMapPtr dyadMapPtr;
      |                         ^
../inst/include/ToggleController.h:73:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::ToggleController<ernm::Directed>::dyadMapPtr' is explicitly instantiated in another translation unit
   73 |                         pS = dyadMapPtr->at(name);
      |                              ^
../inst/include/ToggleController.h:93:9: warning: instantiation of variable 'ernm::ToggleController<ernm::Directed>::vertexMapPtr' required here, but no definition is available [-Wundefined-var-template]
   93 |                         pS = vertexMapPtr->at(name);
      |                              ^
../inst/include/MetropolisHastings.h:171:58: note: in instantiation of member function 'ernm::ToggleController<ernm::Directed>::getVertexToggle' requested here
  171 |                 vertToggle = VertexTogglePtr(ToggleController<Engine>::getVertexToggle(name,params));
      |                                                                        ^
RcppModule.cpp:83:65: note: in instantiation of member function 'ernm::MetropolisHastings<ernm::Directed>::setVertexToggleType' requested here
   83 |                         .method("setVertexToggleType",&MetropolisHastings<Directed>::setVertexToggleType)
      |                                                                                      ^
../inst/include/ToggleController.h:27:18: note: forward declaration of template entity is here
   27 |         static VtMapPtr vertexMapPtr;
      |                         ^
../inst/include/ToggleController.h:93:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::ToggleController<ernm::Directed>::vertexMapPtr' is explicitly instantiated in another translation unit
   93 |                         pS = vertexMapPtr->at(name);
      |                              ^
../inst/include/ToggleController.h:73:9: warning: instantiation of variable 'ernm::ToggleController<ernm::Undirected>::dyadMapPtr' required here, but no definition is available [-Wundefined-var-template]
   73 |                         pS = dyadMapPtr->at(name);
      |                              ^
../inst/include/MetropolisHastings.h:163:56: note: in instantiation of member function 'ernm::ToggleController<ernm::Undirected>::getDyadToggle' requested here
  163 |                 dyadToggle = DyadTogglePtr(ToggleController<Engine>::getDyadToggle(name,params));
      |                                                                      ^
RcppModule.cpp:94:65: note: in instantiation of member function 'ernm::MetropolisHastings<ernm::Undirected>::setDyadToggleType' requested here
   94 |                         .method("setDyadToggleType",&MetropolisHastings<Undirected>::setDyadToggleType)
      |                                                                                      ^
../inst/include/ToggleController.h:26:18: note: forward declaration of template entity is here
   26 |         static DtMapPtr dyadMapPtr;
      |                         ^
../inst/include/ToggleController.h:73:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::ToggleController<ernm::Undirected>::dyadMapPtr' is explicitly instantiated in another translation unit
   73 |                         pS = dyadMapPtr->at(name);
      |                              ^
../inst/include/ToggleController.h:93:9: warning: instantiation of variable 'ernm::ToggleController<ernm::Undirected>::vertexMapPtr' required here, but no definition is available [-Wundefined-var-template]
   93 |                         pS = vertexMapPtr->at(name);
      |                              ^
../inst/include/MetropolisHastings.h:171:58: note: in instantiation of member function 'ernm::ToggleController<ernm::Undirected>::getVertexToggle' requested here
  171 |                 vertToggle = VertexTogglePtr(ToggleController<Engine>::getVertexToggle(name,params));
      |                                                                        ^
RcppModule.cpp:95:67: note: in instantiation of member function 'ernm::MetropolisHastings<ernm::Undirected>::setVertexToggleType' requested here
   95 |                         .method("setVertexToggleType",&MetropolisHastings<Undirected>::setVertexToggleType)
      |                                                                                        ^
../inst/include/ToggleController.h:27:18: note: forward declaration of template entity is here
   27 |         static VtMapPtr vertexMapPtr;
      |                         ^
../inst/include/ToggleController.h:93:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::ToggleController<ernm::Undirected>::vertexMapPtr' is explicitly instantiated in another translation unit
   93 |                         pS = vertexMapPtr->at(name);
      |                              ^
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c StatController.cpp -o StatController.o
In file included from RcppModule.cpp:8:
In file included from ../inst/include/MetropolisHastings.h:11:
In file included from ../inst/include/Model.h:13:
../inst/include/StatController.h:61:9: warning: instantiation of variable 'ernm::StatController<ernm::Undirected>::statMapPtr' required here, but no definition is available [-Wundefined-var-template]
   61 |                         pS = statMapPtr->at(name);
      |                              ^
../inst/include/Model.h:452:54: note: in instantiation of member function 'ernm::StatController<ernm::Undirected>::getStat' requested here
  452 |                 AbstractStat<Engine>* ps = StatController<Engine>::getStat(name, params);
      |                                                                    ^
RcppModule.cpp:140:46: note: in instantiation of member function 'ernm::Model<ernm::Undirected>::addStatistic' requested here
  140 |                 .method("addStatistic",&Model<Undirected>::addStatistic)
      |                                                            ^
../inst/include/StatController.h:38:20: note: forward declaration of template entity is here
   38 |         static StatMapPtr statMapPtr;
      |                           ^
../inst/include/StatController.h:61:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::StatController<ernm::Undirected>::statMapPtr' is explicitly instantiated in another translation unit
   61 |                         pS = statMapPtr->at(name);
      |                              ^
../inst/include/StatController.h:77:9: warning: instantiation of variable 'ernm::StatController<ernm::Undirected>::offsetMapPtr' required here, but no definition is available [-Wundefined-var-template]
   77 |                         pS = offsetMapPtr->at(name);
      |                              ^
../inst/include/Model.h:465:56: note: in instantiation of member function 'ernm::StatController<ernm::Undirected>::getOffset' requested here
  465 |                 AbstractOffset<Engine>* ps = StatController<Engine>::getOffset(name, params);
      |                                                                      ^
RcppModule.cpp:141:43: note: in instantiation of member function 'ernm::Model<ernm::Undirected>::addOffset' requested here
  141 |                 .method("addOffset",&Model<Undirected>::addOffset)
      |                                                         ^
../inst/include/StatController.h:39:22: note: forward declaration of template entity is here
   39 |         static OffsetMapPtr offsetMapPtr;
      |                             ^
../inst/include/StatController.h:77:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::StatController<ernm::Undirected>::offsetMapPtr' is explicitly instantiated in another translation unit
   77 |                         pS = offsetMapPtr->at(name);
      |                              ^
../inst/include/StatController.h:61:9: warning: instantiation of variable 'ernm::StatController<ernm::Directed>::statMapPtr' required here, but no definition is available [-Wundefined-var-template]
   61 |                         pS = statMapPtr->at(name);
      |                              ^
../inst/include/Model.h:452:54: note: in instantiation of member function 'ernm::StatController<ernm::Directed>::getStat' requested here
  452 |                 AbstractStat<Engine>* ps = StatController<Engine>::getStat(name, params);
      |                                                                    ^
RcppModule.cpp:160:44: note: in instantiation of member function 'ernm::Model<ernm::Directed>::addStatistic' requested here
  160 |                 .method("addStatistic",&Model<Directed>::addStatistic)
      |                                                          ^
../inst/include/StatController.h:38:20: note: forward declaration of template entity is here
   38 |         static StatMapPtr statMapPtr;
      |                           ^
../inst/include/StatController.h:61:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::StatController<ernm::Directed>::statMapPtr' is explicitly instantiated in another translation unit
   61 |                         pS = statMapPtr->at(name);
      |                              ^
../inst/include/StatController.h:77:9: warning: instantiation of variable 'ernm::StatController<ernm::Directed>::offsetMapPtr' required here, but no definition is available [-Wundefined-var-template]
   77 |                         pS = offsetMapPtr->at(name);
      |                              ^
../inst/include/Model.h:465:56: note: in instantiation of member function 'ernm::StatController<ernm::Directed>::getOffset' requested here
  465 |                 AbstractOffset<Engine>* ps = StatController<Engine>::getOffset(name, params);
      |                                                                      ^
RcppModule.cpp:161:41: note: in instantiation of member function 'ernm::Model<ernm::Directed>::addOffset' requested here
  161 |                 .method("addOffset",&Model<Directed>::addOffset)
      |                                                       ^
../inst/include/StatController.h:39:22: note: forward declaration of template entity is here
   39 |         static OffsetMapPtr offsetMapPtr;
      |                             ^
../inst/include/StatController.h:77:9: note: add an explicit instantiation declaration to suppress this warning if 'ernm::StatController<ernm::Directed>::offsetMapPtr' is explicitly instantiated in another translation unit
   77 |                         pS = offsetMapPtr->at(name);
      |                              ^
In file included from StatController.cpp:3:
../inst/include/Stats.h:334:36: warning: extra ';' inside a class [-Wextra-semi]
  334 |         std::vector<double> sumNbrDegrees;;
      |                                           ^
../inst/include/Stats.h:410:11: warning: variable 'nExpected' set but not used [-Wunused-but-set-variable]
  410 |                         double nExpected = nEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:456:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  456 |                         double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:492:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  492 |                         double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:527:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  527 |                         double curNExpected = curNEdgesBetweenNbrs * curNPosTri / curNPosEdges;
      |                                ^
../inst/include/Stats.h:528:11: warning: variable 'newNExpected' set but not used [-Wunused-but-set-variable]
  528 |                         double newNExpected = newNEdgesBetweenNbrs * newNPosTri / newNPosEdges;
      |                                ^
../inst/include/Stats.h:1450:14: warning: unused variable 'addingEdge' [-Wunused-variable]
 1450 |         bool addingEdge = !net.hasEdge(from,to);
      |              ^~~~~~~~~~
../inst/include/Stats.h:1635:10: warning: unused variable 'var' [-Wunused-variable]
 1635 |                 double var = 0.0;
      |                        ^~~
../inst/include/Stats.h:1636:10: warning: unused variable 'skew' [-Wunused-variable]
 1636 |                 double skew = 0.0;
      |                        ^~~~
../inst/include/Stats.h:1748:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
 1748 |                 double var = 0.0;
      |                        ^
../inst/include/Stats.h:1879:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
 1879 |                 double sum = 0.0;
      |                        ^
../inst/include/Stats.h:2120:10: warning: unused variable 'toDeg' [-Wunused-variable]
 2120 |                 double toDeg;
      |                        ^~~~~
../inst/include/Stats.h:2121:10: warning: unused variable 'fromDeg' [-Wunused-variable]
 2121 |                 double fromDeg;
      |                        ^~~~~~~
../inst/include/Stats.h:2132:10: warning: variable 'deg' set but not used [-Wunused-but-set-variable]
 2132 |                 double deg = net.degree(from);
      |                        ^
../inst/include/Stats.h:2212:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
 2212 |                 double var = 0.0;
      |                        ^
../inst/include/Stats.h:2266:10: warning: unused variable 'mean' [-Wunused-variable]
 2266 |                 double mean = sum / n;
      |                        ^~~~
In file included from StatController.cpp:1:
In file included from ../inst/include/StatController.h:9:
In file included from ../inst/include/Stat.h:13:
In file included from ../inst/include/BinaryNet.h:12:
In file included from ../inst/include/DirectedVertex.h:13:
In file included from ../inst/include/Vertex.h:16:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/container/flat_set.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/flat_tree.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/container/vector.hpp:32:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/advanced_insert_int.hpp:28:
/data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/copy_move_algo.hpp:231:20: warning: first argument in call to 'memmove' is a pointer to non-trivially copyable type 'value_type' (aka 'std::pair<int, int>') [-Wnontrivial-memcall]
  231 |       std::memmove(dest_raw, beg_raw, sizeof(value_type)*n);
      |                    ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/copy_move_algo.hpp:377:16: note: in instantiation of function template specialization 'boost::container::dtl::memmove<std::pair<int, int> *, std::pair<int, int> *>' requested here
  377 | {  return dtl::memmove(f, l, r); }
      |                ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/copy_move_algo.hpp:1306:35: note: in instantiation of function template specialization 'boost::container::uninitialized_move_alloc<boost::container::new_allocator<std::pair<int, int>>, std::pair<int, int> *, std::pair<int, int> *>' requested here
 1306 |    O d_last = ::boost::container::uninitialized_move_alloc(a, first, pos, d_first);
      |                                   ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/vector.hpp:3276:25: note: in instantiation of function template specialization 'boost::container::uninitialized_move_and_insert_alloc<boost::container::new_allocator<std::pair<int, int>>, std::pair<int, int> *, std::pair<int, int> *, boost::container::dtl::insert_emplace_proxy<boost::container::new_allocator<std::pair<int, int>>, std::pair<int, int>>>' requested here
 3276 |       boost::container::uninitialized_move_and_insert_alloc
      |                         ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/vector.hpp:3034:13: note: in instantiation of function template specialization 'boost::container::vector<std::pair<int, int>>::priv_insert_forward_range_new_allocation<boost::container::dtl::insert_emplace_proxy<boost::container::new_allocator<std::pair<int, int>>, std::pair<int, int>>>' requested here
 3034 |       this->priv_insert_forward_range_new_allocation(new_buf, new_cap, raw_pos, n, insert_range_proxy);
      |             ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/vector.hpp:3099:23: note: in instantiation of function template specialization 'boost::container::vector<std::pair<int, int>>::priv_insert_forward_range_no_capacity<boost::container::dtl::insert_emplace_proxy<boost::container::new_allocator<std::pair<int, int>>, std::pair<int, int>>>' requested here
 3099 |          return this->priv_insert_forward_range_no_capacity(p, n, insert_range_proxy, alloc_version());
      |                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/vector.hpp:1952:20: note: (skipping 6 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
 1952 |       return this->priv_insert_forward_range( vector_iterator_get_ptr(position), 1
      |                    ^
../inst/include/Stats.h:3400:18: note: in instantiation of member function 'boost::container::flat_map<int, int>::operator[]' requested here
 3400 |                 sharedValues[f][t] = nbrs;
      |                                ^
../inst/include/Stats.h:3424:4: note: in instantiation of member function 'ernm::Gwesp<ernm::Directed>::setSharedValue' requested here
 3424 |                         setSharedValue(net,from,to,sn);
      |                         ^
../inst/include/Stats.h:3327:2: note: in instantiation of member function 'ernm::Gwesp<ernm::Directed>::vCalculate' requested here
 3327 |         Gwesp() : alpha(.5), oneexpa(1.0 - exp(-alpha)), expa(exp(alpha)),
      |         ^
../inst/include/Stat.h:155:11: note: in instantiation of member function 'ernm::Gwesp<ernm::Directed>::Gwesp' requested here
  155 |         Stat() : stat(){}
      |                  ^
StatController.cpp:52:37: note: in instantiation of member function 'ernm::Stat<ernm::Directed, ernm::Gwesp<ernm::Directed>>::Stat' requested here
   52 |         registerStatistic( DirStatPtr( new DirectedGwesp() ) );
      |                                            ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/copy_move_algo.hpp:231:20: note: explicitly cast the pointer to silence this warning
  231 |       std::memmove(dest_raw, beg_raw, sizeof(value_type)*n);
      |                    ^
      |                    (void*)
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c ToggleController.cpp -o ToggleController.o
In file included from ToggleController.cpp:11:
../inst/include/DyadToggles.h:1613:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
 1613 |                 int degree;
      |                     ^
1 warning generated.
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c VarAttrib.cpp -o VarAttrib.o
17 warnings generated.
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c main.cpp -o main.o
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c test.cpp -o test.o
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c test_BinaryNet.cpp -o test_BinaryNet.o
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c test_Constraint.cpp -o test_Constraint.o
9 warnings generated.
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c test_Stat.cpp -o test_Stat.o
In file included from test_Constraint.cpp:12:
../inst/include/Stats.h:334:36: warning: extra ';' inside a class [-Wextra-semi]
  334 |         std::vector<double> sumNbrDegrees;;
      |                                           ^
../inst/include/Stats.h:410:11: warning: variable 'nExpected' set but not used [-Wunused-but-set-variable]
  410 |                         double nExpected = nEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:456:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  456 |                         double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:492:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  492 |                         double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:527:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  527 |                         double curNExpected = curNEdgesBetweenNbrs * curNPosTri / curNPosEdges;
      |                                ^
../inst/include/Stats.h:528:11: warning: variable 'newNExpected' set but not used [-Wunused-but-set-variable]
  528 |                         double newNExpected = newNEdgesBetweenNbrs * newNPosTri / newNPosEdges;
      |                                ^
../inst/include/Stats.h:1450:14: warning: unused variable 'addingEdge' [-Wunused-variable]
 1450 |         bool addingEdge = !net.hasEdge(from,to);
      |              ^~~~~~~~~~
../inst/include/Stats.h:1635:10: warning: unused variable 'var' [-Wunused-variable]
 1635 |                 double var = 0.0;
      |                        ^~~
../inst/include/Stats.h:1636:10: warning: unused variable 'skew' [-Wunused-variable]
 1636 |                 double skew = 0.0;
      |                        ^~~~
../inst/include/Stats.h:1748:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
 1748 |                 double var = 0.0;
      |                        ^
../inst/include/Stats.h:1879:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
 1879 |                 double sum = 0.0;
      |                        ^
../inst/include/Stats.h:2120:10: warning: unused variable 'toDeg' [-Wunused-variable]
 2120 |                 double toDeg;
      |                        ^~~~~
../inst/include/Stats.h:2121:10: warning: unused variable 'fromDeg' [-Wunused-variable]
 2121 |                 double fromDeg;
      |                        ^~~~~~~
../inst/include/Stats.h:2132:10: warning: variable 'deg' set but not used [-Wunused-but-set-variable]
 2132 |                 double deg = net.degree(from);
      |                        ^
../inst/include/Stats.h:2212:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
 2212 |                 double var = 0.0;
      |                        ^
../inst/include/Stats.h:2266:10: warning: unused variable 'mean' [-Wunused-variable]
 2266 |                 double mean = sum / n;
      |                        ^~~~
In file included from test_Constraint.cpp:17:
../inst/include/DyadToggles.h:1613:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
 1613 |                 int degree;
      |                     ^
In file included from test_Stat.cpp:11:
../inst/include/Stats.h:334:36: warning: extra ';' inside a class [-Wextra-semi]
  334 |         std::vector<double> sumNbrDegrees;;
      |                                           ^
../inst/include/Stats.h:410:11: warning: variable 'nExpected' set but not used [-Wunused-but-set-variable]
  410 |                         double nExpected = nEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:456:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  456 |                         double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:492:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  492 |                         double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:527:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  527 |                         double curNExpected = curNEdgesBetweenNbrs * curNPosTri / curNPosEdges;
      |                                ^
../inst/include/Stats.h:528:11: warning: variable 'newNExpected' set but not used [-Wunused-but-set-variable]
  528 |                         double newNExpected = newNEdgesBetweenNbrs * newNPosTri / newNPosEdges;
      |                                ^
../inst/include/Stats.h:1450:14: warning: unused variable 'addingEdge' [-Wunused-variable]
 1450 |         bool addingEdge = !net.hasEdge(from,to);
      |              ^~~~~~~~~~
../inst/include/Stats.h:1635:10: warning: unused variable 'var' [-Wunused-variable]
 1635 |                 double var = 0.0;
      |                        ^~~
../inst/include/Stats.h:1636:10: warning: unused variable 'skew' [-Wunused-variable]
 1636 |                 double skew = 0.0;
      |                        ^~~~
../inst/include/Stats.h:1748:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
 1748 |                 double var = 0.0;
      |                        ^
../inst/include/Stats.h:1879:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
 1879 |                 double sum = 0.0;
      |                        ^
../inst/include/Stats.h:2120:10: warning: unused variable 'toDeg' [-Wunused-variable]
 2120 |                 double toDeg;
      |                        ^~~~~
../inst/include/Stats.h:2121:10: warning: unused variable 'fromDeg' [-Wunused-variable]
 2121 |                 double fromDeg;
      |                        ^~~~~~~
../inst/include/Stats.h:2132:10: warning: variable 'deg' set but not used [-Wunused-but-set-variable]
 2132 |                 double deg = net.degree(from);
      |                        ^
../inst/include/Stats.h:2212:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
 2212 |                 double var = 0.0;
      |                        ^
../inst/include/Stats.h:2266:10: warning: unused variable 'mean' [-Wunused-variable]
 2266 |                 double mean = sum / n;
      |                        ^~~~
In file included from test_Stat.cpp:14:
../inst/include/DyadToggles.h:1613:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
 1613 |                 int degree;
      |                     ^
17 warnings generated.
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c test_TaperedModel.cpp -o test_TaperedModel.o
In file included from test_Stat.cpp:9:
In file included from ../inst/include/BinaryNet.h:12:
In file included from ../inst/include/DirectedVertex.h:13:
In file included from ../inst/include/Vertex.h:16:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/container/flat_set.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/flat_tree.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/container/vector.hpp:32:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/advanced_insert_int.hpp:28:
/data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/copy_move_algo.hpp:231:20: warning: first argument in call to 'memmove' is a pointer to non-trivially copyable type 'value_type' (aka 'std::pair<int, int>') [-Wnontrivial-memcall]
  231 |       std::memmove(dest_raw, beg_raw, sizeof(value_type)*n);
      |                    ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/copy_move_algo.hpp:377:16: note: in instantiation of function template specialization 'boost::container::dtl::memmove<std::pair<int, int> *, std::pair<int, int> *>' requested here
  377 | {  return dtl::memmove(f, l, r); }
      |                ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/copy_move_algo.hpp:1306:35: note: in instantiation of function template specialization 'boost::container::uninitialized_move_alloc<boost::container::new_allocator<std::pair<int, int>>, std::pair<int, int> *, std::pair<int, int> *>' requested here
 1306 |    O d_last = ::boost::container::uninitialized_move_alloc(a, first, pos, d_first);
      |                                   ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/vector.hpp:3276:25: note: in instantiation of function template specialization 'boost::container::uninitialized_move_and_insert_alloc<boost::container::new_allocator<std::pair<int, int>>, std::pair<int, int> *, std::pair<int, int> *, boost::container::dtl::insert_emplace_proxy<boost::container::new_allocator<std::pair<int, int>>, std::pair<int, int>>>' requested here
 3276 |       boost::container::uninitialized_move_and_insert_alloc
      |                         ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/vector.hpp:3034:13: note: in instantiation of function template specialization 'boost::container::vector<std::pair<int, int>>::priv_insert_forward_range_new_allocation<boost::container::dtl::insert_emplace_proxy<boost::container::new_allocator<std::pair<int, int>>, std::pair<int, int>>>' requested here
 3034 |       this->priv_insert_forward_range_new_allocation(new_buf, new_cap, raw_pos, n, insert_range_proxy);
      |             ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/vector.hpp:3099:23: note: in instantiation of function template specialization 'boost::container::vector<std::pair<int, int>>::priv_insert_forward_range_no_capacity<boost::container::dtl::insert_emplace_proxy<boost::container::new_allocator<std::pair<int, int>>, std::pair<int, int>>>' requested here
 3099 |          return this->priv_insert_forward_range_no_capacity(p, n, insert_range_proxy, alloc_version());
      |                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/vector.hpp:1952:20: note: (skipping 7 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
 1952 |       return this->priv_insert_forward_range( vector_iterator_get_ptr(position), 1
      |                    ^
../inst/include/Stats.h:3424:4: note: in instantiation of member function 'ernm::Gwesp<ernm::Directed>::setSharedValue' requested here
 3424 |                         setSharedValue(net,from,to,sn);
      |                         ^
../inst/include/Stats.h:3333:2: note: in instantiation of member function 'ernm::Gwesp<ernm::Directed>::vCalculate' requested here
 3333 |         Gwesp(List params) : sharedValues(){
      |         ^
../inst/include/Stat.h:157:28: note: in instantiation of member function 'ernm::Gwesp<ernm::Directed>::Gwesp' requested here
  157 |         Stat(Rcpp::List params) : stat(params){}
      |                                   ^
test_Stat.cpp:191:16: note: in instantiation of member function 'ernm::Stat<ernm::Directed, ernm::Gwesp<ernm::Directed>>::Stat' requested here
  191 |                         new Stat<Engine, Gwesp<Engine> >(ncpar));
      |                             ^
test_Stat.cpp:276:11: note: in instantiation of function template specialization 'ernm::tests::changeStatTest<ernm::Directed>' requested here
  276 |         RUN_TEST(changeStatTest<Directed>("Homophily"));
      |                  ^
/data/gannet/ripley/R/test-clang/BH/include/boost/container/detail/copy_move_algo.hpp:231:20: note: explicitly cast the pointer to silence this warning
  231 |       std::memmove(dest_raw, beg_raw, sizeof(value_type)*n);
      |                    ^
      |                    (void*)
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c test_Toggle.cpp -o test_Toggle.o
In file included from test_TaperedModel.cpp:14:
../inst/include/Stats.h:334:36: warning: extra ';' inside a class [-Wextra-semi]
  334 |         std::vector<double> sumNbrDegrees;;
      |                                           ^
../inst/include/Stats.h:410:11: warning: variable 'nExpected' set but not used [-Wunused-but-set-variable]
  410 |                         double nExpected = nEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:456:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  456 |                         double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:492:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  492 |                         double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:527:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  527 |                         double curNExpected = curNEdgesBetweenNbrs * curNPosTri / curNPosEdges;
      |                                ^
../inst/include/Stats.h:528:11: warning: variable 'newNExpected' set but not used [-Wunused-but-set-variable]
  528 |                         double newNExpected = newNEdgesBetweenNbrs * newNPosTri / newNPosEdges;
      |                                ^
../inst/include/Stats.h:1450:14: warning: unused variable 'addingEdge' [-Wunused-variable]
 1450 |         bool addingEdge = !net.hasEdge(from,to);
      |              ^~~~~~~~~~
../inst/include/Stats.h:1635:10: warning: unused variable 'var' [-Wunused-variable]
 1635 |                 double var = 0.0;
      |                        ^~~
../inst/include/Stats.h:1636:10: warning: unused variable 'skew' [-Wunused-variable]
 1636 |                 double skew = 0.0;
      |                        ^~~~
../inst/include/Stats.h:1748:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
 1748 |                 double var = 0.0;
      |                        ^
../inst/include/Stats.h:1879:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
 1879 |                 double sum = 0.0;
      |                        ^
../inst/include/Stats.h:2120:10: warning: unused variable 'toDeg' [-Wunused-variable]
 2120 |                 double toDeg;
      |                        ^~~~~
../inst/include/Stats.h:2121:10: warning: unused variable 'fromDeg' [-Wunused-variable]
 2121 |                 double fromDeg;
      |                        ^~~~~~~
../inst/include/Stats.h:2132:10: warning: variable 'deg' set but not used [-Wunused-but-set-variable]
 2132 |                 double deg = net.degree(from);
      |                        ^
../inst/include/Stats.h:2212:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
 2212 |                 double var = 0.0;
      |                        ^
../inst/include/Stats.h:2266:10: warning: unused variable 'mean' [-Wunused-variable]
 2266 |                 double mean = sum / n;
      |                        ^~~~
In file included from test_TaperedModel.cpp:17:
../inst/include/DyadToggles.h:1613:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
 1613 |                 int degree;
      |                     ^
In file included from test_Toggle.cpp:11:
../inst/include/Stats.h:334:36: warning: extra ';' inside a class [-Wextra-semi]
  334 |         std::vector<double> sumNbrDegrees;;
      |                                           ^
../inst/include/Stats.h:410:11: warning: variable 'nExpected' set but not used [-Wunused-but-set-variable]
  410 |                         double nExpected = nEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:456:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  456 |                         double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:492:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  492 |                         double curNExpected = curNEdgesBetweenNbrs * nPosTri / nPosEdges;
      |                                ^
../inst/include/Stats.h:527:11: warning: variable 'curNExpected' set but not used [-Wunused-but-set-variable]
  527 |                         double curNExpected = curNEdgesBetweenNbrs * curNPosTri / curNPosEdges;
      |                                ^
../inst/include/Stats.h:528:11: warning: variable 'newNExpected' set but not used [-Wunused-but-set-variable]
  528 |                         double newNExpected = newNEdgesBetweenNbrs * newNPosTri / newNPosEdges;
      |                                ^
../inst/include/Stats.h:1450:14: warning: unused variable 'addingEdge' [-Wunused-variable]
 1450 |         bool addingEdge = !net.hasEdge(from,to);
      |              ^~~~~~~~~~
../inst/include/Stats.h:1635:10: warning: unused variable 'var' [-Wunused-variable]
 1635 |                 double var = 0.0;
      |                        ^~~
../inst/include/Stats.h:1636:10: warning: unused variable 'skew' [-Wunused-variable]
 1636 |                 double skew = 0.0;
      |                        ^~~~
../inst/include/Stats.h:1748:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
 1748 |                 double var = 0.0;
      |                        ^
../inst/include/Stats.h:1879:10: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
 1879 |                 double sum = 0.0;
      |                        ^
../inst/include/Stats.h:2120:10: warning: unused variable 'toDeg' [-Wunused-variable]
 2120 |                 double toDeg;
      |                        ^~~~~
../inst/include/Stats.h:2121:10: warning: unused variable 'fromDeg' [-Wunused-variable]
 2121 |                 double fromDeg;
      |                        ^~~~~~~
../inst/include/Stats.h:2132:10: warning: variable 'deg' set but not used [-Wunused-but-set-variable]
 2132 |                 double deg = net.degree(from);
      |                        ^
../inst/include/Stats.h:2212:10: warning: variable 'var' set but not used [-Wunused-but-set-variable]
 2212 |                 double var = 0.0;
      |                        ^
../inst/include/Stats.h:2266:10: warning: unused variable 'mean' [-Wunused-variable]
 2266 |                 double mean = sum / n;
      |                        ^~~~
In file included from test_Toggle.cpp:14:
../inst/include/DyadToggles.h:1613:7: warning: variable 'degree' set but not used [-Wunused-but-set-variable]
 1613 |                 int degree;
      |                     ^
17 warnings generated.
17 warnings generated.
clang++-20 -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../inst/include -I'/data/gannet/ripley/R/test-clang/BH/include' -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -isystem /usr/local/clang20/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw   -c util.cpp -o util.o
18 warnings generated.
clang++-20 -std=gnu++17 -shared -L/usr/local/clang/lib64 -L/usr/local/clang20/lib -L/usr/local/clang20/lib/x86_64-unknown-linux-gnu -L/usr/local/lib64 -L/usr/local/clang20/lib/clang/20/lib/x86_64-unknown-linux-gnu -o ernm.so Ranker.o RcppExports.o RcppModule.o StatController.o ToggleController.o VarAttrib.o main.o test.o test_BinaryNet.o test_Constraint.o test_Stat.o test_TaperedModel.o test_Toggle.o util.o
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang/ernm/src'
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang/ernm/src'
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang/ernm/src'
installing to /data/gannet/ripley/R/packages/tests-clang/ernm.Rcheck/00LOCK-ernm/00new/ernm/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** 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 (ernm)