vtkMomentInvariants.cxx build problem

This is a remote module that should not be built by default? Did you turn it on?
You should be able to turn it off.

https://vtk.org/Wiki/VTK/Remote_Modules#Policy_for_Adding_and_Removing_Remote_Modules

Dan