Skip to content

install-deps: warn about gcc older than 13 for el9 and later#66122

Merged
cbodley merged 2 commits intoceph:mainfrom
cbodley:wip-install-deps-gcc13
Nov 5, 2025
Merged

install-deps: warn about gcc older than 13 for el9 and later#66122
cbodley merged 2 commits intoceph:mainfrom
cbodley:wip-install-deps-gcc13

Conversation

@cbodley
Copy link
Contributor

@cbodley cbodley commented Nov 4, 2025

function ensure_decent_gcc_on_rh() is supposed to log a warning when it finds the default gcc version is older than the gcc toolset version installed by ceph.spec.in

Your GCC is too old. Please run following command to add DTS to your environment:

however, this function is only called if the dts_ver variable is initialized, so set it to 13 for centos/rocky 9 and later to match ceph.spec.in

Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

function ensure_decent_gcc_on_rh() is supposed to log a warning when it
finds the default gcc version is older than the gcc toolset version
installed by ceph.spec.in

> Your GCC is too old. Please run following command to add DTS to your environment:

however, this function is only called if the dts_ver variable is
initialized, so set it to 13 for centos/rocky 9 and later to match
ceph.spec.in

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Nov 4, 2025

tested successfully in a centos 9 vm:

[cbodley@localhost ceph]$ ./install-deps.sh
...
Complete!
Your GCC is too old. Please run following command to add DTS to your environment:

scl enable gcc-toolset-13 bash

Or add the following line to the end of ~/.bashrc and run "source ~/.bashrc" to add it permanently:

source scl_source enable gcc-toolset-13
[cbodley@localhost ceph]$ gcc --version
gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[cbodley@localhost ceph]$ scl enable gcc-toolset-13 bash
[cbodley@localhost ceph]$ gcc --version
gcc (GCC) 13.3.1 20240611 (Red Hat 13.3.1-2)
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@cbodley
Copy link
Contributor Author

cbodley commented Nov 4, 2025

https://jenkins.ceph.com/job/ceph-pull-requests/169509/

The following tests FAILED:
166 - readable.sh (Timeout)

@cbodley
Copy link
Contributor Author

cbodley commented Nov 4, 2025

jenkins test make check

@cbodley cbodley merged commit 10cb3fe into ceph:main Nov 5, 2025
13 of 14 checks passed
@cbodley cbodley deleted the wip-install-deps-gcc13 branch November 5, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants