Compilation error when I use Catalyst in ParaView 5.8.1

Dear Sir or Ms:
I use gcc 7.5 and Ubuntu 18.04 to compile ParaView 5.8.1.
I switch on Catalyst, Python and MPI related options in CMake, and make -j8
Some errors happened as following:


[  6%] Generating client_server wrapper sources for vtkVTK_USE_SCALED_SOA_ARRAYS
/home/lijian/paraview-5.8.1/build/CMakeFiles/vtkRemotingClientServerStreamPython/vtkClientServerIDPython.cxx:80:29: error: expected initializer before ‘<’ token
 PyvtkClientServerID_operator<(PyObject *self, PyObject *args)
                             ^
/home/lijian/paraview-5.8.1/build/CMakeFiles/vtkRemotingClientServerStreamPython/vtkClientServerIDPython.cxx:110:29: error: expected initializer before ‘==’ token
 PyvtkClientServerID_operator==(PyObject *self, PyObject *args)
                             ^~
/home/lijian/paraview-5.8.1/build/CMakeFiles/vtkRemotingClientServerStreamPython/vtkClientServerIDPython.cxx:140:29: error: expected initializer before ‘!=’ token
 PyvtkClientServerID_operator!=(PyObject *self, PyObject *args)
                             ^~
/home/lijian/paraview-5.8.1/build/CMakeFiles/vtkRemotingClientServerStreamPython/vtkClientServerIDPython.cxx:173:17: error: ‘PyvtkClientServerID_operator’ was not declared in this scope
   {"operator<", PyvtkClientServerID_operator<, METH_VARARGS,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  6%] Generating Python wrapper sources for vtkConfigure
/home/lijian/paraview-5.8.1/build/CMakeFiles/vtkRemotingClientServerStreamPython/vtkClientServerIDPython.cxx:173:17: note: suggested alternative: ‘PyvtkClientServerID_Methods’
   {"operator<", PyvtkClientServerID_operator<, METH_VARARGS,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 PyvtkClientServerID_Methods
/home/lijian/paraview-5.8.1/build/CMakeFiles/vtkRemotingClientServerStreamPython/vtkClientServerIDPython.cxx:173:46: error: expected primary-expression before ‘,’ token
   {"operator<", PyvtkClientServerID_operator<, METH_VARARGS,
                                              ^
/home/lijian/paraview-5.8.1/build/CMakeFiles/vtkRemotingClientServerStreamPython/vtkClientServerIDPython.cxx:177:18: error: ‘PyvtkClientServerID_operator’ was not declared in this scope
   {"operator==", PyvtkClientServerID_operator==, METH_VARARGS,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lijian/paraview-5.8.1/build/CMakeFiles/vtkRemotingClientServerStreamPython/vtkClientServerIDPython.cxx:177:18: note: suggested alternative: ‘PyvtkClientServerID_Methods’
   {"operator==", PyvtkClientServerID_operator==, METH_VARARGS,

Can anybody help me? Thanks!

This feels like there’s a VTK in LD_LIBRARY_PATH or something mixing with the ParaView build’s copy of it.

@dgobbi?