[Rcpp-devel] Problem with undefined symbols when building RcppArmadillo
comanor at a9.com
Tue Feb 28 02:23:00 CET 2012
I went through the thread at: http://www.digipedia.pl/usenet/thread/14655/781/ as I seem to be running into the same problem, but wasn't able to determine a possible solution.
Basically, I'm trying to build R's RcppArmadillo, and although the build does succeed, it has undefined symbols in the binary library file RcppAramdillo.so which causes R's Forecast library, which depends on RcppArmadillo, not to build as a result of these undefined symbols. I'm trying to build Forecast 3.16 using RcppArmadillo 0.2.34 and Rcpp 0.9.9.
Here are the undefined symbols dealing with "version":
nm RcppArmadillo.so| grep -i version
000000000001022e t _GLOBAL__I_armadillo_version
Here are the error messages I get when trying to build R's Forecast library:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/rhel5pdi/workplace/comanor-ws/build/RsRcppArmadillo/RsRcppArmadillo-0.2.34/RHEL5_64/DEV.STD.PTHREAD/build/lib64/R/library/RcppArmadillo/libs/RcppArmadillo.so':
/rhel5pdi/workplace/comanor-ws/build/RsRcppArmadillo/RsRcppArmadillo-0.2.34/RHEL5_64/DEV.STD.PTHREAD/build/lib64/R/library/RcppArmadillo/libs/RcppArmadillo.so: undefined symbol: _ZN4arma12arma_version5majorE
Error : package ‘RcppArmadillo’ could not be loaded
ERROR: lazy loading failed for package ‘forecast’
Is there a specific compiler option that's necessary when building RcppArmadillo? Is this a known bug that was fixed in version 0.2.35?
Thank you for your help with this issue. Much appreciated,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rcpp-devel