[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Package ranger does not build for me



Hi Marvin,

I'm trying to upgrade the Debian package of ranger.  When trying
to build I get


g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -DR_BUILD -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/RcppEigen/include'    -fpic  -g -O2 -ffile-prefix-map=/build/r-base-kpovBh/r-base-4.1.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c TreeSurvival.cpp -o TreeSurvival.o
TreeSurvival.cpp: In member function 'virtual bool ranger::TreeSurvival::splitNodeInternal(size_t, std::vector<long unsigned int>&)':
TreeSurvival.cpp:113:8: error: redeclaration of 'bool pure'
  113 |   bool pure = true;
      |        ^~~~
TreeSurvival.cpp:92:8: note: 'bool pure' previously declared here
   92 |   bool pure = true;
      |        ^~~~
TreeSurvival.cpp:114:10: error: redeclaration of 'double pure_time'
  114 |   double pure_time = 0;
      |          ^~~~~~~~~
TreeSurvival.cpp:93:10: note: 'double pure_time' previously declared here
   93 |   double pure_time = 0;
      |          ^~~~~~~~~
TreeSurvival.cpp:115:10: error: redeclaration of 'double pure_status'
  115 |   double pure_status = 0;
      |          ^~~~~~~~~~~
TreeSurvival.cpp:94:10: note: 'double pure_status' previously declared here
   94 |   double pure_status = 0;
      |          ^~~~~~~~~~~
make[1]: *** [/usr/lib/R/etc/Makeconf:177: TreeSurvival.o] Error 1
make[1]: Leaving directory '/build/r-cran-ranger-0.13.1/src'


The compiler used is from Debian unstable:

/# gcc --version
gcc (Debian 10.3.0-10) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Please let me know if you need more information.

Kind regards

      Andreas.


-- 
http://fam-tille.de


Reply to: