sanity: Require gcc 6 or later

New versions of rpm have issues with the libgomp support in gcc 5.x
so raise the minimum to 6 or later. This mainly affects Ubuntu 16.04.

(From OE-Core rev: aca2e5816203b54e0955eaa99fc980d010052d5d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2020-04-29 22:59:55 +01:00
parent a8544811d7
commit f7b8747c52

View File

@@ -527,7 +527,7 @@ def check_wsl(d):
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") 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")
return None return None
# Require at least gcc version 5.0. # Require at least gcc version 6.0.
# #
# This can be fixed on CentOS-7 with devtoolset-6+ # This can be fixed on CentOS-7 with devtoolset-6+
# https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/ # https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/
@@ -541,8 +541,8 @@ def check_gcc_version(sanity_data):
build_cc, version = oe.utils.get_host_compiler_version(sanity_data) build_cc, version = oe.utils.get_host_compiler_version(sanity_data)
if build_cc.strip() == "gcc": if build_cc.strip() == "gcc":
if LooseVersion(version) < LooseVersion("5.0"): if LooseVersion(version) < LooseVersion("6.0"):
return "Your version of gcc is older than 5.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" return "Your version of gcc is older than 6.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"
return None return None
# Tar version 1.24 and onwards handle overwriting symlinks correctly # Tar version 1.24 and onwards handle overwriting symlinks correctly