ParaView does not build with TBB 2021.5.0
With TBB 2021.5.0
cxx.o -c /home/glow/work/paraview/pv3/src/Qt/Components/pqAboutDialog.cxx
In file included from /usr/include/oneapi/tbb/detail/_small_object_pool.h:23,
from /usr/include/oneapi/tbb/detail/_task.h:23,
from /usr/include/oneapi/tbb/parallel_for.h:23,
from /usr/include/tbb/parallel_for.h:17,
from /home/glow/work/paraview/pv3/src/VTK/Common/Core/SMP/TBB/vtkSMPToolsImpl.txx:29,
from /home/glow/work/paraview/pv3/src/VTK/Common/Core/SMP/Common/vtkSMPToolsAPI.h:34,
from /home/glow/work/paraview/pv3/src/VTK/Common/Core/vtkSMPTools.h:36,
from /home/glow/work/paraview/pv3/src/Qt/Components/pqAboutDialog.cxx:52:
/usr/include/oneapi/tbb/profiling.h:229:15: error: expected unqualified-id before ‘)’ token
229 | void emit() { }
| ^
/usr/include/oneapi/tbb/profiling.h:231:22: error: expected unqualified-id before ‘const’
231 | static void emit(const std::string &) { }
| ^~~~~
/usr/include/oneapi/tbb/profiling.h:231:22: error: expected ‘)’ before ‘const’
231 | static void emit(const std::string &) { }
| ~^~~~~
|
Using another SMP option fixes the issue.
FYI @charles.gueunet