[Rcpp-devel] g++-llvm still doesn't like RcppArmadillo?
edd at debian.org
Sat Dec 24 00:39:36 CET 2011
On 23 December 2011 at 11:03, Davor Cubranic wrote:
| Did we ever find a way to make RcppArmadillo compile with g++-llvm
| on OS X Lion?
| There was a thread in July about unresolved 'arma_version' symbol
| and it appears the only way around it was by compiling with the
| vanilla g++.
| I just ran into the same error, using R installed from MacPorts as
| the R-framework port. This uses the llvm-g++-4.2 toolchain, so
| getting it to use apple-g++ to compile just RcppArmadillo would
| probably require manual fiddling with the configure step, which I
| would prefer to avoid given that this is on a compute cluster where
| we're automating software installation and upgrading.
No idea, as I'm not a mac user I can't really help.
Are OS X users / developers moving towards llvm, or towards local copies of
newer g++ versions?
| Also, does anyone know if this will mean that every package that
| depends on RcppArmadillo will have to avoid using LLVM as well?
| Installation output below:
| * installing *source* package 'RcppArmadillo' ...
| ** package 'RcppArmadillo' successfully unpacked and MD5 sums
| ** libs
| *** arch - x86_64
| -I../inst/include -fPIC -pipe -O2 -m64 -c RcppArmadillo.cpp -o
| -I../inst/include -fPIC -pipe -O2 -m64 -c fastLm.cpp -o fastLm.o
| /opt/local/bin/llvm-g++-4.2 -dynamiclib
| -Wl,-headerpad_max_install_names -undefined dynamic_lookup
| -single_module -multiply_defined suppress -L/opt/local/lib
| -L/opt/local/lib/llvm-gcc42 -lgfortran -o RcppArmadillo.so
| RcppArmadillo.o fastLm.o
| -lRblas -F/opt/local/Library/Frameworks/R.framework/.. -framework R
| -Wl,-framework -Wl,CoreFoundation
| installing to
| ** R
| ** inst
| ** preparing package for lazy loading
| ** help
| *** installing help indices
| ** building package indices ...
| *** tangling vignette sources ...
| ** testing if installed package can be loaded
| Error in dyn.load(file, DLLpath = DLLpath, ...) :
| unable to load shared object
| 6): Symbol not found: __ZN4arma12arma_version5majorE
| Referenced from:
| Expected in: flat namespace
| Error: loading failed
| Execution halted
| ERROR: loading failed
| * removing
| The downloaded packages are in
| Warning message:
| In install.packages("RcppArmadillo") :
| installation of package 'RcppArmadillo' had non-zero exit status
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx
More information about the Rcpp-devel