Skip to content

Commit 7eb94ac

Browse files
committed
[#28540] build: Change minimum GCC version to GCC 12
Summary: All our supported build platforms (Ubuntu 22.04+, Almalinux 8+) support GCC 12. This bumps the minimum GCC version to GCC 12. Jira: DB-18239 Test Plan: Jenkins Reviewers: asrivastava Reviewed By: asrivastava Subscribers: yql, ybase Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D46343
1 parent 3e965c1 commit 7eb94ac

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
# This should be a sub-set of the build flavors in jenkins_jobs.yml.
4343
matrix:
4444
include:
45-
- name: "GCC 11, fastdebug, AlmaLinux 8"
45+
- name: "GCC 12, fastdebug, AlmaLinux 8"
4646
os: ubuntu-24.04
47-
yb_build_args: --gcc11 fastdebug --no-linuxbrew
47+
yb_build_args: --gcc12 fastdebug --no-linuxbrew
4848
docker_image: yugabyteci/yb_build_infra_almalinux8_x86_64:latest
4949

5050
- name: "GCC 12, debug, AlmaLinux 9"

build-support/common-build-env-test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,15 @@ test_set_cmake_build_type_and_compiler_type asan darwin clang fa
161161
test_set_cmake_build_type_and_compiler_type asan darwin gcc N/A N/A 1
162162
test_set_cmake_build_type_and_compiler_type asan linux-gnu clang14 fastdebug clang14 0
163163
test_set_cmake_build_type_and_compiler_type asan linux-gnu gcc N/A N/A 1
164-
test_set_cmake_build_type_and_compiler_type asan linux-gnu gcc11 N/A gcc11 1
164+
test_set_cmake_build_type_and_compiler_type asan linux-gnu gcc12 N/A gcc12 1
165165
test_set_cmake_build_type_and_compiler_type tsan linux-gnu clang14 fastdebug clang14 0
166166
test_set_cmake_build_type_and_compiler_type tsan linux-gnu gcc N/A N/A 1
167-
test_set_cmake_build_type_and_compiler_type tsan linux-gnu gcc11 N/A gcc11 1
167+
test_set_cmake_build_type_and_compiler_type tsan linux-gnu gcc12 N/A gcc12 1
168168
test_set_cmake_build_type_and_compiler_type debug darwin auto debug clang 0
169169
test_set_cmake_build_type_and_compiler_type debug darwin clang debug clang 0
170170
test_set_cmake_build_type_and_compiler_type debug linux-gnu clang debug clang 0
171171
test_set_cmake_build_type_and_compiler_type debug linux-gnu gcc debug gcc 0
172-
test_set_cmake_build_type_and_compiler_type debug linux-gnu gcc11 debug gcc11 0
172+
test_set_cmake_build_type_and_compiler_type debug linux-gnu gcc12 debug gcc12 0
173173
test_set_cmake_build_type_and_compiler_type FaStDeBuG darwin auto fastdebug clang 0
174174
test_set_cmake_build_type_and_compiler_type FaStDeBuG darwin clang fastdebug clang 0
175175
test_set_cmake_build_type_and_compiler_type FaStDeBuG linux-gnu clang fastdebug clang 0
@@ -178,7 +178,7 @@ test_set_cmake_build_type_and_compiler_type release darwin auto re
178178
test_set_cmake_build_type_and_compiler_type release darwin clang release clang 0
179179
test_set_cmake_build_type_and_compiler_type release linux-gnu clang release clang 0
180180
test_set_cmake_build_type_and_compiler_type release linux-gnu gcc release gcc 0
181-
test_set_cmake_build_type_and_compiler_type release linux-gnu gcc11 release gcc11 0
181+
test_set_cmake_build_type_and_compiler_type release linux-gnu gcc12 release gcc12 0
182182
test_set_cmake_build_type_and_compiler_type debug linux-gnu auto debug clang19 0
183183
test_set_cmake_build_type_and_compiler_type FaStDeBuG linux-gnu auto fastdebug clang19 0
184184
test_set_cmake_build_type_and_compiler_type release linux-gnu auto release clang19 0

build-support/common-build-env.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ make_regex_from_list VALID_CMAKE_BUILD_TYPES "${VALID_CMAKE_BUILD_TYPES[@]}"
225225

226226
readonly -a VALID_COMPILER_TYPES=(
227227
gcc
228-
gcc11
229228
gcc12
230229
gcc13
231230
clang

cmake_modules/YugabyteCMakeUnitTest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function(test_parse_build_root_basename)
5656
check_parse_build_root_basename(
5757
"debug-clang-dynamic" "debug" "clang" "dynamic" OFF)
5858
check_parse_build_root_basename(
59-
"asan-gcc11-dynamic-ninja" "asan" "gcc11" "dynamic" OFF)
59+
"asan-gcc12-dynamic-ninja" "asan" "gcc12" "dynamic" OFF)
6060
check_parse_build_root_basename(
6161
"debug-clang-dynamic" "debug" "clang" "dynamic" OFF)
6262
check_parse_build_root_basename(

jenkins_jobs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
release_artifact: false
1313

1414
- os: alma8
15-
compiler: gcc11
15+
compiler: gcc12
1616
build_type: fastdebug
1717
test_opts: YB_TEST_YB_CONTROLLER=0
1818
release_artifact: false

0 commit comments

Comments
 (0)