kaneplusplus / bigtabulate

Other
3 stars 1 forks source link

Build fails #2

Closed eddelbuettel closed 9 years ago

eddelbuettel commented 9 years ago
edd@max:~$ install.r bigtabulate
trying URL 'https://cran.rstudio.com/src/contrib/bigtabulate_1.1.4.tar.gz'
Content type 'application/x-gzip' length 14126 bytes (13 KB)
==================================================
downloaded 13 KB

* installing *source* package ‘bigtabulate’ ...
** package ‘bigtabulate’ successfully unpacked and MD5 sums checked
  checking for Sun Studio compiler...no
  checking for OS...Linux
** libs
ccache g++ -I/usr/share/R/include -DNDEBUG -DLINUX  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include" -I"/usr/local/lib/R/site-library/bigmemory/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -Wno-unused -pedantic  -c bigtabulate.cpp -o bigtabulate.o
In file included from bigtabulate.cpp:14:0:
/usr/local/lib/R/site-library/bigmemory/include/bigmemory/util.h: In member function ‘SEXPREC* NewVec<int>::operator()(index_type) const’:
/usr/local/lib/R/site-library/bigmemory/include/bigmemory/util.h:44:46: error: ‘Rcpp’ has not been declared
 {SEXP operator()(index_type n) const {return Rcpp::IntegerVector(n);};};
                                              ^
/usr/local/lib/R/site-library/bigmemory/include/bigmemory/util.h: In function ‘SEXPREC* NEW_FLOAT(index_type)’:
/usr/local/lib/R/site-library/bigmemory/include/bigmemory/util.h:51:12: error: ‘Rcpp’ has not been declared
     return Rcpp::wrap(out);
            ^
/usr/local/lib/R/site-library/bigmemory/include/bigmemory/util.h: In member function ‘SEXPREC* NewVec<double>::operator()(index_type) const’:
/usr/local/lib/R/site-library/bigmemory/include/bigmemory/util.h:60:46: error: ‘Rcpp’ has not been declared
 {SEXP operator()(index_type n) const {return Rcpp::NumericVector(n);};};
                                              ^
In file included from /usr/local/lib/R/site-library/BH/include/boost/checked_delete.hpp:15:0,
                 from /usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:26,
                 from /usr/local/lib/R/site-library/BH/include/boost/shared_ptr.hpp:17,
                 from bigtabulate.cpp:7:
/usr/local/lib/R/site-library/BH/include/boost/core/checked_delete.hpp: In instantiation of ‘void boost::checked_delete(T*) [with T = BreakMapper<double>]’:
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/detail/shared_count.hpp:134:38:   required from ‘boost::detail::shared_count::shared_count(Y*) [with Y = BreakMapper<double>]’
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:271:47:   required from ‘void boost::detail::sp_pointer_construct(boost::shared_ptr<X>*, Y*, boost::detail::shared_count&) [with T = Mapper<double>; Y = BreakMapper<double>]’
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:349:58:   required from ‘boost::shared_ptr<T>::shared_ptr(Y*) [with Y = BreakMapper<double>; T = Mapper<double>]’
bigtabulate.cpp:438:7:   required from ‘SEXPREC* TAPPLY(MatrixAccessorType, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP) [with RType = double; MatrixAccessorType = MatrixAccessor<double>; SEXP = SEXPREC*]’
bigtabulate.cpp:773:69:   required from here
/usr/local/lib/R/site-library/BH/include/boost/core/checked_delete.hpp:34:5: warning: deleting object of polymorphic class type ‘BreakMapper<double>’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
     delete x;
     ^
/usr/local/lib/R/site-library/BH/include/boost/core/checked_delete.hpp: In instantiation of ‘void boost::checked_delete(T*) [with T = IndexMapper<double>]’:
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/detail/shared_count.hpp:134:38:   required from ‘boost::detail::shared_count::shared_count(Y*) [with Y = IndexMapper<double>]’
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:271:47:   required from ‘void boost::detail::sp_pointer_construct(boost::shared_ptr<X>*, Y*, boost::detail::shared_count&) [with T = Mapper<double>; Y = IndexMapper<double>]’
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:349:58:   required from ‘boost::shared_ptr<T>::shared_ptr(Y*) [with Y = IndexMapper<double>; T = Mapper<double>]’
bigtabulate.cpp:445:7:   required from ‘SEXPREC* TAPPLY(MatrixAccessorType, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP) [with RType = double; MatrixAccessorType = MatrixAccessor<double>; SEXP = SEXPREC*]’
bigtabulate.cpp:773:69:   required from here
/usr/local/lib/R/site-library/BH/include/boost/core/checked_delete.hpp:34:5: warning: deleting object of polymorphic class type ‘IndexMapper<double>’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
/usr/local/lib/R/site-library/BH/include/boost/core/checked_delete.hpp: In instantiation of ‘void boost::checked_delete(T*) [with T = BreakMapper<int>]’:
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/detail/shared_count.hpp:134:38:   required from ‘boost::detail::shared_count::shared_count(Y*) [with Y = BreakMapper<int>]’
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:271:47:   required from ‘void boost::detail::sp_pointer_construct(boost::shared_ptr<X>*, Y*, boost::detail::shared_count&) [with T = Mapper<int>; Y = BreakMapper<int>]’
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:349:58:   required from ‘boost::shared_ptr<T>::shared_ptr(Y*) [with Y = BreakMapper<int>; T = Mapper<int>]’
bigtabulate.cpp:438:7:   required from ‘SEXPREC* TAPPLY(MatrixAccessorType, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP) [with RType = int; MatrixAccessorType = MatrixAccessor<int>; SEXP = SEXPREC*]’
bigtabulate.cpp:783:69:   required from here
/usr/local/lib/R/site-library/BH/include/boost/core/checked_delete.hpp:34:5: warning: deleting object of polymorphic class type ‘BreakMapper<int>’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
/usr/local/lib/R/site-library/BH/include/boost/core/checked_delete.hpp: In instantiation of ‘void boost::checked_delete(T*) [with T = IndexMapper<int>]’:
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/detail/shared_count.hpp:134:38:   required from ‘boost::detail::shared_count::shared_count(Y*) [with Y = IndexMapper<int>]’
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:271:47:   required from ‘void boost::detail::sp_pointer_construct(boost::shared_ptr<X>*, Y*, boost::detail::shared_count&) [with T = Mapper<int>; Y = IndexMapper<int>]’
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:349:58:   required from ‘boost::shared_ptr<T>::shared_ptr(Y*) [with Y = IndexMapper<int>; T = Mapper<int>]’
bigtabulate.cpp:445:7:   required from ‘SEXPREC* TAPPLY(MatrixAccessorType, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP) [with RType = int; MatrixAccessorType = MatrixAccessor<int>; SEXP = SEXPREC*]’
bigtabulate.cpp:783:69:   required from here
/usr/local/lib/R/site-library/BH/include/boost/core/checked_delete.hpp:34:5: warning: deleting object of polymorphic class type ‘IndexMapper<int>’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
In file included from bigtabulate.cpp:14:0:
/usr/local/lib/R/site-library/bigmemory/include/bigmemory/util.h:60:69: warning: control reaches end of non-void function [-Wreturn-type]
 {SEXP operator()(index_type n) const {return Rcpp::NumericVector(n);};};
                                                                     ^
/usr/local/lib/R/site-library/bigmemory/include/bigmemory/util.h: In member function ‘SEXPREC* NewVec<int>::operator()(index_type) const’:
/usr/local/lib/R/site-library/bigmemory/include/bigmemory/util.h:44:69: warning: control reaches end of non-void function [-Wreturn-type]
 {SEXP operator()(index_type n) const {return Rcpp::IntegerVector(n);};};
                                                                     ^
/usr/lib/R/etc/Makeconf:143: recipe for target 'bigtabulate.o' failed
make: *** [bigtabulate.o] Error 1
ERROR: compilation failed for package ‘bigtabulate’
* removing ‘/usr/local/lib/R/site-library/bigtabulate’
* restoring previous ‘/usr/local/lib/R/site-library/bigtabulate’

The downloaded source packages are in
    ‘/tmp/downloaded_packages’
Warning message:
In install.packages(f, lib, if (isMatchingFile(f)) NULL else repos) :
  installation of package ‘bigtabulate’ had non-zero exit status
edd@max:~$ 
eddelbuettel commented 9 years ago

This is now taken care of.