[Rcpp-devel] Package built with Rcpp fails to install

Simon Zehnder szehnder at uni-bonn.de
Mon Feb 3 21:35:14 CET 2014

I get the error on the Scientific Linux Machine when using Rcpp 0.11.0:

Installing github repo(s) dendextendRcpp/master from talgalili
Downloading dendextendRcpp.zip from https://github.com/talgalili/dendextendRcpp/archive/master.zip
Installing package from /tmp/simo_109/cluster_2399/RtmpR3MPKe/dendextendRcpp.zip
Installing dendextendRcpp
'/home/simo_109/opt/R/lib64/R/bin/R' --vanilla CMD INSTALL  \
  '/w0/tmp/simo_109/cluster_2399/RtmpR3MPKe/dendextendRcpp-master'  \
  --library='/rwthfs/rz/cluster/home/simo_109/opt/R/lib64/R/library'  \
  --with-keep.source --install-tests

* installing *source* package 'dendextendRcpp' ...
** libs
g++ -I/home/simo_109/opt/R/lib64/R/include -DNDEBUG  -I/usr/local/include -I"/rwthfs/rz/cluster/home/simo_109/opt/R/lib64/R/library/Rcpp/include"   -fpic  -g -O2  -c RcppExports.cpp -o RcppExports.o
g++ -I/home/simo_109/opt/R/lib64/R/include -DNDEBUG  -I/usr/local/include -I"/rwthfs/rz/cluster/home/simo_109/opt/R/lib64/R/library/Rcpp/include"   -fpic  -g -O2  -c cut_lower.cpp -o cut_lower.o
cut_lower.cpp: In function 'void find_dend_for_height(Rcpp::List, std::vector<Rcpp::RObject_Impl<Rcpp::PreserveStorage> >&, double)':
cut_lower.cpp:35:22: error: could not convert 'tree' from 'Rcpp::List {aka Rcpp::Vector<19>}' to 'Rcpp::RObject'
    if(get_height(tree) <= height) {
cut_lower.cpp:36:27: error: no matching function for call to 'std::vector<Rcpp::RObject_Impl<Rcpp::PreserveStorage> >::push_back(Rcpp::List&)'
cut_lower.cpp:36:27: note: candidate is:
In file included from /rwthfs/rz/SW/gcc/SCIENTIFIC-6.0/4.8.1/include/c++/4.8.1/vector:64:0,
                 from /rwthfs/rz/cluster/home/simo_109/opt/R/lib64/R/library/Rcpp/include/RcppCommon.h:70,
                 from /rwthfs/rz/cluster/home/simo_109/opt/R/lib64/R/library/Rcpp/include/Rcpp.h:27,
                 from cut_lower.cpp:22:
/rwthfs/rz/SW/gcc/SCIENTIFIC-6.0/4.8.1/include/c++/4.8.1/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Rcpp::RObject_Impl<Rcpp::PreserveStorage>; _Alloc = std::allocator<Rcpp::RObject_Impl<Rcpp::PreserveStorage> >; std::vector<_Tp, _Alloc>::value_type = Rcpp::RObject_Impl<Rcpp::PreserveStorage>]
       push_back(const value_type& __x)
/rwthfs/rz/SW/gcc/SCIENTIFIC-6.0/4.8.1/include/c++/4.8.1/bits/stl_vector.h:901:7: note:   no known conversion for argument 1 from 'Rcpp::List {aka Rcpp::Vector<19>}' to 'const value_type& {aka const Rcpp::RObject_Impl<Rcpp::PreserveStorage>&}'
cut_lower.cpp: In function 'std::vector<Rcpp::RObject_Impl<Rcpp::PreserveStorage> > Rcpp_cut_lower(Rcpp::List, double, bool)':
cut_lower.cpp:84:21: error: could not convert 'tree' from 'Rcpp::List {aka Rcpp::Vector<19>}' to 'Rcpp::RObject'
    if(is_leaf( tree )) {
make: *** [cut_lower.o] Error 1
ERROR: compilation failed for package 'dendextendRcpp'
* removing '/rwthfs/rz/cluster/home/simo_109/opt/R/lib64/R/library/dendextendRcpp'
* restoring previous '/rwthfs/rz/cluster/home/simo_109/opt/R/lib64/R/library/dendextendRcpp'
Error: Command failed (1)



On 03 Feb 2014, at 21:26, Dirk Eddelbuettel <edd at debian.org> wrote:

> On 3 February 2014 at 11:51, Kevin Ushey wrote:
> | Hi Tal,
> | 
> | Just to confirm -- have you updated to Rcpp 0.11.0? I imagine you are
> | still using 0.10.6, and hence this is why you don't see the error we /
> | CRAN did. Perhaps when you tested in Winbuilder it was still using the
> | old Rcpp as well, since the new release is still rolling out.
> Ahh. That could be it.  
> I just install dendextendRcpp fine on a machine at work with last week's
> software stack.  Under Rcpp 0.10.6 it works.  So Tal is a week late or we
> would have take care of things :)   So that now makes it roughly one out of
> maybe half a dozen packages that needed actual code changes for 0.11.0.
> Dirk
> -- 
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
> _______________________________________________
> 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

More information about the Rcpp-devel mailing list