You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by mi...@apache.org on 2026/10/12 21:53:18 UTC

(impala) branch master updated: IMPALA-14148: Include libstdc++ for older OS

This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git


The following commit(s) were added to refs/heads/master by this push:
     new cfdeef079 IMPALA-14148: Include libstdc++ for older OS
cfdeef079 is described below

commit cfdeef079f9706788664f0e4e4784f3f92cb308d
Author: Michael Smith <mi...@cloudera.com>
AuthorDate: Mon Oct 12 09:19:20 2026 -0700

    IMPALA-14148: Include libstdc++ for older OS
    
    Adds toolchain GCC rpath for Kudu protobuf tools used during build to
    fix
    
        protoc-gen-insertions: /lib64/libstdc++.so.6: version
        `GLIBCXX_3.4.29' not found
    
    on RedHat 8 builds.
    
    Change-Id: I42f4b136e6994b6f84c1fcd245f57aff82ed5b57
    Reviewed-on: http://gerrit.cloudera.org:8080/25106
    Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
 be/src/kudu/rpc/CMakeLists.txt  | 2 ++
 be/src/kudu/util/CMakeLists.txt | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/be/src/kudu/rpc/CMakeLists.txt b/be/src/kudu/rpc/CMakeLists.txt
index c4eb997dc..8d41002a5 100644
--- a/be/src/kudu/rpc/CMakeLists.txt
+++ b/be/src/kudu/rpc/CMakeLists.txt
@@ -109,6 +109,8 @@ add_executable(protoc-gen-krpc protoc-gen-krpc.cc
 # IMPALA-8642: kudu_version.cc depends on gen-cpp/Status_types.h in target thrift-deps
 add_dependencies(protoc-gen-krpc thrift-deps)
 target_link_libraries(protoc-gen-krpc gutil glog gflags protoc protobuf rpc_header_proto ${KUDU_BASE_LIBS})
+# Impala - run at build time, so needs rpath to the toolchain's libstdc++.
+set_target_properties(protoc-gen-krpc PROPERTIES LINK_FLAGS "${TOOLCHAIN_LINK_FLAGS}")
 
 ### RPC test
 if(NOT NO_TESTS)
diff --git a/be/src/kudu/util/CMakeLists.txt b/be/src/kudu/util/CMakeLists.txt
index 140c1718f..95932a981 100644
--- a/be/src/kudu/util/CMakeLists.txt
+++ b/be/src/kudu/util/CMakeLists.txt
@@ -455,6 +455,9 @@ add_executable(protoc-gen-insertions protoc-gen-insertions.cc)
 # Impala needs some extra dependency libs compared to Kudu.
 # Note that the order is important.
 target_link_libraries(protoc-gen-insertions gutil glog gflags protoc protobuf  ${KUDU_BASE_LIBS})
+# Impala - run at build time, so needs rpath to the toolchain's libstdc++.
+set_target_properties(protoc-gen-insertions PROPERTIES LINK_FLAGS
+  "${TOOLCHAIN_LINK_FLAGS}")
 
 #######################################
 # kudu_test_util