From 460a53595658fe48c1549e51909eaeb43c6e6012 Mon Sep 17 00:00:00 2001 From: jianlins Date: Thu, 12 Mar 2026 00:01:18 -0600 Subject: [PATCH] workflow: update build script to use gcc-toolset-12 and add linker flags --- .github/workflows/custom_build_rockylinux.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/custom_build_rockylinux.yml b/.github/workflows/custom_build_rockylinux.yml index 5a82b28cee..dd7332d9fc 100644 --- a/.github/workflows/custom_build_rockylinux.yml +++ b/.github/workflows/custom_build_rockylinux.yml @@ -40,8 +40,7 @@ jobs: dnf -y install \ git \ cmake \ - gcc \ - gcc-c++ \ + gcc-toolset-12 \ make \ ninja-build \ tar \ @@ -63,6 +62,7 @@ jobs: shell: bash run: | set -euxo pipefail + source scl_source enable gcc-toolset-12 cat /etc/os-release || true uname -a gcc --version @@ -74,17 +74,20 @@ jobs: shell: bash run: | set -euxo pipefail + source scl_source enable gcc-toolset-12 cmake -S . -B build \ -G Ninja \ -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \ -DGGML_CUDA=ON \ -DCMAKE_CUDA_COMPILER=$(command -v nvcc) \ - -DCMAKE_CUDA_ARCHITECTURES="${{ github.event.inputs.gpu_arch }}" + -DCMAKE_CUDA_ARCHITECTURES="${{ github.event.inputs.gpu_arch }}" \ + -DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined - name: Build shell: bash run: | set -euxo pipefail + source scl_source enable gcc-toolset-12 cmake --build build --config ${BUILD_TYPE} -j"$(nproc)" - name: Prepare release payload