Build issues with SZIP
I am trying to build CMB with CMB-superbuild on Scientific Linux release 7.6 (Nitrogen) using gcc 7.3.1. SZIP 2.1 fails to install with the following errors:
[ 41%] Performing build step for 'szip'
-- szip build command succeeded. See also /home/vpyati/build/superbuild/szip/stamp/szip-build-*.log
[ 41%] Performing install step for 'szip'
CMake Error at /home/vpyati/build/superbuild/szip/stamp/szip-install-Release.cmake:16 (message):
Command failed: 1
'/usr/bin/cmake3' '-P' '/home/vpyati/build/superbuild/sb-szip-install.cmake'
See also
/home/vpyati/build/superbuild/szip/stamp/szip-install-*.log
make[2]: *** [superbuild/CMakeFiles/szip.dir/build.make:75: superbuild/szip/stamp/szip-install] Error 1
make[1]: *** [CMakeFiles/Makefile2:2721: superbuild/CMakeFiles/szip.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Other modules, for exampe gdal, freetype get installed but this error pops up for SZIP only.
To get things going I changed download version of SZIP to 2.1.1 in versions.cmake
. This ends up with an another error as follows
[ 15%] No patch step for 'szip'
[ 15%] Fix get_filename_component call
/home/vpyati/cmb-superbuild/superbuild/projects/apple-unix/patches/szip-add-filename-component.patch:11: trailing whitespace.
GET_FILENAME_COMPONENT (SZIP_INCLUDE_DIRS "${_IMPORT_PREFIX}/include" PATH)
error: config/cmake/SZIP-config.cmake.install.in: No such file or directory
make[2]: *** [superbuild/CMakeFiles/szip.dir/build.make:121: superbuild/szip/stamp/szip-szip-patch-add-filename-component] Error 1
make[1]: *** [CMakeFiles/Makefile2:2721: superbuild/CMakeFiles/szip.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
To make this work I had commented the line superbuild/CMakeFiles/szip.dir/build.make:121
which is to git patch command. After this, I am able to build SZIP and get on with the build for other modules.
@tjcorona FYI.