Skip to content

Commit 1fbeee9

Browse files
jbachorikclaude
andcommitted
Install GCC for sanitizer library support in CI
CI was failing to generate asan/tsan configurations because sanitizer runtime libraries (libasan, libtsan) were not available. While clang++ is the primary compiler, the build system falls back to gcc's sanitizer libraries via PlatformUtils.locateLibrary(). Changes: - Install gcc/g++ in both glibc test jobs (amd64, aarch64) - Remove g++ removal step in aarch64 job - Add comments explaining sanitizer library dependency Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 8485ec7 commit 1fbeee9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/test_workflow.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
sudo apt-get install -y curl zip unzip libgtest-dev libgmock-dev binutils
6767
# Install debug symbols for system libraries
6868
sudo apt-get install -y libc6-dbg
69+
# Install GCC with sanitizer support (provides libasan, libtsan for asan/tsan builds)
70+
# Even though clang is the primary compiler, the build falls back to gcc's sanitizer libs
71+
sudo apt-get install -y gcc g++
6972
if [[ ${{ matrix.java_version }} =~ "-zing" ]]; then
7073
sudo apt-get install -y g++-9 gcc-9
7174
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9
@@ -297,11 +300,12 @@ jobs:
297300
if: steps.set_enabled.outputs.enabled == 'true'
298301
run: |
299302
sudo apt update -y
300-
sudo apt remove -y g++
301-
sudo apt autoremove -y
303+
# Don't remove g++ - keep gcc for sanitizer libraries (libasan, libtsan)
302304
sudo apt install -y curl zip unzip clang make build-essential binutils
303305
# Install debug symbols for system libraries
304306
sudo apt install -y libc6-dbg
307+
# Ensure gcc/g++ are installed for sanitizer support
308+
sudo apt install -y gcc g++
305309
if [[ ${{ matrix.java_version }} =~ "-zing" ]]; then
306310
sudo apt -y install g++-9 gcc-9
307311
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9

0 commit comments

Comments
 (0)