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

Jianyang Zhao uzhao at ucdavis.edu
Wed Mar 12 01:29:29 CET 2014


Hello Kevin,

I guess this is the problem. I just check the server I used and the gcc is
4.4.6-4. Thank you for your help.

Jianyang


On Tue, Mar 11, 2014 at 4:46 PM, Kevin Ushey <kevinushey at gmail.com> wrote:

> Hi Jianyang,
>
> I can't replicate your error on Mac OS X or Ubuntu 13.04 (gcc 4.7.3).
> The package installs successfully for me in each case with latest git
> revision of Rcpp, and latest CRAN version of RcppEigen (after removing
> the src-i386 and src-x64 folders and the prebuilt .dll)
>
> What version of gcc are you using in Linux (gcc -v)?
>
> Kevin
>
> On Tue, Mar 11, 2014 at 1:48 PM, Jianyang Zhao <uzhao at ucdavis.edu> wrote:
> > Hello Kevin,
> >
> > I use the least version Rcpp and RcppEigen. The github link is at
> >
> > https://github.com/uzhao/PACE
> >
> > Thanks,
> >
> > JIanyang
> >
> >
> > On Tue, Mar 11, 2014 at 1:36 PM, Kevin Ushey <kevinushey at gmail.com>
> wrote:
> >>
> >> Hi Jianyang,
> >>
> >> If you are willing to put your package on GitHub or somewhere else
> >> publicly accessible, I can take a closer look.
> >>
> >> My best guess, from your compiler output, is you're trying to
> >> construct a vector from a proxy, and the compiler can't figure out
> >> what constructor to call. You might want to insert an explicit wrap()
> >> so that the SEXP constructor is called.
> >>
> >> Also, which version of Rcpp?
> >>
> >> Cheers,
> >> Kevin
> >>
> >> On Tue, Mar 11, 2014 at 1:23 PM, Jianyang Zhao <uzhao at ucdavis.edu>
> wrote:
> >> > 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
> >> >
> >> > _______________________________________________
> >> > 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
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140311/a77d945d/attachment.html>


More information about the Rcpp-devel mailing list