<div dir="ltr">On Mon, Dec 2, 2013 at 4:25 AM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<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"><span style="color:rgb(34,34,34)">As I said when we hashed this out some more in private mail, I'd try setting</span><br>

</div></div>
TMPDIR in /etc/profile or alike. Or just try to have a working /tmp directory.<br>
Surely you are not the only AppArmor user with that issue?<br></blockquote><div><br></div><div>Well it's not so much an issue of AppArmor, more of using g++ with an process-specific TMPDIR, which I guess hasn't been tested a lot. I can easily work around the problem by relaxing the sandbox a bit and allowing g++ to create files under /tmp. I've done that on the server, and now all Rcpp packages build fine. However it would be more elegant if g++ would just inherit TMPDIR from the R process (and I am convinced it was doing that before). Anyway things are working again:</div>

<div><br></div><div><a href="https://public.opencpu.org/ocpu/cran/RcppExamples">https://public.opencpu.org/ocpu/cran/RcppExamples</a><br></div><div><a href="https://public.opencpu.org/ocpu/cran/RcppArmadillo">https://public.opencpu.org/ocpu/cran/RcppArmadillo</a><br>

</div><div><a href="https://public.opencpu.org/ocpu/cran/lme4/">https://public.opencpu.org/ocpu/cran/lme4/</a><br></div><div><br></div><div><br></div><div><br></div></div></div></div>