paraview-fix-catalyst-adapter-deps.patch is breaking the build
This has been mentioned in the LANL paraview call and via email, but here it is in ticket form.
The patch has a quoting error:
--build-options -C "${BINARY_DIR}/${lname}_build_options.cmake"
should be:
--build-options "-C ${BINARY_DIR}/${lname}_build_options.cmake"
But that's not all!
Fixing that reveals that there are quoting problems in the generated file that it's trying to include too. For example:
+set(Qt5_DIR ${Qt5_DIR} CACHE PATH \"\")
should be quoted in case ${Qt5_DIR} is an empty string:
+set(Qt5_DIR \"${Qt5_DIR}\" CACHE PATH \"\")
Yet that doesn't quite work either. When the Paraview build tries to run that file, we still get an error:
Internal cmake changing into directory: /tmp/pflarr/paraview-builds/toss3/snow/5.6.0-osmesa_gcc-7.4.0_openmpi-2.1.2_python-2.7-anaconda-5.0.1/superbuild/paraview/build/CoProcessing/Adaptors/CamAdaptor
Error: cmake execution failed
CMake Error: Error processing file: /tmp/pflarr/paraview-builds/toss3/snow/5.6.0-osmesa_gcc-7.4.0_openmpi-2.1.2_python-2.7-anaconda-5.0.1/superbuild/paraview/build/CoProcessing/Adaptors/camadaptor_build_options.cmake
The CXX compiler identification is GNU 7.4.0
Check for working CXX compiler: /usr/projects/hpcsoft/toss3/common/x86_64/gcc/7.4.0/bin/g++
Configuring
Check for working CXX compiler: /usr/projects/hpcsoft/toss3/common/x86_64/gcc/7.4.0/bin/g++ -- works
Detecting CXX compiler ABI info
Configuring
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Configuring
Configuring
Configuring
Configuring
Detecting CXX compile features - done
CMake Error at CMakeLists.txt:4 (find_package):
By not providing "FindParaView.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "ParaView",
but CMake did not find one.
Could not find a package configuration file provided by "ParaView" with any
of the following names:
ParaViewConfig.cmake
paraview-config.cmake
Add the installation prefix of "ParaView" to CMAKE_PREFIX_PATH or set
"ParaView_DIR" to a directory containing one of the above files. If
"ParaView" provides a separate development package or SDK, be sure it has
been installed.
Configuring
Configuring incomplete, errors occurred!
See also "/tmp/pflarr/paraview-builds/toss3/snow/5.6.0-osmesa_gcc-7.4.0_openmpi-2.1.2_python-2.7-anaconda-5.0.1/superbuild/paraview/build/CoProcessing/Adaptors/CamAdaptor/CMakeFiles/CMakeOutput.log".
Full build_log.txt:
What madness is this?
- The file exists where it's looked for (camadaptor_build_options.cmake).
- It appears to be valid CMAKE.
- I get no errors from cmake when using the contents as a CMakeLists.txt file, nor with -C and a blank CMakeLists.txt.
I'm stumped.
Edited by Paul Ferrell