<div dir="ltr">The important thing is to use the -g0 flag.  Even though RcppEigen is  a header-only package we include an example R function fastlm. If you leave the symbols in the DLL file you get a massive library size whereas stripping the symbols provides you with a much smaller file size.  And because packages that use RcppEigen only use the headers, not the DLL file, it doesn't matter if the symbols are stripped.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 2, 2013 at 1:31 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 2 December 2013 at 11:17, Jeroen Ooms wrote:<br>
| I noticed that RcppEigen fails to install on my servers because it requires<br>
| more than 1gb of memory to compile. Is this expected? Are there any flags or<br>
<br>
</div>Yes. It also falls over on R-Forge.<br>
<div class="im"><br>
| options I could set to trade of some memory for cpu? A short simulation:<br>
<br>
</div>I have had to resort to similar tricks on some smaller architecture when<br>
autobuilding demanding Debian packages.  Try -O0 -g0 for a start.<br>
<br>
Or if you need a smile, this still holds:<br>
<br>
  <a href="http://dilbert.com/strips/comic/1995-06-24/" target="_blank">http://dilbert.com/strips/comic/1995-06-24/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
<br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">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" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</div></div></blockquote></div><br></div>