[Rcpp-devel] RcppEigen needs 1GB memory to compile

Dirk Eddelbuettel edd at debian.org
Mon Dec 2 20:33:40 CET 2013


On 2 December 2013 at 11:21, Kevin Ushey wrote:
| Try removing -pipe: see e.g.
| http://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html#Overall-Options,
| at -pipe.

Very good suggestion. That is "my fault" too via the default Debian/Ubuntu setup:

edd at max:~$ grep pipe /etc/R/Makeconf 
# configure  '--prefix=/usr' '--with-cairo' '--with-jpeglib'
'--with-readline' '--with-tcltk' '--with-system-bzlib' '--with-system-pcre'
'--with-system-zlib' '--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--datadir=/usr/share/R/share' '--includedir=/usr/share/R/include'
'--with-blas' '--with-lapack' '--enable-R-profiling' '--enable-R-shlib'
'--enable-memory-profiling' '--without-recommended-packages' '--build'
'x86_64-linux-gnu' 'build_alias=x86_64-linux-gnu' 'R_PRINTCMD=/usr/bin/lpr'
'R_PAPERSIZE=letter' 'R_BROWSER=xdg-open' 'LIBnn=lib' 'CC=gcc -std=gnu99'
'CFLAGS=-O2 -pipe -g' 'LDFLAGS=' 'CPPFLAGS=' 'F77=gfortran' 'FFLAGS=-O2 -pipe
-g' 'CXX=g++' 'CXXFLAGS=-O2 -pipe -g' 'FC=gfortran' 'FCFLAGS=-O2 -pipe -g'
CFLAGS = -O2 -pipe -g $(LTO)
CXXFLAGS = -O2 -pipe -g $(LTO)
FCFLAGS = -O2 -pipe -g $(LTO)
FFLAGS = -O2 -pipe -g $(LTO)
SAFE_FFLAGS = -O2 -pipe -g -ffloat-store
edd at max:~$ 

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list