<div dir="ltr">Thanks! While changing the definitions to <font face="monospace">$(CXX)</font> did not work and resulted in:<div><br></div><div>Running test_stack.R..................    0 tests    /usr/lib/R/etc/Makevars.site:5: *** Recursive variable 'CXX' references itself (eventually).  Stop.<br></div><div><br></div><div>It did make me just say "be verbose", so I explicitly set each <font face="monospace">CXXNN</font> variable to <font face="monospace">clang</font>++ as well as stating each one's explicit <font face="monospace">CXXNNSTD</font> to be the appropriate <font face="monospace">-std=c++NN</font> and the result is:</div><div><br></div><div><font face="monospace">[1] "All ok, 1541 results"</font><br></div><div><br></div><div>Woohoo! All tests using clang and gcc on WSL :thumbsup:</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 16, 2020 at 2:55 PM William Dunlap <<a href="mailto:wdunlap@tibco.com">wdunlap@tibco.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Your Makevar.site is incorrect.  Replace<div>  <span style="font-family:monospace">CXX11 = $CXX</span> </div><div>with</div><div>  <span style="font-family:monospace">CXX11 = $(CXX)</span></div><div><br></div><div>$CXX only expands the macro 'C', not 'CXX'.  Since C is not defined $CXX expands to XX.</div><div> </div><div><div><div dir="ltr">Bill Dunlap<br>TIBCO Software<br>wdunlap <a href="http://tibco.com" target="_blank">tibco.com</a></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 16, 2020 at 12:39 PM Thell Fowler <<a href="mailto:tbfowler4@gmail.com" target="_blank">tbfowler4@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><font face="monospace">Windows 10 Pro  2004    19041.329<br></font></div><div><font face="monospace">WSL Version 2</font></div><div><span style="font-family:monospace">Linux DESKTOP-K8EN726 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux</span><br></div><div><font face="monospace"><br></font></div><div><font face="monospace">Distributor ID: Ubuntu<br>Description:    Ubuntu 20.04 LTS<br>Release:        20.04<br>Codename:       focal<br></font></div><div><font face="monospace"><br></font></div><div><div><font face="monospace">Sys.setenv("RunAllRcppTests"="yes")<br>Sys.setenv("RunVerboseRcppTests"="yes")<br>tinytest::test_package("Rcpp")<br></font></div><div><font face="monospace"><br></font></div><div></div></div><div><div><div><span style="font-family:monospace">-------------------------------------------</span></div><div><span style="font-family:monospace"><br></span></div><div><div><font face="monospace">using:</font><span style="font-family:monospace">  gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0</span></div><div></div></div><div><span style="font-family:monospace"><b><font size="4">[1] "All ok, 1541 results"</font></b></span><br></div></div><div></div></div><div><font face="monospace"><br></font></div><div><font face="monospace">-------------------------------------------</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">using: Ubuntu clang version 10.0.1-++20200529022935+a634a80615b-1~exp1~20200529003545.39</font></div><div><font face="monospace">with Makevars.site containing:</font></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="monospace">CC = clang</font></div></div><div><div><font face="monospace">CXX = clang++</font></div></div><div><div><font face="monospace">CFLAGS = -g -O2</font></div></div><div><div><font face="monospace">CXXFLAGS = -g -O2</font></div></div><div><div><font face="monospace">CXX11 = $CXX</font></div></div><div><div><font face="monospace">CXX14 = $CXX</font></div></div><div><div><font face="monospace">CXX17 = $CXX</font></div></div><div><div><font face="monospace">CXX20 = $CXX</font></div></div><div><div><font face="monospace">CXX1X = $CXX</font></div></div></blockquote><div><div><font face="monospace"><br></font></div><div><font face="monospace">Halted with:</font></div><div><font face="monospace">Running test_stack.R..................    0 tests    /bin/bash: XX: command not found<br>make: *** [/usr/lib/R/etc/Makeconf:176: stack.o] Error 127<br>XX -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/Rcpp/tinytest/cpp"    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-Do_dS_/r-base-4.0.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c stack.cpp -o stack.o<br>Error in Rcpp::sourceCpp("cpp/stack.cpp") :<br>  Error 1 occurred building shared library.<br></font></div><div></div></div><div><font face="monospace"><br></font></div><div><font face="monospace">I'm fairly sure the issue is on my setup but not quite sure what it is from a quick glance.</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">-------------------------------------------</font></div><div><font face="monospace">> R.version<br>platform       x86_64-pc-linux-gnu<br>arch           x86_64<br>os             linux-gnu<br>system         x86_64, linux-gnu<br>status<br>major          4<br>minor          0.0<br>year           2020<br>month          04<br>day            24<br>svn rev        78286<br>language       R<br>version.string R version 4.0.0 (2020-04-24)<br>nickname       Arbor Day</font><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 16, 2020 at 8:47 AM Dirk Eddelbuettel <<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi all,<br>
<br>
Below is an ascii version of what I blogged yesterday, proper URL links are<br>
at   <a href="http://dirk.eddelbuettel.com/blog/2020/06/15#rcpp_1.0.5_testing" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com/blog/2020/06/15#rcpp_1.0.5_testing</a><br>
<br>
Help in testing, particular on unusual hardware or compiler choices, or<br>
particularly old releases of OS, compiler, R, ... would be welcome. I am<br>
quite confident the release will be fine on CRAN and standard systems.<br>
<br>
But for use on less standard setups, the time to test is now. If you are a<br>
user of Rcpp under such circumstance, please help now in testing and<br>
reporting issues, if any are seen.<br>
<br>
Thanks,  Dirk<br>
<br>
<br>
  Mon, 15 Jun 2020<br>
<br>
  Rcpp 1.0.5 in two+ weeks: Please help test<br>
<br>
   rcpp logo<br>
<br>
   With the current four-month release cycle, the next Rcpp release is due in<br>
   July following the 1.0.4 release in March. Just prior to the 1.0.4 release<br>
   I had asked this:<br>
<br>
     It would be particularly beneficial if those with “unsual” build<br>
     dependencies tested it as we would increase overall coverage beyond what<br>
     I get from testing against 1800+ CRAN packages. BioConductor would also<br>
     be welcome.<br>
<br>
   but only on the rcpp-devel list, and only about a good week prior to the<br>
   release.<br>
<br>
   I remain rather disappointed and disillusioned about what happened after<br>
   1.0.4 was released. Two PRs in that release were soon seen to have side<br>
   effects on more ‘marginal’ test systems, precisely what added testing<br>
   could have revealed. An additional issue arose from changes in R’s make<br>
   system, which is harder to anticipate or test. Each and every infelicity<br>
   was fixed within a day or so, and we always make candidate releases<br>
   available—the current Rcpp as of this writing is 1.0.4.12 meaning twelve<br>
   microreleases were made since 1.0.4. And those microreleases are always<br>
   available for normal download and install.packages use via the Rcpp drat<br>
   repository accessible to all. So it was truly troubling to see some,<br>
   especially those with experience in setting up or running testing / ci<br>
   platforms, pretend to be unable to access, install, and provide these for<br>
   their own tests, or the tests of their users. It just doesn’t pass a basic<br>
   logic test: it takes a single call to install.packages(), or, even more<br>
   easily, a single assignment of an auxiliary repo. All told this was a<br>
   rather sad experience.<br>
<br>
   So let’s try to not repeat this. If you, or maybe users of a build or ci<br>
   system you maintain, rely on Rcpp, and especially if you do so on systems<br>
   outside the standard CRAN grid of three OSs and the triplet of “previous,<br>
   current, next” releases of R, then please help by testing. I maitain these<br>
   release as a volunteer, unpaid at that, and I simply cannot expand to more<br>
   systesm. We take reverse dependency check seriously (and I just run two<br>
   taking about a day each) but if you insist on building on stranger<br>
   hardware or much older releases it will be up to you to ensure Rcpp<br>
   passes. We prep for CRAN, and try our best to pass at CRAN. For nearly a<br>
   dozen years.<br>
<br>
   To install the current microrelease from the Rcpp drat repository, just do<br>
<br>
 install.packages("Rcpp", repos="<a href="https://rcppcore.github.io/drat" rel="noreferrer" target="_blank">https://rcppcore.github.io/drat</a>")<br>
<br>
   That is all there is to it. You could even add the Rcpp drat repository to<br>
   your repository list.<br>
<br>
   Rcpp has become successful because so many people help with suggestions,<br>
   documentation, and code. It is used by (as of today) 1958 CRAN packages,<br>
   205 BioConductor packages, and downloaded around a million times per<br>
   month. So if you can, please help now with some more testing.<br>
<br>
   If you like this or other open-source work I do, you can now sponsor me at<br>
   GitHub. For the first year, GitHub will match your contributions.<br>
<br>
   This post by Dirk Eddelbuettel originated on his Thinking inside the box<br>
   blog. Please report excessive re-aggregation in third-party for-profit<br>
   settings.<br>
<br>
                                                  /code/rcpp | permanent link<br>
<br>
<br>
<br>
-- <br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">Sincerely,<br>Thell</div>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Sincerely,<br>Thell</div>