I have just tried to use SuperBuild on a VM (our old empty one). I installed CMake 3.8.1, cloned SIRF-SuperBuild, run cmake . and make and got this error:
stir@ubuntu-stir:~/devel/SIRF-SuperBuild$ make
Scanning dependencies of target HDF5
[ 1%] Creating directories for 'HDF5'
[ 2%] Performing download step (download, verify and extract) for 'HDF5'
-- Downloading...
dst='/home/stir/devel/SIRF-SuperBuild/HDF5-prefix/src/CMake-hdf5-1.10.0-patch1.tar.gz'
timeout='none'
-- Using src='https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz'
-- Retrying...
-- Using src='https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz'
-- Retry after 15 seconds (attempt #4) ...
-- Using src='https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz'
-- Retry after 60 seconds (attempt #5) ...
-- Using src='https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz'
CMake Error at HDF5-stamp/download-HDF5.cmake:157 (message):
Each download failed!
error: downloading 'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
error: downloading 'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
error: downloading 'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
error: downloading 'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
error: downloading 'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
error: downloading 'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0-patch1/src/CMake-hdf5-1.10.0-patch1.tar.gz' failed
status_code: 1
status_string: "Unsupported protocol"
log:
--- LOG BEGIN ---
Protocol "https" not supported or disabled in libcurl
Closing connection -1
--- LOG END ---
CMakeFiles/HDF5.dir/build.make:89: recipe for target 'HDF5-prefix/src/HDF5-stamp/HDF5-download' failed
make[2]: *** [HDF5-prefix/src/HDF5-stamp/HDF5-download] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/HDF5.dir/all' failed
make[1]: *** [CMakeFiles/HDF5.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Hi,
The error suggests that cURL doesn’t have SSL support. Something like:
apt-get install libcurl4-openssl-dev
might solve it.
Kind regards,
Ben
No, it did not help.
By the way, VM’s Firefox downloaded that file ok.
Try with an older CMake? Just to be sure it’s not a new bug…
Tried with CMake 3.7.2, same story.
I quickly searched online and found that CMake uses its own curl, which comes without ssl support.
I will try to compile on the same VM.
Edo
It appears the problem was caused by my building CMake from its sources rather than downloading binaries.
HDF5 now has been downloaded and is being built.