dmlc / xgboost

Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow

Home Page:https://xgboost.readthedocs.io/en/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New warning on CRAN.

trivialfis opened this issue · comments

I was just looking at this, there is that one:

Result: WARN 
  Found the following significant warnings:
    ./include/xgboost/parameter.h:56:24: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
  See ‘/data/gannet/ripley/R/packages/tests-devel/xgboost.Rcheck/00install.out’ for details.
  * used C compiler: ‘gcc-14 (GCC) 14.1.0’
  * used C++ compiler: ‘g++-14 (GCC) 14.1.0’

But also these using icc:

* checking whether package ‘xgboost’ can be installed ... [12m/16m] WARNING
Found the following significant warnings:
  /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: warning: 'get_temporary_buffer<unsigned long>' is deprecated [-Wdeprecated-declarations]
  /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: warning: 'get_temporary_buffer<std::pair<float, unsigned int>>' is deprecated [-Wdeprecated-declarations]
  /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: warning: 'get_temporary_buffer<float>' is deprecated [-Wdeprecated-declarations]
  /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: warning: 'get_temporary_buffer<xgboost::obj::ListEntry>' is deprecated [-Wdeprecated-declarations]

references:

For {lightgbm}, we received a similar warning from CRAN about template IDs in constructors.

I had success tonight replicating those in CI using the new container images from rhub:

Addressed in #9980 , will backport.