<div dir="ltr"><font face="arial, sans-serif">Hello there <br><br>I'm in the process uploading an R package to CRAN, which is a relatively simple interface to a C++ library: <a href="https://github.com/kharchenkolab/N2R" target="_blank">https://github.com/kharchenkolab/N2R</a><br><br>The windows binaries just became available for RcppSpdLog, so I wanted to check how it installed on windows before CRAN submission. <br><br>The package currently installs on Linux and Mac OS, but when I check with `devtools::check_win_devel()`, I'm getting a Windows-related error. <br></font><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">The error appears to be related to RcppEigen, not the C++ library---this feels like something easily fixable, but I'm a bit nonplussed how to fix this:<br><br>"""<br></font><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, sans-serif">d:/RCompile/CRANpkg/lib/4.1/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:650:34: warning: ignoring attributes on template argument 'Eigen::internal::packet_traits<int>::type' {aka '__vector(2) long long int'} [-Wignored-attributes]
   return internal::first_aligned<int(unpacket_traits<DefaultPacketType>::alignment),Derived>(m);
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [D:/RCompile/recent/R/etc/i386/Makeconf:244: n2knn.o] Error 1
ERROR: compilation failed for package 'N2R'
* removing 'd:/RCompile/CRANguest/R-devel/lib/N2R'
* restoring previous 'd:/RCompile/CRANguest/R-devel/lib/N2R'</font></pre><font face="arial, sans-serif">"""</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">"'Eigen::internal::packet_traits<int>::type' {aka '__vector(2) long long int'} [-Wignored-attributes]" appears to be a somewhat standard warning, but I'm not sure how to resolve "internal::first_aligned<int(unpacket_traits<DefaultPacketType>::alignment),Derived>(m);" which is causing the compilation error. </font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">I've tried with C++11 and C++14; same result. I've seen some discussion elsewhere that this could be related to the -fopenmp flags here: </font><a href="https://github.com/kharchenkolab/N2R/blob/master/src/n2/Makefile" target="_blank">https://github.com/kharchenkolab/N2R/blob/master/src/n2/Makefile</a></div><div>Perhaps there's something here which clashes with RcppEigen on windows?</div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Any help is appreciated. Here is the CRAN builds: <a href="https://win-builder.r-project.org/D98h1Y2Rr004/" target="_blank">https://win-builder.r-project.org/D98h1Y2Rr004/</a><br><br>Best, Evan </font><div class="gmail-yj6qo"></div><br class="gmail-Apple-interchange-newline"></div></div>