Re: [Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

2011-04-29 Thread Douglas Bates
And I can get past R CMD check Rcpp if I include -O3 in CXXFLAGS. On Fri, Apr 29, 2011 at 11:59 AM, Douglas Bates wrote: > OK, this is bizarre.  I am able to install the RcppArmadillo package > on my current setup provided that I turn on optimization in the call > to g++ to compile RcppArmadillo.

Re: [Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

2011-04-29 Thread Jan de Leeuw
Interesting. Stabilizing a compile by using the optimization flags. The runs I reported earlier (with Apple's g++-4.2, Apple's llvm g++-4.2, and g++-4.7 from svn) all used the -O4 flag. Although the symptoms are the same as mine, it seems the disease is different. On Apr 29, 2011, at 09:59 , Doug

Re: [Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

2011-04-29 Thread Douglas Bates
OK, this is bizarre. I am able to install the RcppArmadillo package on my current setup provided that I turn on optimization in the call to g++ to compile RcppArmadillo.cpp. The only difference between the following two calls is the -O3 flag. (I haven't tried other levels of optimization yet but

Re: [Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

2011-04-29 Thread Jan de Leeuw
Yes, well, this still does not explain why Doug gets the same error on Ubuntu. On Apr 29, 2011, at 07:23 , Conrad Sanderson wrote: > On 29 April 2011 23:40, Jan de Leeuw wrote: >> So it may be the LLVM g++ compiler (note that this is >> a developer version which has not been released yet, >> com

Re: [Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

2011-04-29 Thread Douglas Bates
Yesterday I upgraded to Ubuntu 11.04 for which the default g++ version is 4.5.2 I rebuilt R-devel and R-patched from the sources and things changed -- R-devel CMD check Rcpp now fails at a different point. This time it doesn't segfault but it does produce results that are different from the refer

Re: [Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

2011-04-29 Thread Conrad Sanderson
On 29 April 2011 23:40, Jan de Leeuw wrote: > So it may be the LLVM g++ compiler (note that this is > a developer version which has not been released yet, > comes with Xcode 4.1) or an unfortunate interaction > of that compiler with libraries in /usr/local. I suggest filing a bug with Apple. The

Re: [Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

2011-04-29 Thread Jan de Leeuw
On my machine RcppArmadillo compiles/links fine with deleeuw@cuddyPro:~/Desktop/ > /usr/local/bin/g++ -v Using built-in specs. COLLECT_GCC=/usr/local/bin/g++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin11/4.7.0/lto-wrapper Target: x86_64-apple-darwin11 Configured with: ../gcc-4.5

Re: [Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

2011-04-29 Thread Dirk Eddelbuettel
On 29 April 2011 at 22:56, Conrad Sanderson wrote: | Sorry, I don't know what's going on. As far as I know, the structure | "arma_version" (as defined in the file | "include/armadillo_bits/arma_version.hpp") is following the C++ | standard. Please double check and let me know if it's not right.

Re: [Rcpp-devel] Unable to install RcppArmadillo from CRAN or from SVN archive on Ubuntu 10.10

2011-04-29 Thread Dirk Eddelbuettel
(Conrad, This started as this thread http://thread.gmane.org/gmane.comp.lang.r.rcpp/1877 which picks up the issue first reported by Jan regaring arma_version not being found by the linker and which you commented on so colourfully a few days ago.) On 28 April 2011 at 13:38, Jan de Leeuw