On Wed, 26 Jan 2022 at 19:02, Joseph Park <josephp...@ieee.org> wrote: > > Dear RcppDev, > > A new warning has emerged in mingw compilation on CRAN. The message: > > *** arch - x64 > make[1]: Entering directory > '/d/temp/RtmpsZcaWL/R.INSTALLb59426674c3e/rEDM/src-x64' > d:/Compiler/rtools40/mingw64/bin/g++ -std=gnu++11 > -I"D:/RCompile/recent/R-4.1.2/include" -DNDEBUG -I./cppEDM/src -I../ > -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' > -I'd:/RCompile/CRANpkg/lib/4.1/RcppThread/include' > -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mfpmath=sse -msse2 > -mstackrealign -c CCM.cpp -o CCM.o > In file included from > d:/RCompile/CRANpkg/lib/4.1/RcppThread/include/RcppThread/ThreadPool.hpp:11, > from > d:/RCompile/CRANpkg/lib/4.1/RcppThread/include/RcppThread.h:12, > from RcppEDMCommon.h:12, > from CCM.cpp:2: > d:/RCompile/CRANpkg/lib/4.1/RcppThread/include/RcppThread/quickpool.hpp: In > static member function 'static quickpool::ThreadPool& > quickpool::ThreadPool::global_instance()': > d:/RCompile/CRANpkg/lib/4.1/RcppThread/include/RcppThread/quickpool.hpp:719:31: > warning: 'new' of type 'quickpool::ThreadPool' with extended alignment 64 > [-Waligned-new=] > static auto ptr = new ThreadPool; > ^~~~~~~~~~ > d:/RCompile/CRANpkg/lib/4.1/RcppThread/include/RcppThread/quickpool.hpp:719:31: > note: uses 'void* operator new(std::size_t)', which does not have an > alignment parameter > d:/RCompile/CRANpkg/lib/4.1/RcppThread/include/RcppThread/quickpool.hpp:719:31: > note: use '-faligned-new' to enable C++17 over-aligned new support > > -- > > Any ideas to address this? The packages uses C++11.
RcppThread is not part of RcppCore. The upstream repo is [1]. Please, report it there. Version 2.0.0 was released yesterday on CRAN and it's currently failing on a couple of platforms [2]. [1] https://github.com/tnagler/RcppThread [2] https://cran.rstudio.com/web/checks/check_results_RcppThread.html -- Iñaki Úcar _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel