diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2025-09-29 09:31:24 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-02 11:28:02 +0100 |
commit | 6c52f6811180ca3a35d257d55c58df5798e5627b (patch) | |
tree | 696c18d5b44608e4b0cb677631016996f39f4409 | |
parent | 57343f2ffef359a45809d3656e93dec8581448bf (diff) | |
download | poky-6c52f6811180ca3a35d257d55c58df5798e5627b.tar.gz |
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 <yoann.congal@smile.fr>
(From OE-Core rev: 871cc04305fe7483a4c256f38fa63a67cef82183)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-global/sanity.bbclass | 9 |
1 files 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(): | |||
505 | "See https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions for more information.") | 505 | "See https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions for more information.") |
506 | 506 | ||
507 | 507 | ||
508 | # Require at least gcc version 8.0 | 508 | # Require at least gcc version 10.1 |
509 | # | ||
510 | # This can be fixed on CentOS-7 with devtoolset-6+ | ||
511 | # https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/ | ||
512 | # | 509 | # |
513 | # A less invasive fix is with scripts/install-buildtools (or with user | 510 | # A less invasive fix is with scripts/install-buildtools (or with user |
514 | # built buildtools-extended-tarball) | 511 | # built buildtools-extended-tarball) |
515 | # | 512 | # |
516 | def check_gcc_version(sanity_data): | 513 | def check_gcc_version(sanity_data): |
517 | version = oe.utils.get_host_gcc_version(sanity_data) | 514 | version = oe.utils.get_host_gcc_version(sanity_data) |
518 | if bb.utils.vercmp_string_op(version, "8.0", "<"): | 515 | if bb.utils.vercmp_string_op(version, "10.1", "<"): |
519 | 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" | 516 | 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" |
520 | return None | 517 | return None |
521 | 518 | ||
522 | # Tar version 1.24 and onwards handle overwriting symlinks correctly | 519 | # Tar version 1.24 and onwards handle overwriting symlinks correctly |