On 9 February 2011 at 09:16, Douglas Bates wrote:
| On Tue, Feb 8, 2011 at 3:49 PM, Douglas Bates <ba...@stat.wisc.edu> wrote:
| > I guess my compiler just doesn't like me.
| 
| Actually it's my compiler options that don't like me.  I was using the
| -ggdb option to g++ instead of -g.  When i switched back to -g I could
| compile and load RcppArmadillo.

I am thrilled to hear that you are getting over that hump, but some curious
exploring at my end suggests that you still have a local issue -- -ggdb works
fine here with g++ 4.3 and 4.3. I even opted out of ccache to really force it:

edd@max:~/svn/rcpp/pkg$ R CMD INSTALL --preclean RcppArmadillo
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘RcppArmadillo’ ...
** libs
g++-4.3 -I/usr/share/R/include   -I"/usr/local/lib/R/site-library/Rcpp/include" 
 -I../inst/include -fpic  -ggdb -O3 -Wall -pipe -pedantic -Wno-variadic-macros 
-c RcppArmadillo.cpp -o RcppArmadillo.o
g++-4.3 -I/usr/share/R/include   -I"/usr/local/lib/R/site-library/Rcpp/include" 
 -I../inst/include -fpic  -ggdb -O3 -Wall -pipe -pedantic -Wno-variadic-macros 
-c fastLm.cpp -o fastLm.o
g++ -shared -o RcppArmadillo.so RcppArmadillo.o fastLm.o 
-L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp 
-Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -llapack -lblas -lgfortran 
-lm -L/usr/lib64/R/lib -lR
installing to /usr/local/lib/R/site-library/RcppArmadillo/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded

* DONE (RcppArmadillo)
edd@max:~/svn/rcpp/pkg$ R CMD INSTALL --preclean RcppArmadillo
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘RcppArmadillo’ ...
** libs
g++-4.4 -I/usr/share/R/include   -I"/usr/local/lib/R/site-library/Rcpp/include" 
 -I../inst/include -fpic  -ggdb -O3 -Wall -pipe -pedantic -Wno-variadic-macros 
-c RcppArmadillo.cpp -o RcppArmadillo.o
g++-4.4 -I/usr/share/R/include   -I"/usr/local/lib/R/site-library/Rcpp/include" 
 -I../inst/include -fpic  -ggdb -O3 -Wall -pipe -pedantic -Wno-variadic-macros 
-c fastLm.cpp -o fastLm.o
g++ -shared -o RcppArmadillo.so RcppArmadillo.o fastLm.o 
-L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp 
-Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -llapack -lblas -lgfortran 
-lm -L/usr/lib64/R/lib -lR
installing to /usr/local/lib/R/site-library/RcppArmadillo/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded

* DONE (RcppArmadillo)
edd@max:~/svn/rcpp/pkg$ 


Dirk

-- 
Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to