No rule to make target '/usr/include/python3.6/context.h'

Failed to build VTK with the following ERROR messages:

[ 22%] Built target vtkFiltersPython-hierarchy
make -f CMakeFiles/vtkFiltersPythonPython.dir/build.make CMakeFiles/vtkFiltersPythonPython.dir/depend
make[2]: Entering directory '....../VTK/build_18.04'
make[2]: *** No rule to make target '/usr/include/python3.6/context.h', needed by 'CMakeFiles/vtkFiltersPythonPython/vtkPythonAlgorithmPython.cxx'.  Stop.
make[2]: Leaving directory '....../VTK/build_18.04'
CMakeFiles/Makefile2:9770: recipe for target 'CMakeFiles/vtkFiltersPythonPython.dir/all' failed
make[1]: *** [CMakeFiles/vtkFiltersPythonPython.dir/all] Error 2
make[1]: Leaving directory '....../VTK/build_18.04'
Makefile:143: recipe for target 'all' failed
make: *** [all] Error 2

Please help…

Cheers
Pei

This feels like a dependency issue with the Unix Makefiles generator and the hierarchy files. Does running make depend clean up the error on following builds?

Cc: @dgobbi