Build failure with `error: expected unqualified-id`
Following #21315 (closed) I’ve tried to build with the internal fmt in order to detect eventual other issues while this one is being resolved, and I’ve actually found one. The build eventually failed like this:
FAILED: Qt/Components/CMakeFiles/pqComponents.dir/pqAboutDialog.cxx.o
/usr/bin/c++ -DFMT_SHARED -DMPICH_SKIP_MPICXX -DMPI_NO_CPPBIND -DOMPI_SKIP_MPICXX -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DVTK_MODULE_ENABLE_ParaView_pqPython=1 -DVTK_MODULE_ENABLE_VTK_ParallelMPI=1 -D_MPICC_H -Dkiss_fft_scalar=double -DpqComponents_EXPORTS -DvtkRemotingServerManager_AUTOINIT_INCLUDE=\"/build/paraview/src/build/CMakeFiles/vtkModuleAutoInit_0d82148c8043c6ef4b938342dea5013a.h\" -I/build/paraview/src/build/Qt/Components/pqComponents_autogen/include -I/build/paraview/src/build/Qt/Components -I/build/paraview/src/ParaView-v5.10.1/Qt/Components -I/build/paraview/src/build/Qt/Core -I/build/paraview/src/ParaView-v5.10.1/Qt/Core -I/build/paraview/src/build/Qt/Widgets -I/build/paraview/src/ParaView-v5.10.1/Qt/Widgets -I/build/paraview/src/build/ThirdParty/QtTesting/vtkqttesting -I/build/paraview/src/ParaView-v5.10.1/ThirdParty/QtTesting/vtkqttesting -I/build/paraview/src/build/VTK/GUISupport/Qt -I/build/paraview/src/ParaView-v5.10.1/VTK/GUISupport/Qt -I/build/paraview/src/build/VTK/Common/Core -I/build/paraview/src/ParaView-v5.10.1/VTK/Common/Core -I/build/paraview/src/build/VTK/Rendering/Core -I/build/paraview/src/ParaView-v5.10.1/VTK/Rendering/Core -I/build/paraview/src/build/VTK/Common/DataModel -I/build/paraview/src/ParaView-v5.10.1/VTK/Common/DataModel -I/build/paraview/src/build/VTK/Common/Math -I/build/paraview/src/ParaView-v5.10.1/VTK/Common/Math -I/build/paraview/src/build/VTK/ThirdParty/kissfft/vtkkissfft -I/build/paraview/src/ParaView-v5.10.1/VTK/ThirdParty/kissfft/vtkkissfft -I/build/paraview/src/build/VTK/Common/Transforms -I/build/paraview/src/ParaView-v5.10.1/VTK/Common/Transforms -I/build/paraview/src/build/VTK/Common/ExecutionModel -I/build/paraview/src/ParaView-v5.10.1/VTK/Common/ExecutionModel -I/build/paraview/src/build/VTK/Filters/Core -I/build/paraview/src/ParaView-v5.10.1/VTK/Filters/Core -I/build/paraview/src/build/VTK/Common/Misc -I/build/paraview/src/ParaView-v5.10.1/VTK/Common/Misc -I/build/paraview/src/build/VTK/Rendering/OpenGL2 -I/build/paraview/src/ParaView-v5.10.1/VTK/Rendering/OpenGL2 -I/build/paraview/src/build/VTK/Filters/General -I/build/paraview/src/ParaView-v5.10.1/VTK/Filters/General -I/build/paraview/src/build/VTK/Rendering/UI -I/build/paraview/src/ParaView-v5.10.1/VTK/Rendering/UI -I/build/paraview/src/build/VTK/Interaction/Widgets -I/build/paraview/src/ParaView-v5.10.1/VTK/Interaction/Widgets -I/build/paraview/src/build/VTK/Filters/Sources -I/build/paraview/src/ParaView-v5.10.1/VTK/Filters/Sources -I/build/paraview/src/build/VTK/Rendering/Context2D -I/build/paraview/src/ParaView-v5.10.1/VTK/Rendering/Context2D -I/build/paraview/src/build/Remoting/Core -I/build/paraview/src/ParaView-v5.10.1/Remoting/Core -I/build/paraview/src/build/Remoting/ClientServerStream -I/build/paraview/src/ParaView-v5.10.1/Remoting/ClientServerStream -I/build/paraview/src/build/VTKExtensions/Core -I/build/paraview/src/ParaView-v5.10.1/VTKExtensions/Core -I/build/paraview/src/build/VTK/IO/XML -I/build/paraview/src/ParaView-v5.10.1/VTK/IO/XML -I/build/paraview/src/build/VTK/IO/XMLParser -I/build/paraview/src/ParaView-v5.10.1/VTK/IO/XMLParser -I/build/paraview/src/build/VTK/ThirdParty/fmt/vtkfmt -I/build/paraview/src/ParaView-v5.10.1/VTK/ThirdParty/fmt/vtkfmt -I/build/paraview/src/build/VTK/Parallel/Core -I/build/paraview/src/ParaView-v5.10.1/VTK/Parallel/Core -I/build/paraview/src/build/Remoting/ServerManager -I/build/paraview/src/ParaView-v5.10.1/Remoting/ServerManager -I/build/paraview/src/build/Remoting/Animation -I/build/paraview/src/ParaView-v5.10.1/Remoting/Animation -I/build/paraview/src/build/Remoting/Views -I/build/paraview/src/ParaView-v5.10.1/Remoting/Views -I/build/paraview/src/build/VTK/Charts/Core -I/build/paraview/src/ParaView-v5.10.1/VTK/Charts/Core -I/build/paraview/src/build/VTK/Rendering/Annotation -I/build/paraview/src/ParaView-v5.10.1/VTK/Rendering/Annotation -I/build/paraview/src/build/VTK/Rendering/Parallel -I/build/paraview/src/ParaView-v5.10.1/VTK/Rendering/Parallel -I/build/paraview/src/build/VTK/Views/Context2D -I/build/paraview/src/ParaView-v5.10.1/VTK/Views/Context2D -I/build/paraview/src/build/VTK/Views/Core -I/build/paraview/src/ParaView-v5.10.1/VTK/Views/Core -I/build/paraview/src/build/VTKExtensions/IOCore -I/build/paraview/src/ParaView-v5.10.1/VTKExtensions/IOCore -I/build/paraview/src/build/VTK/IO/Core -I/build/paraview/src/ParaView-v5.10.1/VTK/IO/Core -I/build/paraview/src/build/VTK/IO/Movie -I/build/paraview/src/ParaView-v5.10.1/VTK/IO/Movie -I/build/paraview/src/build/Remoting/Application -I/build/paraview/src/ParaView-v5.10.1/Remoting/Application -I/build/paraview/src/build/Remoting/Live -I/build/paraview/src/ParaView-v5.10.1/Remoting/Live -I/build/paraview/src/build/Remoting/Misc -I/build/paraview/src/ParaView-v5.10.1/Remoting/Misc -I/build/paraview/src/build/Remoting/Settings -I/build/paraview/src/ParaView-v5.10.1/Remoting/Settings -I/build/paraview/src/build/VTK/Common/System -I/build/paraview/src/ParaView-v5.10.1/VTK/Common/System -I/build/paraview/src/build/VTK/IO/Image -I/build/paraview/src/ParaView-v5.10.1/VTK/IO/Image -I/build/paraview/src/build/VTK/Imaging/Core -I/build/paraview/src/ParaView-v5.10.1/VTK/Imaging/Core -I/build/paraview/src/build/VTK/Parallel/MPI -I/build/paraview/src/ParaView-v5.10.1/VTK/Parallel/MPI -I/build/paraview/src/build/Qt/Python -I/build/paraview/src/ParaView-v5.10.1/Qt/Python -I/build/paraview/src/build/VTK/Utilities/PythonInterpreter -I/build/paraview/src/ParaView-v5.10.1/VTK/Utilities/PythonInterpreter -I/build/paraview/src/build/VTK/Utilities/Python -I/build/paraview/src/ParaView-v5.10.1/VTK/Utilities/Python -I/build/paraview/src/build/VTK/Wrapping/PythonCore -I/build/paraview/src/ParaView-v5.10.1/VTK/Wrapping/PythonCore -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -isystem /usr/lib/qt/mkspecs/linux-g++ -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /build/paraview/src/build/VTK/Utilities/KWIML -isystem /build/paraview/src/ParaView-v5.10.1/VTK/Utilities/KWIML -isystem /build/paraview/src/build/VTK/Utilities/KWSys -isystem /build/paraview/src/ParaView-v5.10.1/VTK/Utilities/KWSys -isystem /build/paraview/src/build/VTK/ThirdParty/kissfft -isystem /build/paraview/src/ParaView-v5.10.1/VTK/ThirdParty/kissfft -isystem /build/paraview/src/build/VTK/ThirdParty/glew -isystem /build/paraview/src/ParaView-v5.10.1/VTK/ThirdParty/glew -isystem /usr/include/qt/QtOpenGL -isystem /build/paraview/src/build/VTK/ThirdParty/cli11 -isystem /build/paraview/src/ParaView-v5.10.1/VTK/ThirdParty/cli11 -isystem /build/paraview/src/build/VTK/ThirdParty/fmt -isystem /build/paraview/src/ParaView-v5.10.1/VTK/ThirdParty/fmt -isystem /build/paraview/src/build/ThirdParty/protobuf -isystem /build/paraview/src/ParaView-v5.10.1/ThirdParty/protobuf -isystem /build/paraview/src/build/VTK/ThirdParty/jsoncpp -isystem /build/paraview/src/ParaView-v5.10.1/VTK/ThirdParty/jsoncpp -isystem /build/paraview/src/build/VTK/ThirdParty/pugixml -isystem /build/paraview/src/ParaView-v5.10.1/VTK/ThirdParty/pugixml -isystem /build/paraview/src/build/VTK/Utilities/MPI -isystem /build/paraview/src/ParaView-v5.10.1/VTK/Utilities/MPI -isystem /usr/include/python3.10 -isystem /usr/include/qt/QtNetwork -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pthread -std=c++11 -MD -MT Qt/Components/CMakeFiles/pqComponents.dir/pqAboutDialog.cxx.o -MF Qt/Components/CMakeFiles/pqComponents.dir/pqAboutDialog.cxx.o.d -o Qt/Components/CMakeFiles/pqComponents.dir/pqAboutDialog.cxx.o -c /build/paraview/src/ParaView-v5.10.1/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 /build/paraview/src/ParaView-v5.10.1/VTK/Common/Core/SMP/TBB/vtkSMPToolsImpl.txx:29,
from /build/paraview/src/ParaView-v5.10.1/VTK/Common/Core/SMP/Common/vtkSMPToolsAPI.h:34,
from /build/paraview/src/ParaView-v5.10.1/VTK/Common/Core/vtkSMPTools.h:36,
from /build/paraview/src/ParaView-v5.10.1/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 &) { }
| ~^~~~~
| )
Since this seems TBB related, note that we use tbb 2021.5.
The error seems to be in TBB itself from my understanding, but I’m not entirely sure so I thought I should ask here.