[Rcpp-devel] sourceCpp issue: code vs. file
Sparapani, Rodney
rsparapa at mcw.edu
Thu May 23 01:27:54 CEST 2013
And here is the failure on OS X ML...
> sourceCpp(verbose=TRUE, rebuild=TRUE, file="~/arma-sp.cxx")
Generated extern "C" functions
--------------------------------------------------------
#include <Rcpp.h>
RcppExport SEXP sourceCpp_41979_convertSparse(SEXP matSEXP) {
BEGIN_RCPP
Rcpp::RNGScope __rngScope;
S4 mat = Rcpp::as<S4 >(matSEXP);
convertSparse(mat);
return R_NilValue;
END_RCPP
}
Generated R functions
-------------------------------------------------------
`.sourceCpp_41979_DLLInfo` <- dyn.load('/var/folders/nb/62qyw7056rj7lwfqbqgmh6lw0000gn/T//RtmpZ7Msbu/sourcecpp_1ade06077c/sourceCpp_88708.so')
convertSparse <- Rcpp:::sourceCppFunction(function(mat) {}, `.sourceCpp_41979_DLLInfo`, 'sourceCpp_41979_convertSparse')
rm(`.sourceCpp_41979_DLLInfo`)
Building shared library
--------------------------------------------------------
DIR: /var/folders/nb/62qyw7056rj7lwfqbqgmh6lw0000gn/T//RtmpZ7Msbu/sourcecpp_1ade06077c
/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB -o 'sourceCpp_88708.so' --preclean 'arma-sp.cxx'
Error in dyn.load("/var/folders/nb/62qyw7056rj7lwfqbqgmh6lw0000gn/T//RtmpZ7Msbu/sourcecpp_1ade06077c/sourceCpp_88708.so") (from arma-sp.cxx.R#1) :
unable to load shared object '/var/folders/nb/62qyw7056rj7lwfqbqgmh6lw0000gn/T//RtmpZ7Msbu/sourcecpp_1ade06077c/sourceCpp_88708.so':
dlopen(/var/folders/nb/62qyw7056rj7lwfqbqgmh6lw0000gn/T//RtmpZ7Msbu/sourcecpp_1ade06077c/sourceCpp_88708.so, 6): image not found
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RcppArmadillo_0.3.6.1 Rcpp_0.10.2 Matrix_1.0-10 lattice_0.20-13
loaded via a namespace (and not attached):
[1] compiler_2.15.2 grid_2.15.2 tools_2.15.2
Thanks for any hints.
Rodney
More information about the Rcpp-devel
mailing list