All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [master][mickledore][PATCH] sanity.bbclass: Update minimum gcc version to 8.0
@ 2023-04-04  3:09 Mark Hatle
  2023-04-04  7:38 ` [OE-core] " Martin Jansa
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Hatle @ 2023-04-04  3:09 UTC (permalink / raw
  To: openembedded-core; +Cc: raj.khem, Qi.Chen

From: Mark Hatle <mark.hatle@amd.com>

With a gcc older then 8.0, meta-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.

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
---
 meta/classes-global/sanity.bbclass | 6 +++---
 1 file 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):
             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
 
-# Require at least gcc version 7.5.
+# 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/
@@ -488,8 +488,8 @@ def check_gcc_version(sanity_data):
     
     build_cc, version = oe.utils.get_host_compiler_version(sanity_data)
     if build_cc.strip() == "gcc":
-        if bb.utils.vercmp_string_op(version, "7.5", "<"):
-            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"
+        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"
     return None
 
 # Tar version 1.24 and onwards handle overwriting symlinks correctly
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [OE-core] [master][mickledore][PATCH] sanity.bbclass: Update minimum gcc version to 8.0
  2023-04-04  3:09 [master][mickledore][PATCH] sanity.bbclass: Update minimum gcc version to 8.0 Mark Hatle
@ 2023-04-04  7:38 ` Martin Jansa
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2023-04-04  7:38 UTC (permalink / raw
  To: Mark Hatle; +Cc: openembedded-core, raj.khem, Qi.Chen

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

On Tue, Apr 4, 2023 at 5:10 AM Mark Hatle <mark.hatle@kernel.crashing.org>
wrote:

> From: Mark Hatle <mark.hatle@amd.com>
>
> With a gcc older then 8.0, meta-native will fail to build with the error:
>

mesa-native

[-- Attachment #2: Type: text/html, Size: 579 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-04  7:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-04  3:09 [master][mickledore][PATCH] sanity.bbclass: Update minimum gcc version to 8.0 Mark Hatle
2023-04-04  7:38 ` [OE-core] " Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.