This is an automated email from the ASF dual-hosted git repository. adonisling pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 4db18c139c [fix](thirdparty) g++-11: error: unrecognized command-line option '-m… (#13607) 4db18c139c is described below commit 4db18c139c668fdb6fee22fbfb0f24c7097f2442 Author: Dongyang Li <hello_step...@qq.com> AuthorDate: Tue Oct 25 21:35:31 2022 +0800 [fix](thirdparty) g++-11: error: unrecognized command-line option '-m… (#13607) When compiling third-party hdfs on aarch64 machine, got error: g++-11: error: unrecognized command-line option '-msse4.2' --- thirdparty/build-thirdparty.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh index c7906546c5..e404757a2b 100755 --- a/thirdparty/build-thirdparty.sh +++ b/thirdparty/build-thirdparty.sh @@ -1345,8 +1345,13 @@ build_hdfs3() { cd "${BUILD_DIR}" rm -rf ./* + if [[ "$(uname -m)" == "x86_64" ]]; then + SSE_OPTION='-DENABLE_SSE=ON' + else + SSE_OPTION='-DENABLE_SSE=OFF' + fi cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="${TP_INSTALL_DIR}" \ - -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_TEST=OFF \ + -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_TEST=OFF "${SSE_OPTION}" \ -DProtobuf_PROTOC_EXECUTABLE="${TP_INSTALL_DIR}/bin/protoc" \ -DProtobuf_INCLUDE_DIR="${TP_INSTALL_DIR}/include" \ -DProtobuf_LIBRARIES="${TP_INSTALL_DIR}/lib/libprotoc.a" \ --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org