Skip to contentSkip to conversation

sanity: Require gcc 6 or later

PATCH In review Richard Purdie 5 participants 6 messages Apr 29, 2020 – Apr 30, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes/sanity.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/classes/sanity.bbclass +3 -3
index 9e871017389..292c5591dd3 100644
@@ -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")
     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+
 # 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)
     if build_cc.strip() == "gcc":
-        if LooseVersion(version) < LooseVersion("5.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"
+        if LooseVersion(version) < LooseVersion("6.0"):
+            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
 
 # Tar version 1.24 and onwards handle overwriting symlinks correctly
Signature · 1 line
2.25.1
#1 lore raw
Quoted 2 lines · Richard Purdie

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.

So, this is for master, rigth? No plans to backport it to dunfell (hence, no rpm backport either), correct? Trying to make sure Yocto LTS will still work on Ubuntu 16.04 LTS...

Signature · 1 line
Denys
Quoted 34 lines
---
 meta/classes/sanity.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/classes/sanity.bbclass +3 -3
index 9e871017389..292c5591dd3 100644
@@ -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")
     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+
 # 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)
     if build_cc.strip() == "gcc":
-        if LooseVersion(version) < LooseVersion("5.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"
+        if LooseVersion(version) < LooseVersion("6.0"):
+            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
 
 # Tar version 1.24 and onwards handle overwriting symlinks correctly
Signature · 1 line
2.25.1
#2 lore raw
Quoted 8 lines · Denys Dmytriyenko
Quoted 2 lines · Richard Purdie

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.

So, this is for master, rigth? No plans to backport it to dunfell (hence, no rpm backport either), correct? Trying to make sure Yocto LTS will still work on Ubuntu 16.04 LTS...

I think yes, its not coming to dunfell, ubuntu 16.04 is still in maintenance and will be for next year too
see https://ubuntu.com/about/release-cycle

Quoted 41 lines

--
Denys

Quoted 34 lines
---
 meta/classes/sanity.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/classes/sanity.bbclass +3 -4
index 9e871017389..292c5591dd3 100644
@@ -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")
     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+
 # 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)
     if build_cc.strip() == "gcc":
-        if LooseVersion(version) < LooseVersion("5.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"
+        if LooseVersion(version) < LooseVersion("6.0"):
+            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
 
 # Tar version 1.24 and onwards handle overwriting symlinks correctly
--

2.25.1

#3 lore raw
In reply to Denys Dmytriyenko
Quoted 3 lines · Denys Dmytriyenko

So, this is for master, rigth? No plans to backport it to dunfell (hence, no rpm backport either), correct? Trying to make sure Yocto LTS will still work on Ubuntu 16.04 LTS...

I have the same goal, so no plans to backport to dunfell!

Steve

Quoted 36 lines
Quoted 34 lines
---
 meta/classes/sanity.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/classes/sanity.bbclass +3 -4
index 9e871017389..292c5591dd3 100644
@@ -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")
     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+
 # 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)
     if build_cc.strip() == "gcc":
-        if LooseVersion(version) < LooseVersion("5.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"
+        if LooseVersion(version) < LooseVersion("6.0"):
+            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
 
 # Tar version 1.24 and onwards handle overwriting symlinks correctly
--

2.25.1

#4 lore raw

Ubuntu 16.04 will continue to be supported even with this change, you just need to set up builtools-extended-tarball to provide a recent compiler, which is a couple of easy commands suggested by bitbake.

Alex

Quoted 57 lines · Steve Sakoman
Quoted 1 line · Denys Dmytriyenko

So, this is for master, rigth? No plans to backport it to dunfell

(hence, no

Quoted 1 line

rpm backport either), correct? Trying to make sure Yocto LTS will still

work

Quoted 1 line

on Ubuntu 16.04 LTS...

I have the same goal, so no plans to backport to dunfell!

Steve

Quoted 11 lines

meta/classes/sanity.bbclass def check_wsl(d): · line 527

Quoted 11 lines
---
 meta/classes/sanity.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/classes/sanity.bbclass +0 -0
index 9e871017389..292c5591dd3 100644
@@ -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")

Quoted 10 lines

meta/classes/sanity.bbclass def check_gcc_version(sanity_data): · line 542

Quoted 10 lines
meta/classes/sanity.bbclass +1 -1
     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+
 # 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)

Quoted 3 lines

meta/classes/sanity.bbclass def check_gcc_version(sanity_data):

Quoted 3 lines
meta/classes/sanity.bbclass +0 -2
     if build_cc.strip() == "gcc":
-        if LooseVersion(version) < LooseVersion("5.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"

Quoted 2 lines

meta/classes/sanity.bbclass def check_gcc_version(sanity_data): · line 545

Quoted 2 lines
meta/classes/sanity.bbclass +2 -0
+        if LooseVersion(version) < LooseVersion("6.0"):
+            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"

Quoted 10 lines
Quoted 8 lines
meta/classes/sanity.bbclass +0 -1
     return None
 
 # Tar version 1.24 and onwards handle overwriting symlinks correctly
--

2.25.1

#5 lore raw
Quoted 2 lines · Alexander Kanavin

Ubuntu 16.04 will continue to be supported even with this change, you just need to set up builtools-extended-tarball to provide a recent compiler, which is a couple of easy commands suggested by bitbake.

Thats understood, and as we do not use buildtools-extended-tarball on every disto this is not default. Secondly, for a release it would differ from what we have released with.

Quoted 70 lines

Alex

On Thu 30. Apr 2020 at 2.04, Steve Sakoman <[email protected] <mailto:[email protected]>> wrote:

On Wed, Apr 29, 2020 at 1:41 PM Denys Dmytriyenko <[email protected] <mailto:[email protected]>> wrote:

> So, this is for master, rigth? No plans to backport it to dunfell
(hence, no
> rpm backport either), correct? Trying to make sure Yocto LTS will
still work
> on Ubuntu 16.04 LTS...

I have the same goal, so no plans to backport to dunfell!

Steve

> > Signed-off-by: Richard Purdie
<[email protected] <mailto:[email protected]>>
> > ---
> >  meta/classes/sanity.bbclass | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/meta/classes/sanity.bbclass
b/meta/classes/sanity.bbclass
> > index 9e871017389..292c5591dd3 100644
> > --- a/meta/classes/sanity.bbclass
> > +++ b/meta/classes/sanity.bbclass
> > @@ -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")
> >      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+
> >  # 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)
> >      if build_cc.strip() == "gcc":
> > -        if LooseVersion(version) < LooseVersion("5.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"
> > +        if LooseVersion(version) < LooseVersion("6.0"):
> > +            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
> >
> >  # Tar version 1.24 and onwards handle overwriting symlinks
correctly
> > --
> > 2.25.1
> >
>
> >
>
>