* using log directory 'd:/Rcompile/CRANpkg/local/4.5/fwsim.Rcheck' * using R Under development (unstable) (2024-12-21 r87453 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'fwsim/DESCRIPTION' ... OK * this is package 'fwsim' version '0.3.4' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'fwsim' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/4.5/fwsim.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'fwsim' ... ** package 'fwsim' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: 'g++.exe (GCC) 13.3.0' using C++11 make[1]: Entering directory '/d/temp/2024_12_22_01_50_00_26287/Rtmp6D8yv4/R.INSTALL90c061e8666a/fwsim/src' g++ -std=gnu++11 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: fwsim_types.h: In static member function 'static void Individual::cleanup_lineage(Individual*)': fwsim_types.h:20:19: warning: unused variable 'parent' [-Wunused-variable] 20 | Individual* parent = node->get_parent(); | ^~~~~~ fwsim_types.h: In constructor 'SimulatedGenealogy::SimulatedGenealogy(std::vector, std::vector)': fwsim_types.h:144:34: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long long unsigned int'} and 'int' [-Wsign-compare] 144 | if (init_population.size() != m_pop_size) { | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ g++ -std=gnu++11 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c fwpopsim.cpp -o fwpopsim.o g++ -std=gnu++11 -I"D:/RCompile/recent/R/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c fwpopsim_fixed.cpp -o fwpopsim_fixed.o fwpopsim_fixed.cpp: In function 'Rcpp::List Cpp_fwpopsim_fixed(int, Rcpp::IntegerMatrix, Rcpp::IntegerVector, Rcpp::List, bool, Rcpp::IntegerVector, bool, bool)': fwpopsim_fixed.cpp:160:20: error: invalid cast from type 'Rcpp::traits::enable_if > >::type' {aka 'Rcpp::sugar::Times_Vector_Primitive<14, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >'} to type 'int' 160 | int parent = (int)(pop_size*Rf_runif(0, 1)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fwpopsim_fixed.cpp:173:28: error: cannot convert 'Rcpp::NumericVector' {aka 'Rcpp::Vector<14, Rcpp::PreserveStorage>'} to 'double' in initialization 173 | double u = Rf_runif(0, 1); | ~~~~~~~~^~~~~~ | | | Rcpp::NumericVector {aka Rcpp::Vector<14, Rcpp::PreserveStorage>} make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:297: fwpopsim_fixed.o] Error 1 make[1]: Leaving directory '/d/temp/2024_12_22_01_50_00_26287/Rtmp6D8yv4/R.INSTALL90c061e8666a/fwsim/src' ERROR: compilation failed for package 'fwsim' * removing 'd:/Rcompile/CRANpkg/lib/4.5/fwsim' * restoring previous 'd:/Rcompile/CRANpkg/lib/4.5/fwsim'