Hello Ashwani Raina, Kudu Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/23033

to look at the new patch set (#3).

Change subject: Add support for Rocky Linux in build toolchain scripts
......................................................................

Add support for Rocky Linux in build toolchain scripts

This commit enables proper C++17 compilation on Rocky Linux by:
1. Adding OS detection for Rocky Linux in enable_devtoolset.sh
2. Implementing a new custom_run_at_rocky9() function that:
   - Activates gcc-toolset-12 using /opt/rh/gcc-toolset-12/enable
   - Integrates ccache using pre-built wrapper scripts
   - Sets CC/CXX environment variables to appropriate compilers
3. Creating ccache wrapper scripts in build-support/ccache-gcc-toolset-12:
   - cc: Executes ccache with gcc
   - c++: Executes ccache with g++
4. Maintaining backward compatibility with existing RHEL/CentOS 6/7 systems

The changes ensure Kudu can be built on Rocky Linux using gcc-toolset-12
which provides GCC 12.X.X and full C++17 support. The solution follows
the same pattern as existing devtoolset implementations but adapts to
Rocky's gcc-toolset environment.

Finally, note that this has currently only been tested on Rocky Linux 9.
If issues arise with other Rocky Linux versions in the future, they may need to 
be addressed specifically.

Change-Id: Ibb232f6ec4c36369e79b03370b487ae64aac6f3d
---
A build-support/ccache-gcc-toolset-12/c++
A build-support/ccache-gcc-toolset-12/cc
M build-support/enable_devtoolset.sh
3 files changed, 65 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/33/23033/3
--
To view, visit http://gerrit.cloudera.org:8080/23033
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ibb232f6ec4c36369e79b03370b487ae64aac6f3d
Gerrit-Change-Number: 23033
Gerrit-PatchSet: 3
Gerrit-Owner: KeDeng <[email protected]>
Gerrit-Reviewer: Ashwani Raina <[email protected]>
Gerrit-Reviewer: KeDeng <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)

Reply via email to