-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tbb.h deprecated features #191
Comments
Possibly related:
All warnings about deprecation of |
On upload? Or did you (as I did notice and note here) just saw the note from r-devel? Sometimes those come and go, and not everything added to r-devel checks gets added to incoming checks. That said, they have been making moves there and where we can we should probably move forward. For package BH I commented out an explicit warning that the next upstream will require C++14 (commented out because CRAN dislikes noisy warning) so yes Boost is also moving forward. Generally the right thing to do. But as we know RcppParallel is also not an easy package to maintain so thanks again to @kevinushey for doing the hard work here. |
The C++11 warning is a current CRAN note for me on devel. When I remove the C++11 stuff it and do win-builder, I get the And yes, every thanks to Kevin Ushey. |
This CRAN test, as far as I know only days old, clearly creates confusion as someone on SO already claimed that 'C++11 is now outlawed at CRAN' which is of course not entirely correct. But as they move the minimum language standard from C++14 (currently) to C++17 they simply flag that maintainers way want to consider moving forward. Which may then, as in your case, trigger new and different warnings (from the compiler and C++ library). |
Good to know. |
It would be better to open a new issue to track that specifically, because I don't think it has anything to do with the report here. |
After all, the compilation error was a gcc issue, present in v13.0.0 but fixed in v13.0.1. First comment edited accordingly. We still should think about moving away from the deprecated header. |
Including CXX_STD = CXX14 in the |
When I build the main branch from your NNS repo, it compiles fine as C++11 under the default flags I keep (and also without them): edd@rob:/tmp/rcpp/NNS(NNS-Beta-Version)$ R_LIBS=../lib/ R CMD INSTALL .
* installing to library ‘/tmp/rcpp/lib’
* installing *source* package ‘NNS’ ...
** using staged installation
** libs
ccache g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppParallel/include' -fpic -g -O3 -Wall -pipe -Wno-parentheses -Wno-ignored-attributes -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unused-function -c RcppExports.cpp -o RcppExports.o
ccache g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppParallel/include' -fpic -g -O3 -Wall -pipe -Wno-parentheses -Wno-ignored-attributes -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unused-function -c nns_rcpp.cpp -o nns_rcpp.o
ccache g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppParallel/include' -fpic -g -O3 -Wall -pipe -Wno-parentheses -Wno-ignored-attributes -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unused-function -c partial_moments.cpp -o partial_moments.o
ccache g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppParallel/include' -fpic -g -O3 -Wall -pipe -Wno-parentheses -Wno-ignored-attributes -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unused-function -c partial_moments_rcpp.cpp -o partial_moments_rcpp.o
ccache g++ -std=gnu++11 -Wl,-S -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o NNS.so RcppExports.o nns_rcpp.o partial_moments.o partial_moments_rcpp.o -L/usr/lib/R/lib -lR
installing to /tmp/rcpp/lib/00LOCK-NNS/00new/NNS/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (NNS)
edd@rob:/tmp/rcpp/NNS(NNS-Beta-Version)$ |
Thank you Dirk, yes, but CRAN is rejecting this CXX_STD = CXX17 and removal (in It was a Windows NOTE, as the Debian build was clean... |
I wonder if in this case you could request that they let you keep CXX_STD=CXX11 until RcppParallel has moved to a new TBB library? (Also, as I recall, on Windows it is yet again a different matter as RcppParallel switches to tinythread (or at least it used to)). All this is a little complicated so you could also consider to bite the bullet and for a release or two to simply skip using RcppParallel until this is sorted out. Different options to consider... |
Packages compiling against RcppParallel show:
tbb/tbb.h
is included here. We should think about moving away from that header.The text was updated successfully, but these errors were encountered: