* installing *source* package 'PeakSegOptimal' ...
** package 'PeakSegOptimal' successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: 'g++.exe (GCC) 13.2.0'
make[1]: Entering directory '/d/temp/RtmpamDzqd/R.INSTALL15574271b77ea/PeakSegOptimal/src'
g++ -std=gnu++17  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c PeakSegFPOPLog.cpp -o PeakSegFPOPLog.o
PeakSegFPOPLog.cpp: In function 'int PeakSegFPOPLog(int*, double*, int, double, double*, int*, double*, int*)':
PeakSegFPOPLog.cpp:72:35: warning: 'up_cost_prev' may be used uninitialized [-Wmaybe-uninitialized]
   72 |         up_cost->set_to_min_env_of(&min_prev_cost, up_cost_prev, verbose);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PeakSegFPOPLog.cpp:35:50: note: 'up_cost_prev' was declared here
   35 |   PiecewisePoissonLossLog *up_cost, *down_cost, *up_cost_prev, *down_cost_prev;
      |                                                  ^~~~~~~~~~~~
PeakSegFPOPLog.cpp:78:32: warning: 'down_cost_prev' may be used uninitialized [-Wmaybe-uninitialized]
   78 |           down_cost_prev->print();
      |           ~~~~~~~~~~~~~~~~~~~~~^~
PeakSegFPOPLog.cpp:35:65: note: 'down_cost_prev' was declared here
   35 |   PiecewisePoissonLossLog *up_cost, *down_cost, *up_cost_prev, *down_cost_prev;
      |                                                                 ^~~~~~~~~~~~~~
PeakSegFPOPLog.cpp:134:26: warning: 'cum_weight_prev_i' may be used uninitialized [-Wmaybe-uninitialized]
  134 |       down_cost->multiply(cum_weight_prev_i);
      |       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
PeakSegFPOPLog.cpp:38:30: note: 'cum_weight_prev_i' was declared here
   38 |   double cum_weight_i = 0.0, cum_weight_prev_i;
      |                              ^~~~~~~~~~~~~~~~~
g++ -std=gnu++17  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c PeakSegPDPALog.cpp -o PeakSegPDPALog.o
g++ -std=gnu++17  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c funPieceListLog.cpp -o funPieceListLog.o
funPieceListLog.cpp: In member function 'void PiecewisePoissonLossLog::set_to_min_less_of(PiecewisePoissonLossLog*, int)':
funPieceListLog.cpp:292:14: warning: unused variable 'right_left_equal' [-Wunused-variable]
  292 |         bool right_left_equal = right_left_diff < NEWTON_EPSILON;
      |              ^~~~~~~~~~~~~~~~
funPieceListLog.cpp: In member function 'double PiecewisePoissonLossLog::findCost(double)':
funPieceListLog.cpp:643:11: warning: unused variable 'verbose' [-Wunused-variable]
  643 |       int verbose = 0;
      |           ^~~~~~~
funPieceListLog.cpp: In member function 'void PiecewisePoissonLossLog::Minimize(double*, double*, int*, double*)':
funPieceListLog.cpp:674:7: warning: unused variable 'verbose' [-Wunused-variable]
  674 |   int verbose=false;
      |       ^~~~~~~
funPieceListLog.cpp: In member function 'int PiecewisePoissonLossLog::check_min_of(PiecewisePoissonLossLog*, PiecewisePoissonLossLog*)':
funPieceListLog.cpp:698:7: warning: unused variable 'verbose' [-Wunused-variable]
  698 |   int verbose = 0;
      |       ^~~~~~~
funPieceListLog.cpp: In member function 'double PoissonLossPieceLog::get_smaller_root(double)':
funPieceListLog.cpp:201:42: warning: 'closest_negative_log_mean' may be used uninitialized [-Wmaybe-uninitialized]
  201 |        return (closest_positive_log_mean + closest_negative_log_mean)/2;
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
funPieceListLog.cpp:164:45: note: 'closest_negative_log_mean' was declared here
  164 |   double closest_negative_cost = -INFINITY, closest_negative_log_mean;
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~
funPieceListLog.cpp:201:42: warning: 'closest_positive_log_mean' may be used uninitialized [-Wmaybe-uninitialized]
  201 |        return (closest_positive_log_mean + closest_negative_log_mean)/2;
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
funPieceListLog.cpp:163:44: note: 'closest_positive_log_mean' was declared here
  163 |   double closest_positive_cost = INFINITY, closest_positive_log_mean;
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
funPieceListLog.cpp: In member function 'double PoissonLossPieceLog::get_larger_root(double)':
funPieceListLog.cpp:123:15: warning: 'closest_negative_mean' may be used uninitialized [-Wmaybe-uninitialized]
  123 |        Rprintf("neg_cost=%e neg_mean=%e pos_cost=%e pos_mean=%e\n", closest_negative_cost, closest_negative_mean, closest_positive_cost, closest_positive_mean);
      |        ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
funPieceListLog.cpp:90:45: note: 'closest_negative_mean' was declared here
   90 |   double closest_negative_cost = -INFINITY, closest_negative_mean;
      |                                             ^~~~~~~~~~~~~~~~~~~~~
funPieceListLog.cpp:123:15: warning: 'closest_positive_mean' may be used uninitialized [-Wmaybe-uninitialized]
  123 |        Rprintf("neg_cost=%e neg_mean=%e pos_cost=%e pos_mean=%e\n", closest_negative_cost, closest_negative_mean, closest_positive_cost, closest_positive_mean);
      |        ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
funPieceListLog.cpp:89:44: note: 'closest_positive_mean' was declared here
   89 |   double closest_positive_cost = INFINITY, closest_positive_mean;
      |                                            ^~~~~~~~~~~~~~~~~~~~~
In constructor 'PoissonLossPieceLog::PoissonLossPieceLog(double, double, double, double, double, int, double)',
    inlined from 'void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = PoissonLossPieceLog; _Args = {int, int, double&, double&, double&, int, double&}; _Tp = std::_List_node<PoissonLossPieceLog>]' at D:/rtools44/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/13.2.0/include/c++/bits/new_allocator.h:187:4,
    inlined from 'static void std::allocator_traits<std::allocator<_Tp1> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = PoissonLossPieceLog; _Args = {int, int, double&, double&, double&, int, double&}; _Tp = std::_List_node<PoissonLossPieceLog>]' at D:/rtools44/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/13.2.0/include/c++/bits/alloc_traits.h:537:17,
    inlined from 'std::__cxx11::list<_Tp, _Alloc>::_Node* std::__cxx11::list<_Tp, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {int, int, double&, double&, double&, int, double&}; _Tp = PoissonLossPieceLog; _Alloc = std::allocator<PoissonLossPieceLog>]' at D:/rtools44/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/13.2.0/include/c++/bits/stl_list.h:713:33,
    inlined from 'void std::__cxx11::list<_Tp, _Alloc>::_M_insert(iterator, _Args&& ...) [with _Args = {int, int, double&, double&, double&, int, double&}; _Tp = PoissonLossPieceLog; _Alloc = std::allocator<PoissonLossPieceLog>]' at D:/rtools44/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/13.2.0/include/c++/bits/stl_list.h:2005:32,
    inlined from 'std::__cxx11::list<_Tp, _Alloc>::reference std::__cxx11::list<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int, int, double&, double&, double&, int, double&}; _Tp = PoissonLossPieceLog; _Alloc = std::allocator<PoissonLossPieceLog>]' at D:/rtools44/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/13.2.0/include/c++/bits/stl_list.h:1321:19,
    inlined from 'void PiecewisePoissonLossLog::set_to_min_less_of(PiecewisePoissonLossLog*, int)' at funPieceListLog.cpp:431:6:
funPieceListLog.cpp:23:17: warning: 'prev_best_log_mean' may be used uninitialized [-Wmaybe-uninitialized]
   23 |   prev_log_mean = prev;
      |   ~~~~~~~~~~~~~~^~~~~~
funPieceListLog.cpp: In member function 'void PiecewisePoissonLossLog::set_to_min_less_of(PiecewisePoissonLossLog*, int)':
funPieceListLog.cpp:265:10: note: 'prev_best_log_mean' was declared here
  265 |   double prev_best_log_mean;
      |          ^~~~~~~~~~~~~~~~~~
funPieceListLog.cpp:344:18: warning: 'next_left_cost' may be used uninitialized [-Wmaybe-uninitialized]
  344 |           Rprintf("next_left_cost-mu_cost=%e right_cost-mu_cost=%e\n", next_left_cost-mu_cost, right_cost-mu_cost);
      |           ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
funPieceListLog.cpp:276:14: note: 'next_left_cost' was declared here
  276 |       double next_left_cost;
      |              ^~~~~~~~~~~~~~
In constructor 'PoissonLossPieceLog::PoissonLossPieceLog(double, double, double, double, double, int, double)',
    inlined from 'void std::__new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = PoissonLossPieceLog; _Args = {int, int, double&, double&, double&, int, double&}; _Tp = std::_List_node<PoissonLossPieceLog>]' at D:/rtools44/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/13.2.0/include/c++/bits/new_allocator.h:187:4,
    inlined from 'static void std::allocator_traits<std::allocator<_Tp1> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = PoissonLossPieceLog; _Args = {int, int, double&, double&, double&, int, double&}; _Tp = std::_List_node<PoissonLossPieceLog>]' at D:/rtools44/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/13.2.0/include/c++/bits/alloc_traits.h:537:17,
    inlined from 'std::__cxx11::list<_Tp, _Alloc>::_Node* std::__cxx11::list<_Tp, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {int, int, double&, double&, double&, int, double&}; _Tp = PoissonLossPieceLog; _Alloc = std::allocator<PoissonLossPieceLog>]' at D:/rtools44/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/13.2.0/include/c++/bits/stl_list.h:713:33,
    inlined from 'void std::__cxx11::list<_Tp, _Alloc>::_M_insert(iterator, _Args&& ...) [with _Args = {int, int, double&, double&, double&, int, double&}; _Tp = PoissonLossPieceLog; _Alloc = std::allocator<PoissonLossPieceLog>]' at D:/rtools44/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/13.2.0/include/c++/bits/stl_list.h:2005:32,
    inlined from 'std::__cxx11::list<_Tp, _Alloc>::reference std::__cxx11::list<_Tp, _Alloc>::emplace_front(_Args&& ...) [with _Args = {int, int, double&, double&, double&, int, double&}; _Tp = PoissonLossPieceLog; _Alloc = std::allocator<PoissonLossPieceLog>]' at D:/rtools44/x86_64-w64-mingw32.static.posix/lib/gcc/x86_64-w64-mingw32.static.posix/13.2.0/include/c++/bits/stl_list.h:1271:19,
    inlined from 'void PiecewisePoissonLossLog::set_to_min_more_of(PiecewisePoissonLossLog*, int)' at funPieceListLog.cpp:579:4:
funPieceListLog.cpp:23:17: warning: 'prev_best_log_mean' may be used uninitialized [-Wmaybe-uninitialized]
   23 |   prev_log_mean = prev;
      |   ~~~~~~~~~~~~~~^~~~~~
funPieceListLog.cpp: In member function 'void PiecewisePoissonLossLog::set_to_min_more_of(PiecewisePoissonLossLog*, int)':
funPieceListLog.cpp:464:10: note: 'prev_best_log_mean' was declared here
  464 |   double prev_best_log_mean;
      |          ^~~~~~~~~~~~~~~~~~
g++ -std=gnu++17  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c interface.cpp -o interface.o
g++ -std=gnu++17 -shared -s -static-libgcc -o PeakSegOptimal.dll tmp.def PeakSegFPOPLog.o PeakSegPDPALog.o funPieceListLog.o interface.o -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR
make[1]: Leaving directory '/d/temp/RtmpamDzqd/R.INSTALL15574271b77ea/PeakSegOptimal/src'
make[1]: Entering directory '/d/temp/RtmpamDzqd/R.INSTALL15574271b77ea/PeakSegOptimal/src'
make[1]: Leaving directory '/d/temp/RtmpamDzqd/R.INSTALL15574271b77ea/PeakSegOptimal/src'
installing to d:/Rcompile/CRANpkg/lib/4.5/00LOCK-PeakSegOptimal/00new/PeakSegOptimal/libs/x64
** R
** data
** 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
** 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 'PeakSegOptimal' as PeakSegOptimal_2024.1.24.zip
* DONE (PeakSegOptimal)