[Rcpp-devel] Can not build under linux/osx

Jianyang Zhao uzhao at ucdavis.edu
Tue Mar 11 21:23:54 CET 2014


Hello All,

I'm writing a package which is able to build under windows. But when I try
to build it under linux, I got this error message.

(hilbert)-PACE$ R CMD INSTALL .
* installing to library '/home/uzhao/R/x86_64-unknown-linux-gnu-library/3.0'
* installing *source* package 'PACE' ...
** libs
g++ -I/usr/local/R-3.0.2/lib64/R/include -DNDEBUG  -I/usr/local/include
-I"/usr/local/R-3.0.2/lib64/R/library/Rcpp/include"
-I"/usr/local/R-3.0.2/lib64/R/library/RcppEigen/include"   -fpic  -g -O2
 -c RcppPACE.cpp -o RcppPACE.o
RcppPACE.cpp: In constructor 'FPCA::FPCA(Rcpp::List, Rcpp::List,
Rcpp::List)':
RcppPACE.cpp:539: error: call of overloaded
'Vector(Rcpp::traits::r_vector_proxy<19>::type)' is ambiguous
/usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:103:
note: candidates are: Rcpp::Vector<RTYPE>::Vector(const Rcpp::Dimension&)
[with int RTYPE = 14]
/usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:102:
note:                 Rcpp::Vector<RTYPE>::Vector(const int&) [with int
RTYPE = 14]
/usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:90:
note:                 Rcpp::Vector<RTYPE>::Vector(const char*) [with int
RTYPE = 14]
/usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:86:
note:                 Rcpp::Vector<RTYPE>::Vector(const std::string&) [with
int RTYPE = 14]
/usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:77:
note:                 Rcpp::Vector<RTYPE>::Vector(const
Rcpp::RObject::AttributeProxy&) [with int RTYPE = 14]
/usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:72:
note:                 Rcpp::Vector<RTYPE>::Vector(const
Rcpp::RObject::SlotProxy&) [with int RTYPE = 14]
/usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:68:
note:                 Rcpp::Vector<RTYPE>::Vector(SEXPREC*) [with int RTYPE
= 14]
/usr/local/R-3.0.2/lib64/R/library/Rcpp/include/Rcpp/vector/Vector.h:63:
note:                 Rcpp::Vector<RTYPE>::Vector(const
Rcpp::Vector<RTYPE>&) [with int RTYPE = 14]
make: *** [RcppPACE.o] Error 1
ERROR: compilation failed for package 'PACE'
* removing '/home/uzhao/R/x86_64-unknown-linux-gnu-library/3.0/PACE'
* restoring previous
'/home/uzhao/R/x86_64-unknown-linux-gnu-library/3.0/PACE'

Is there any suggestion?

Thanks,

Jianyang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140311/b79c3c14/attachment-0001.html>


More information about the Rcpp-devel mailing list