mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 00:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
57343f2ffe
commit
6c52f68111
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user