You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2021/08/10 13:55:00 UTC
[jira] [Created] (IMPALA-10853) native-toolchain may build cmake
without ssl enabled
Quanlong Huang created IMPALA-10853:
---------------------------------------
Summary: native-toolchain may build cmake without ssl enabled
Key: IMPALA-10853
URL: https://issues.apache.org/jira/browse/IMPALA-10853
Project: IMPALA
Issue Type: Bug
Components: Infrastructure
Reporter: Quanlong Huang
I hit the error while building orc in native-toolchain (check/orc-1.6.2-p11.log):
{code:java}
[ 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
{code}
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
{code:java}
--- 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
{code}
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:
{code:bash}
$ 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)
{code}
However, the one on my dev box (another machine) references libssl.so:
{code:bash}
$ 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)
{code}
We should somehow make sure CMake built in native-toolchain is with SSL enabled.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org