Cannot build Base: can't find file to patch


I successfully linked a code to Catalyst-v5.6.0-Base-Enable-Python-Essentials-Extras-Rendering-Base, but some writers, e.g. XMLHierarchicalBoxDataWriter and XMLUniformGridAMRWriter, are scrubbed away and not available in the catalyst editions. I am trying to build my extended edition, and to include these writers. As a first step I try to rebuild Base as it is. I made a copy of Base as myBase, and run, but it fails while applying patches (see below).

What do I miss here? Any help is highly appreciated.



[ews00734@Catalyst $] python -r /ascldap/users/tesari/projects/paraview -i Editions/myBase/ -o ~/projects/myBase

Processing Editions/myBase/
patching file ParaViewCore/ClientServerCore/Core/CMakeLists.txt
Hunk #1 FAILED at 34.
Hunk #2 FAILED at 48.
Hunk #3 FAILED at 108.
3 out of 3 hunks FAILED – saving rejects to file ParaViewCore/ClientServerCore/Core/CMakeLists.txt.rej
can’t find file to patch at input line 33
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/ParaViewCore/ClientServerCore/Core/module.cmake b/ParaViewCore/ClientServerCore/Core/module.cmake
|index f17c4df…f0db074 100644
|— a/ParaViewCore/ClientServerCore/Core/module.cmake

+++ b/ParaViewCore/ClientServerCore/Core/module.cmake

File to patch: ^CTraceback (most recent call last):
File “”, line 418, in
File “”, line 413, in main
File “”, line 344, in process
copy_paths(config, manifest[‘modules’])
File “”, line 214, in copy_paths
run_patches(config, path_entry)
File “”, line 151, in run_patches
File “/ascldap/users/tesari/local/python-2.7.16/lib/python2.7/”, line 1099, in wait
pid, sts = _eintr_retry_call(os.waitpid,, 0)
File “/ascldap/users/tesari/local/python-2.7.16/lib/python2.7/”, line 125, in _eintr_retry_call
return func(*args)

Are you using master? Or a released 5.6.0?

I pull from

master doesn’t support the scripts. See for details. In the meantime, I suggest using the release branch to do builds.

Thanks for the info. I checkout release, but now cmake cannot
find vtkModuleAPI and vtkModuleMacros. Just to make sure, I did a
fresh clone,

git clone --recursive ParaView
cd ParaView
git pull
git submodule update --init
git checkout --track -b release origin/release
  Still fails with the same error (see below). Could you advice,




CMake Error at CMakeLists.txt:662 (include):

       include could not find load file:


     CMake Error at CMakeLists.txt:663 (include):

       include could not find load file:


     CMake Error at CMake/ParaViewModuleTop.cmake:44


       Unknown CMake command "vtk_add_to_module_search_path".

     Call Stack (most recent call first):

       CMakeLists.txt:689 (include)

The submodule update --recursive --init should be done after checking out ParaView’s release branch.

We should inform better of this, we still have too many users failing this step.

There’s code in the common-superbuild which detects out-of-date submodules. ParaView could copy it to detect it for VTK and the other submodules.

This is what I had in mind, yes.