https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101228
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- There's no easy solution. Intel contributed the PSTL headers with a dependency on TBB task.h header, then deprecated that header in a later TBB release. You need to either use an older TBB, or suppress the warning. There is a plan to add an OpenMP backend to PSTL, which will remove the TBB dependency, but it's not ready yet.