<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 31 October 2013 13:15, Romain Francois <span dir="ltr"><<a href="mailto:romain@r-enthusiasts.com" target="_blank">romain@r-enthusiasts.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">Le 31/10/2013 15:59, baptiste auguie a écrit :<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Dear Rcpp gurus,<div class="im"><br>
<br>
Today a CRAN maintainer informed us of the failure of a few Rcpp-related<br>
packages to build under the new version of the Mac operating system, OS<br>
X 10.9 aka Mavericks.<br>
I do have access to a Mac, but I'm reluctant (in fact, unable) to update<br>
to Mavericks, therefore I'm in the dark when it comes to fixing /testing<br>
for the errors reported in the log file. On a positive note, it appears<br>
at first sight that most of the errors are relatively benign, and<br>
similar-looking issues are reported for all the packages involved. That<br>
gives me hope that once the underlying issue is well identified, most<br>
packages can be fixed with minimal changes.<br>
<br>
Here's the info we were given from CRAN,<br>
<br>
"OS X 10.9 (aka Mavericks) has a new C++ compiler, clang++ with libcxx<br>
headers/runtime. Your package fails to compile with that compiler: see<br></div>
the appropriate log at <a href="http://www.stats.ox.ac.uk/pub/__bdr/Mavericks/" target="_blank">http://www.stats.ox.ac.uk/pub/<u></u>__bdr/Mavericks/</a><div class="im"><br>
<<a href="http://www.stats.ox.ac.uk/pub/bdr/Mavericks/" target="_blank">http://www.stats.ox.ac.uk/<u></u>pub/bdr/Mavericks/</a>> ."<br>
<br>
My two packages are cda and planar. The error seems to occur in the<br>
Modules definition, e.g. from this line in my code<br>
<br>
<a href="https://github.com/baptiste/planar/blob/master/src/multilayer.cpp#L231" target="_blank">https://github.com/baptiste/<u></u>planar/blob/master/src/<u></u>multilayer.cpp#L231</a><br>
<br>
where "function" is judged ambiguous, as far as I understand. This<br>
"function" is presumably something from<br>
Rcpp/include/Rcpp/module/<u></u>Module_generated_function.h but I am not<br>
familiar with that code.<br>
<br>
Any ideas, hints?<br>
<br>
Best regards,<br>
<br>
baptiste<br>
</div></blockquote>
<br>
I sent you a pull request on github. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
.function abuses the compiler recognition, it is just unfortunate that something else is called function, which is what confused it.<br>
<br>
Not sure there could be defenses against it.<br>
<br>
In the meantime, you should be fine by just using Rcpp::function<br class=""></blockquote><div> </div><div>Thanks! I've merged your pull request, and will propagate the changes to my cda package which reports similar issues.<br>
</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
<br>
<br>
Also, for such trivial uses of modules (i.e. no classes), maybe it is worth considering using // [[Rcpp::export]] and code generation given by compileAttributes instead of modules.<div class=""><div class="h5"><br></div>
</div></blockquote><div><br></div><div>You're probably right, I haven't been able to keep up with the new idioms in Rcpp; next time I get around to developing the package for new functionality, I'll investigate how to use those attributes instead.</div>
<div><br></div><div>Thanks!</div><div><br></div><div>baptiste</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5">
<br>
Romain<br>
<br>
-- <br>
Romain Francois<br>
Professional R Enthusiast<br>
+33(0) 6 28 91 30 30<br>
<br>
______________________________<u></u>_________________<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-<u></u>project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-<u></u>project.org/cgi-bin/mailman/<u></u>listinfo/rcpp-devel</a><br>
</div></div></blockquote></div><br></div></div>