Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
ghx-label-3
Description
I hit the error while building orc in native-toolchain (check/orc-1.6.2-p11.log):
[ 2%] Performing download step (download, verify and extract) for 'zstd_ep' cd /home/systest/native-toolchain/source/orc/orc-1.6.2-p11/zstd_ep-prefix/src && /home/systest/native-toolchain/build/cmake-3.14.3/bin/cmake -P /home/systest/native-toolchain/source/orc/orc-1.6.2-p11/zstd_ep-prefix/src/zstd_ep-stamp/zstd_ep-download-RELEASE.cmake CMake Error at zstd_ep-stamp/zstd_ep-download-RELEASE.cmake:49 (message): Command failed: 1 '/home/systest/native-toolchain/build/cmake-3.14.3/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/home/systest/native-toolchain/source/orc/orc-1.6.2-p11/zstd_ep-prefix/src/zstd_ep-stamp/zstd_ep-download-RELEASE-impl.cmake' See also /home/systest/native-toolchain/source/orc/orc-1.6.2-p11/zstd_ep-prefix/src/zstd_ep-stamp/zstd_ep-download-*.log CMakeFiles/zstd_ep.dir/build.make:90: recipe for target 'zstd_ep-prefix/src/zstd_ep-stamp/zstd_ep-download' failed make[2]: *** [zstd_ep-prefix/src/zstd_ep-stamp/zstd_ep-download] Error 1 make[2]: Leaving directory '/home/systest/native-toolchain/source/orc/orc-1.6.2-p11' CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/zstd_ep.dir/all' failed make[1]: *** [CMakeFiles/zstd_ep.dir/all] Error 2 make[1]: Leaving directory '/home/systest/native-toolchain/source/orc/orc-1.6.2-p11' Makefile:162: recipe for target 'all' failed make: *** [all] Error 2
The errors in source/orc/orc-1.6.2-p11/zstd_ep-prefix/src/zstd_ep-stamp/zstd_ep-download-err.log are something like
--- LOG END --- error: downloading 'https://github.com/facebook/zstd/archive/v1.3.5.tar.gz' failed status_code: 1 status_string: "Unsupported protocol" log: --- LOG BEGIN --- Protocol "https" not supported or disabled in libcurl Closing connection -1
CMake is downloading dependencies and failed by its libcurl not support https. This is a relative answer: https://stackoverflow.com/a/35743255
I check the cmake binary in my build. It doesn't reference libssl:
$ ldd build/cmake-3.14.3/bin/cmake linux-vdso.so.1 (0x00007fff63fb0000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f540c687000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f540c47f000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f540c260000) libstdc++.so.6 => /home/systest/native-toolchain/build/cmake-3.14.3/bin/../lib/libstdc++.so.6 (0x00007f540bed7000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f540bb39000) libgcc_s.so.1 => /home/systest/native-toolchain/build/cmake-3.14.3/bin/../lib/libgcc_s.so.1 (0x00007f540b922000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f540b531000) /lib64/ld-linux-x86-64.so.2 (0x00007f540c88b000)
However, the one on my dev box (another machine) references libssl.so:
$ ldd ~/workspace/Impala/toolchain/toolchain-packages-gcc7.5.0/cmake-3.14.3/bin/cmake linux-vdso.so.1 => (0x00007ffc448b0000) libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f8fc8fe3000) libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f8fc8b9e000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8fc899a000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8fc8792000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8fc8575000) libstdc++.so.6 => /home/quanlong/workspace/Impala/toolchain/toolchain-packages-gcc7.5.0/cmake-3.14.3/bin/../lib/libstdc++.so.6 (0x00007f8fc81f2000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8fc7ee9000) libgcc_s.so.1 => /home/quanlong/workspace/Impala/toolchain/toolchain-packages-gcc7.5.0/cmake-3.14.3/bin/../lib/libgcc_s.so.1 (0x00007f8fc7cd3000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8fc7909000) /lib64/ld-linux-x86-64.so.2 (0x00007f8fc924b000)
We should somehow make sure CMake built in native-toolchain is with SSL enabled.