You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2026/07/27 20:57:50 UTC

(kudu) branch master updated: [build-support] build Kudu with GCC13 on SLES15SP6

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/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new 47a908950 [build-support] build Kudu with GCC13 on SLES15SP6
47a908950 is described below

commit 47a908950d2f3379ddab11c6fca3a696befcbe02
Author: Alexey Serbin <al...@apache.org>
AuthorDate: Sat Jul 18 11:09:54 2026 -0700

    [build-support] build Kudu with GCC13 on SLES15SP6
    
    Change-Id: I20371201ee7b18a72e745f80a57e07dd907013ac
    Reviewed-on: http://gerrit.cloudera.org:8080/24607
    Tested-by: Alexey Serbin <al...@apache.org>
    Reviewed-by: Marton Greber <gr...@gmail.com>
---
 build-support/ccache-gcc-13/c++    | 21 +++++++++++++++++++++
 build-support/ccache-gcc-13/cc     | 21 +++++++++++++++++++++
 build-support/enable_devtoolset.sh | 16 ++++++++++++----
 3 files changed, 54 insertions(+), 4 deletions(-)

diff --git a/build-support/ccache-gcc-13/c++ b/build-support/ccache-gcc-13/c++
new file mode 100755
index 000000000..7591ff7c1
--- /dev/null
+++ b/build-support/ccache-gcc-13/c++
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# A helper script to invoke gcc-13 via ccache. Useful for SLES15SP6.
+
+exec ccache /usr/bin/g++-13 "$@"
diff --git a/build-support/ccache-gcc-13/cc b/build-support/ccache-gcc-13/cc
new file mode 100755
index 000000000..086689f68
--- /dev/null
+++ b/build-support/ccache-gcc-13/cc
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# A helper script to invoke gcc-13 via ccache. Useful for SLES15SP6.
+
+exec ccache /usr/bin/gcc-13 "$@"
diff --git a/build-support/enable_devtoolset.sh b/build-support/enable_devtoolset.sh
index d25802723..f22e4f8f5 100755
--- a/build-support/enable_devtoolset.sh
+++ b/build-support/enable_devtoolset.sh
@@ -43,21 +43,29 @@ custom_run_at_rhel() {
 custom_run_at_sles() {
   # On SLES12 and SLES15, Kudu can be built both by gcc-8 and gcc-7 since
   # either one supports the C++17 standard. Prefer gcc-8 over gcc-7 if both
-  # compilers are present.
+  # compilers are present. On SLES15SP6, it's possible to build Kudu
+  # with gcc-13.
+  #
+  # NOTE: with GCC13, make sure libgcc_s1 is 13.3.0+git8781-150000.1.12.1
+  #       and later versions; see KUDU-3545 for details [1]
+  #
+  # [1] https://issues.apache.org/jira/browse/KUDU-3545
   local GCC_MAJOR_VERSION=
-  if /usr/bin/gcc-8 -v > /dev/null 2>&1 && /usr/bin/g++-8 -v > /dev/null 2>&1; then
+  if /usr/bin/gcc-13 -v > /dev/null 2>&1 && /usr/bin/g++-13 -v > /dev/null 2>&1; then
+    GCC_MAJOR_VERSION=13
+  elif /usr/bin/gcc-8 -v > /dev/null 2>&1 && /usr/bin/g++-8 -v > /dev/null 2>&1; then
     GCC_MAJOR_VERSION=8
   elif /usr/bin/gcc-7 -v > /dev/null 2>&1 && /usr/bin/g++-7 -v > /dev/null 2>&1; then
     GCC_MAJOR_VERSION=7
   fi
 
   if [ -z "$GCC_MAJOR_VERSION" ]; then
-    echo "ERROR: found neither gcc/g++-8 nor gcc/g++-7 in /usr/bin"
+    echo "ERROR: didn't find any of gcc/g++-{7,8,13} in /usr/bin"
     exit 2
   fi
 
   # If ccache was on the PATH and CC/CXX have not already been set,
-  # set them to gcc-[7,8] specific ccache helper scripts, enabling ccache.
+  # set them to gcc-<version> specific ccache helper scripts, enabling ccache.
   if which ccache > /dev/null 2>&1 && [ ! "$CC" -a ! "$CXX" ]; then
     export CC="$ROOT/ccache-gcc-$GCC_MAJOR_VERSION/cc"
     export CXX="$ROOT/ccache-gcc-$GCC_MAJOR_VERSION/c++"