summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-04-04 09:54:47 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-04-04 21:55:21 +0100
commit38e3769a72f8538145428294ff21e83c866aae3c (patch)
tree66e6554108a7b22e7c01c7453c41f22b5723766d
parent9b070654f89e5cf42f8764512deddf66ca63ffe9 (diff)
downloadpoky-38e3769a72f8538145428294ff21e83c866aae3c.tar.gz
sanity.bbclass: Update minimum gcc version to 8.0
With a gcc older then 8.0, mesa-native will fail to build with the error: sorry, unimplemented: non-trivial designated initializers not supported According to https://docs.mesa3d.org/install.html?highlight=gcc+version#compile the required minimum compiler version is now GCC 8.0. (From OE-Core rev: aa466053bf8a4b7998a462f0b49372d3a68a28e3) Signed-off-by: Mark Hatle <mark.hatle@amd.com> Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-global/sanity.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass
index 2d1ff7072c..abb52fbe21 100644
--- a/meta/classes-global/sanity.bbclass
+++ b/meta/classes-global/sanity.bbclass
@@ -475,7 +475,7 @@ def check_wsl(d):
475 bb.warn("You are running bitbake under WSLv2, this works properly but you should optimize your VHDX file eventually to avoid running out of storage space") 475 bb.warn("You are running bitbake under WSLv2, this works properly but you should optimize your VHDX file eventually to avoid running out of storage space")
476 return None 476 return None
477 477
478# Require at least gcc version 7.5. 478# Require at least gcc version 8.0
479# 479#
480# This can be fixed on CentOS-7 with devtoolset-6+ 480# This can be fixed on CentOS-7 with devtoolset-6+
481# https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/ 481# https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/
@@ -488,8 +488,8 @@ def check_gcc_version(sanity_data):
488 488
489 build_cc, version = oe.utils.get_host_compiler_version(sanity_data) 489 build_cc, version = oe.utils.get_host_compiler_version(sanity_data)
490 if build_cc.strip() == "gcc": 490 if build_cc.strip() == "gcc":
491 if bb.utils.vercmp_string_op(version, "7.5", "<"): 491 if bb.utils.vercmp_string_op(version, "8.0", "<"):
492 return "Your version of gcc is older than 7.5 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" 492 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"
493 return None 493 return None
494 494
495# Tar version 1.24 and onwards handle overwriting symlinks correctly 495# Tar version 1.24 and onwards handle overwriting symlinks correctly