From 871cc04305fe7483a4c256f38fa63a67cef82183 Mon Sep 17 00:00:00 2001 From: Antonin Godard Date: Mon, 29 Sep 2025 09:31:24 +0200 Subject: [PATCH] sanity: Update minimum gcc version to 10.1 Since commit 19004950ad56 ("sanity: Check if the C++ toolchain supports --std=gnu++20") host GCC must support "--std=gnu++20", which became available in 10.1. This is already reflected in the documentation [1] but not here. Update the sanity check on GCC and raise the minimum version to 10.1. Remove the dead link to www.softwarecollections.org. [1]: https://git.yoctoproject.org/yocto-docs/commit/?id=0e538c102bfcb7184c76c2401e8cb878168c4434 Cc: Yoann Congal Signed-off-by: Antonin Godard Signed-off-by: Mathieu Dubois-Briand --- meta/classes-global/sanity.bbclass | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass index d875a022db..439dc5ad75 100644 --- a/meta/classes-global/sanity.bbclass +++ b/meta/classes-global/sanity.bbclass @@ -505,18 +505,15 @@ def check_userns(): "See https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions for more information.") -# Require at least gcc version 8.0 -# -# This can be fixed on CentOS-7 with devtoolset-6+ -# https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/ +# Require at least gcc version 10.1 # # A less invasive fix is with scripts/install-buildtools (or with user # built buildtools-extended-tarball) # def check_gcc_version(sanity_data): version = oe.utils.get_host_gcc_version(sanity_data) - if bb.utils.vercmp_string_op(version, "8.0", "<"): - return "Your version of gcc is older than 8.0 and will break builds. Please install a newer version of gcc (you could use the project's buildtools-extended-tarball or use scripts/install-buildtools).\n" + if bb.utils.vercmp_string_op(version, "10.1", "<"): + return "Your version of gcc is older than 10.1 and will break builds. Please install a newer version of gcc (you could use the project's buildtools-extended-tarball or use scripts/install-buildtools).\n" return None # Tar version 1.24 and onwards handle overwriting symlinks correctly -- 2.47.3