* installing *source* package 'cusna' ...
** this is package 'cusna' version '0.1.0'
** package 'cusna' successfully unpacked and MD5 sums checked
** using staged installation
cusna: no nvcc on PATH -- building CPU-only (the CRAN default).
** libs
specified C++17
using C++ compiler: 'g++.exe (GCC) 14.3.0'
using C++17
make[1]: Entering directory '/d/temp/2026_07_16_01_50_00_32434/RtmpOAaJBV/R.INSTALL133ec472b179f/cusna/src'
g++  -std=gnu++17 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I. -DLIBCUSNA_BUILD -DCUSNA_CPU_ONLY -I'D:/RCompile/CRANpkg/lib/4.6/cpp11/include'   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c cpp11.cpp -o cpp11.o
g++  -std=gnu++17 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I. -DLIBCUSNA_BUILD -DCUSNA_CPU_ONLY -I'D:/RCompile/CRANpkg/lib/4.6/cpp11/include'   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c cusna_glue.cpp -o cusna_glue.o
g++  -std=gnu++17 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I. -DLIBCUSNA_BUILD -DCUSNA_CPU_ONLY -I'D:/RCompile/CRANpkg/lib/4.6/cpp11/include'   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c cusna_saom_glue.cpp -o cusna_saom_glue.o
g++  -std=gnu++17 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I. -DLIBCUSNA_BUILD -DCUSNA_CPU_ONLY -I'D:/RCompile/CRANpkg/lib/4.6/cpp11/include'   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c libcusna_ergm_cpu.cpp -o libcusna_ergm_cpu.o
g++  -std=gnu++17 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I. -DLIBCUSNA_BUILD -DCUSNA_CPU_ONLY -I'D:/RCompile/CRANpkg/lib/4.6/cpp11/include'   -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"   -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c libcusna_saom_cpu.cpp -o libcusna_saom_cpu.o
libcusna_saom_cpu.cpp: In function 'double {anonymous}::ego_ds(int, const uint8_t*, int, const long int*, const long int*, long int, const int*, double, double, double, double, double, int, int, double, const double*)':
libcusna_saom_cpu.cpp:64:19: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   64 |                   if (tp[j] > 0) ++cnt; return delta * (double)cnt; }
      |                   ^~
libcusna_saom_cpu.cpp:64:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   64 |                   if (tp[j] > 0) ++cnt; return delta * (double)cnt; }
      |                                         ^~~~~~
libcusna_saom_cpu.cpp:66:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   66 |                   for (int h = 0; h < n; ++h) if (ai[h] && a[(size_t)h*n+i] && aj[h]) ++cnt; return delta * (double)cnt; }
      |                   ^~~
libcusna_saom_cpu.cpp:66:94: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   66 |                   for (int h = 0; h < n; ++h) if (ai[h] && a[(size_t)h*n+i] && aj[h]) ++cnt; return delta * (double)cnt; }
      |                                                                                              ^~~~~~
libcusna_saom_cpu.cpp: In function 'void {anonymous}::simulate_one(const Ctx&, uint32_t, uint8_t*, int*, double*, double*, double*, long int*, ChainOut&)':
libcusna_saom_cpu.cpp:221:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  221 |                 if (up_ok) s -= pup * cup[e]; if (dn_ok) s -= pdn * cdn[e]; bscores[e] += s; }
      |                 ^~
libcusna_saom_cpu.cpp:221:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  221 |                 if (up_ok) s -= pup * cup[e]; if (dn_ok) s -= pdn * cdn[e]; bscores[e] += s; }
      |                                               ^~
libcusna_saom_cpu.cpp: In function 'cusna_status cusna_network_stats(const uint8_t*, int32_t, int32_t, const int32_t*, const double*, const double*, const double*, const uint8_t*, const int32_t*, const double*, const int32_t*, const int32_t*, const double*, int32_t, double*)':
libcusna_saom_cpu.cpp:633:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  633 |         if (t==26||t==30) need_fb = true; if (t==27) need_bf = true; if (t==28) need_bb = true; }
      |         ^~
libcusna_saom_cpu.cpp:633:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  633 |         if (t==26||t==30) need_fb = true; if (t==27) need_bf = true; if (t==28) need_bb = true; }
      |                                           ^~
libcusna_saom_cpu.cpp: In function 'cusna_status cusna_cross_stats(const uint8_t*, const uint8_t*, int32_t, int32_t, int32_t, double, double*)':
libcusna_saom_cpu.cpp:841:50: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  841 |             case 34: for (int i = 0; i < n; ++i) for (int j = 0; j < n; ++j)
      |                                                  ^~~
libcusna_saom_cpu.cpp:842:72: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  842 |                         acc += (a[(size_t)i*n+j] & wp[(size_t)j*n+i]); break;
      |                                                                        ^~~~~
libcusna_saom_cpu.cpp:843:50: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  843 |             case 35: for (int i = 0; i < n; ++i) for (int j = 0; j < n; ++j)
      |                                                  ^~~
libcusna_saom_cpu.cpp:844:92: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  844 |                         acc += (a[(size_t)i*n+j] & wp[(size_t)i*n+j] & wp[(size_t)j*n+i]); break;
      |                                                                                            ^~~~~
g++ -shared -s -static-libgcc -o cusna.dll tmp.def cpp11.o cusna_glue.o cusna_saom_glue.o libcusna_ergm_cpu.o libcusna_saom_cpu.o -fopenmp -Ld:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools45/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R-4.6.1/bin/x64 -lR
make[1]: Leaving directory '/d/temp/2026_07_16_01_50_00_32434/RtmpOAaJBV/R.INSTALL133ec472b179f/cusna/src'
make[1]: Entering directory '/d/temp/2026_07_16_01_50_00_32434/RtmpOAaJBV/R.INSTALL133ec472b179f/cusna/src'
make[1]: Leaving directory '/d/temp/2026_07_16_01_50_00_32434/RtmpOAaJBV/R.INSTALL133ec472b179f/cusna/src'
installing to d:/Rcompile/CRANpkg/lib/4.6/00LOCK-cusna/00new/cusna/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* MD5 sums
packaged installation of 'cusna' as cusna_0.1.0.zip
* DONE (cusna)