https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101228
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|#include <execution> |tbb/task.h is Deprecated in |triggers Intel TBB warning |newer TBB. |for tbb/task.h | Last reconfirmed| |2021-06-27 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- tbb/task.h just got deprecated last year and after parallel_backend_tbb.h was added to GCC. https://github.com/oneapi-src/oneTBB/issues/243 It depends on the version of TBB that is installed really. Looks like Ubuntu 11.1.0 is using a much newer version. You really should file a bug with Ubuntu about this issue since you are getting both GCC and TBB from them. We won't fixing Ubuntu's compiler even with this bug filed by the way.