[Rcpp-devel] RcppArmadillo error

Dirk Eddelbuettel edd at debian.org
Tue May 18 14:12:10 CEST 2010


On 18 May 2010 at 13:04, Abhisek wrote:
| i thought i would repost here as it is a similar problem:
| 
| i updated Rcpp and then RcppArmadillo and when i run : export PKG_CXXFLAGS=
| `Rscript -e "RcppArmadillo:::CxxFlags()"`
| 
| i get the following error
| 
| abhisek at shieks:~/Desktop/Personal/Test$ export PKG_CXXFLAGS=`Rscript -e
| "RcppArmadillo:::CxxFlags()"`
| Error in dyn.load(file, DLLpath = DLLpath, ...) :
|   unable to load shared library '/home/abhisek/R/i486-pc-linux-gnu-library/
| 2.10/RcppArmadillo/libs/RcppArmadillo.so':
|   /home/abhisek/R/i486-pc-linux-gnu-library/2.10/RcppArmadillo/libs/
| RcppArmadillo.so: undefined symbol: _ZN4arma12arma_version5majorE
| Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
| Execution halted
| 
| i tried recompiling RcppArmadillo, as well as uninstalling and reinstalling
| RcppArmadillo from install.packages() to no avail.
| 
| could someone assist?

Yes, sorry, known issues. We need to get RcppArmadillo 0.2.0 out ASAP but are
finishing some documentation -- please grab it from svn right now (or take a
tarball from R-Forge).

Dirk
 
| many thanks!
| abhisek
| 
| 
| On Wed, Apr 14, 2010 at 6:51 PM, Davor Cubranic <
| davor.cubranic at alumni.cs.ubc.ca> wrote:
| 
|     On April 13, 2010 04:28:31 am Abhisek wrote:
|     > sorry to raise this again after a hiatus.  I updated to the latest
|     >  Rcpp (0.7.11) and when I tried the following commands:
|     [...]
|     > /home/abhisek/R/i486-pc-linux-gnu-library/2.10/RcppArmadillo/libs/Rcp
|     > pArmadillo.so: undefined symbol:
|     >  _ZN4Rcpp4growINS_5NamedEEEP7SEXPRECRKT_S3_ Calls: ::: ... tryCatch
|     >  -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted
| 
|     I ran into a similar error today after I upgraded my version of Rcpp
|     from 0.7.10 (or maybe 0.7.10.1) to 0.7.11:
|     /opt/R-2.10.1/lib/R/library/RcppArmadillo/libs/RcppArmadillo.so:
|     undefined symbol:
|     _ZN4Rcpp8internal12set_list_eltINS_5NamedEEEbP7SEXPRECS4_iRKT_
| 
|     In my case, uninstalling RcppArmadillo and then installing it again fixed
|     the error.
| 
|     Maybe a new package version scheme is necessary to make it easier to
|     keep RcppArmadillo and Rcpp in sync? Would bumping up version numbers
|     more when there is a breaking API change help? For instance, when Named
|     was eliminated between 0.7.10 and 0.7.11, the new version could have
|     been called 0.8. RcppArmadillo packages would then depend on the Rccp
|     version being less than the next major API change.
| 
|     Davor
| 
| 
| 
| ----------------------------------------------------------------------
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

-- 
  Regards, Dirk


More information about the Rcpp-devel mailing list