Skip to contentSkip to conversation

Add gcc version and tclibc to build summary

PATCH In review Armin Kuster 3 participants 10 messages Jun 22, 2016 – Jul 20, 2016 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

cover Add gcc version and tclibc to build summary

Since there are two gcc versions supported and any number of tcglibc, it would be nice to know which ones are being used.
Add those to the build summary.

Build summary
TCLIBC = "glibc"
GCC_VERSION = "6.1"

Not sure if the gcc version bit is best practice.

Armin Kuster (2):
build summary: add gcc version being used.
build summary: add TCLIBC being used

 meta/classes/base.bbclass | 2 ++
 meta/conf/bitbake.conf    | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
2.3.5
#1 lore raw

PATCH 1/2 build summary: add gcc version being used.

From: Armin Kuster <[email protected]>

---
 meta/classes/base.bbclass | 2 ++
 meta/conf/bitbake.conf    | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/classes/base.bbclass +2 -0
index 5d8e8d6..b90e9ce 100644
@@ -195,6 +195,8 @@ def buildcfg_vars(d):
         if value is not None:
             yield '%-17s = "%s"' % (var, value)
 
+    yield '%-17s = "%s"' % ("GCC_VERSION", d.getVar("GCCVERSION", True).strip('%'))
+
 def buildcfg_neededvars(d):
     needed_vars = oe.data.typed_value("BUILDCFG_NEEDEDVARS", d)
     pesteruser = []
meta/conf/bitbake.conf +1 -1
index 942b8b1..7132922 100644
@@ -650,7 +650,7 @@ PREFERRED_PROVIDER_virtual/fakeroot-native ?= "pseudo-native"
 
 # Pre-build configuration output
 BUILDCFG_HEADER = "Build Configuration:"
-BUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING TARGET_SYS MACHINE DISTRO DISTRO_VERSION TUNE_FEATURES TARGET_FPU"
+BUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING TARGET_SYS MACHINE DISTRO DISTRO_VERSION TUNE_FEATURES TARGET_FPU GCC_VERSION"
 BUILDCFG_VARS[type] = "list"
 BUILDCFG_NEEDEDVARS = "TARGET_ARCH TARGET_OS"
 BUILDCFG_NEEDEDVARS[type] = "list"
Signature · 1 line
2.3.5
author
#2 lore raw

Re: [PATCH 1/2] build summary: add gcc version being used.

I noticed this patch was being carried in mut builds and no is missing.

does that mean this is rejected?

- armin

Quoted 35 lines · Armin Kuster

From: Armin Kuster <[email protected]>

---
 meta/classes/base.bbclass | 2 ++
 meta/conf/bitbake.conf    | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/classes/base.bbclass +2 -0
index 5d8e8d6..b90e9ce 100644
@@ -195,6 +195,8 @@ def buildcfg_vars(d):
         if value is not None:
             yield '%-17s = "%s"' % (var, value)
 
+    yield '%-17s = "%s"' % ("GCC_VERSION", d.getVar("GCCVERSION", True).strip('%'))
+
 def buildcfg_neededvars(d):
     needed_vars = oe.data.typed_value("BUILDCFG_NEEDEDVARS", d)
     pesteruser = []
meta/conf/bitbake.conf +1 -1
index 942b8b1..7132922 100644
@@ -650,7 +650,7 @@ PREFERRED_PROVIDER_virtual/fakeroot-native ?= "pseudo-native"
 
 # Pre-build configuration output
 BUILDCFG_HEADER = "Build Configuration:"
-BUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING TARGET_SYS MACHINE DISTRO DISTRO_VERSION TUNE_FEATURES TARGET_FPU"
+BUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING TARGET_SYS MACHINE DISTRO DISTRO_VERSION TUNE_FEATURES TARGET_FPU GCC_VERSION"
 BUILDCFG_VARS[type] = "list"
 BUILDCFG_NEEDEDVARS = "TARGET_ARCH TARGET_OS"
 BUILDCFG_NEEDEDVARS[type] = "list"
#3 lore raw

Re: [PATCH 1/2] build summary: add gcc version being used.

Quoted 4 lines · On Wed, 2016-07-20 at 07:41 -0700, akuster808 wrote:

I noticed this patch was being carried in mut builds and no is missing.

does that mean this is rejected?

I've been meaning to reply to this. I can certainly understand why we might want to add things to the summary, equally, we do need to carefully select what we display here. My own personal belief is that we need to rationalise what is there as there are some key things missing which are probably more important than gcc version.

With gcc version, I'm very tempted to try and get OE-Core back to a single gcc version rather than try and put better debug messages in place as we never intended to have multiple versions.

So I guess I'd prefer we try and rationalise things a bit and put more thought into this...

Cheers,

Richard

#4 lore raw

PATCH 2/2 build summary: add TCLIBC being used

In reply to Armin Kuster
---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +1 -1
index 7132922..c575f55 100644
@@ -650,7 +650,7 @@ PREFERRED_PROVIDER_virtual/fakeroot-native ?= "pseudo-native"
 
 # Pre-build configuration output
 BUILDCFG_HEADER = "Build Configuration:"
-BUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING TARGET_SYS MACHINE DISTRO DISTRO_VERSION TUNE_FEATURES TARGET_FPU GCC_VERSION"
+BUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING TARGET_SYS MACHINE DISTRO DISTRO_VERSION TUNE_FEATURES TARGET_FPU GCC_VERSION TCLIBC"
 BUILDCFG_VARS[type] = "list"
 BUILDCFG_NEEDEDVARS = "TARGET_ARCH TARGET_OS"
 BUILDCFG_NEEDEDVARS[type] = "list"
Signature · 1 line
2.3.5
#5 lore raw
In reply to Armin Kuster
Quoted 9 lines · Armin Kuster

Since there are two gcc versions supported and any number of tcglibc, it would be nice to know which ones are being used.
Add those to the build summary.

Build summary
TCLIBC = “glibc"

libc is evident from TARGET_SYS

Quoted 20 lines

GCC_VERSION = "6.1"

Not sure if the gcc version bit is best practice.

Armin Kuster (2):
build summary: add gcc version being used.
build summary: add TCLIBC being used

meta/classes/base.bbclass | 2 ++
meta/conf/bitbake.conf | 2 +-

2 files changed, 3 insertions(+), 1 deletion(-)

--
2.3.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

author
#6 lore raw
Quoted 11 lines · Khem Raj
Quoted 9 lines · Armin Kuster

Since there are two gcc versions supported and any number of tcglibc, it would be nice to know which ones are being used.
Add those to the build summary.

Build summary
TCLIBC = “glibc"

libc is evident from TARGET_SYS

TARGET_SYS="x86_64-oe-linux", this is not the my intent.

The intent is to track which libc is being used. I changed TCLIBC = "musl" local.conf and now build summary show.

TCLIBC = "musl"
GCC_VERSION = "6.1"

Is there a clearer / better way to display this?

- armin

Quoted 22 lines
Quoted 21 lines

GCC_VERSION = "6.1"

Not sure if the gcc version bit is best practice.

Armin Kuster (2):
build summary: add gcc version being used.
build summary: add TCLIBC being used

meta/classes/base.bbclass | 2 ++
meta/conf/bitbake.conf | 2 +-

2 files changed, 3 insertions(+), 1 deletion(-)

--
2.3.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#7 lore raw
Quoted 21 lines · On Jun 22, 2016, at 10:05 AM, akuster808 <[email protected]> wrote:
Quoted 11 lines · Khem Raj
Quoted 9 lines · Armin Kuster

Since there are two gcc versions supported and any number of tcglibc, it would be nice to know which ones are being used.
Add those to the build summary.

Build summary
TCLIBC = “glibc"

libc is evident from TARGET_SYS

TARGET_SYS="x86_64-oe-linux", this is not the my intent.

Quoted 7 lines

The intent is to track which libc is being used. I changed TCLIBC = "musl" local.conf and now build summary show.

TCLIBC = "musl"
GCC_VERSION = "6.1"

Is there a clearer / better way to display this?

if you set TCLIBC = “musl” then TARGET_SYS should have changed to x86_64-oe-linux-musl and TARGET_SYS is displayed with build configuration.

Quoted 24 lines

- armin

Quoted 22 lines
Quoted 21 lines

GCC_VERSION = "6.1"

Not sure if the gcc version bit is best practice.

Armin Kuster (2):
build summary: add gcc version being used.
build summary: add TCLIBC being used

meta/classes/base.bbclass | 2 ++
meta/conf/bitbake.conf | 2 +-

2 files changed, 3 insertions(+), 1 deletion(-)

--
2.3.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

author
#8 lore raw
Quoted 24 lines · Khem Raj
Quoted 24 lines · On Jun 22, 2016, at 10:05 AM, akuster808 <[email protected]> wrote:
Quoted 11 lines · Khem Raj
Quoted 9 lines · Armin Kuster

Since there are two gcc versions supported and any number of tcglibc, it would be nice to know which ones are being used.
Add those to the build summary.

Build summary
TCLIBC = “glibc"

libc is evident from TARGET_SYS

TARGET_SYS="x86_64-oe-linux", this is not the my intent.

The intent is to track which libc is being used. I changed TCLIBC = "musl" local.conf and now build summary show.

Quoted 7 lines
Quoted 4 lines

TCLIBC = "musl"
GCC_VERSION = "6.1"

Is there a clearer / better way to display this?

if you set TCLIBC = “musl” then TARGET_SYS should have changed to x86_64-oe-linux-musl and TARGET_SYS is displayed with build configuration.

Ah, ok. now I get it.

Would TCMODE be more useful?

is the GCC summary part OK?

- armin

Quoted 26 lines
Quoted 25 lines

- armin

Quoted 22 lines
Quoted 21 lines

GCC_VERSION = "6.1"

Not sure if the gcc version bit is best practice.

Armin Kuster (2):
build summary: add gcc version being used.
build summary: add TCLIBC being used

meta/classes/base.bbclass | 2 ++
meta/conf/bitbake.conf | 2 +-

2 files changed, 3 insertions(+), 1 deletion(-)

--
2.3.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

A message that is not in the archive (sent off-list or not yet received): CAMKF1srkQ00SZVk2T3tp-o=ZBO8Xstv6JmZthksCE=geBfw1jw@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CAMKF1spToGmm0bLgqWu51bBKx6-NuN0ru9LAnEq7P3egKC5B2Q@mail.gmail.com

#11 lore raw
Quoted 12 lines · On Jun 25, 2016 8:30 AM, "akuster808" <[email protected]> wrote:
Quoted 8 lines · Khem Raj
Quoted 8 lines · On Jun 22, 2016, at 10:05 AM, akuster808 <[email protected]> wrote:
Quoted 2 lines · Khem Raj
Quoted 2 lines

On Jun 22, 2016, at 8:29 AM, Armin Kuster <[email protected]>

Quoted 16 lines · wrote:
Quoted 16 lines
Quoted 16 lines
Quoted 9 lines
Quoted 7 lines

Since there are two gcc versions supported and any number of tcglibc, it would be nice to know which ones are being used.
Add those to the build summary.

Build summary
TCLIBC = “glibc"

libc is evident from TARGET_SYS

TARGET_SYS="x86_64-oe-linux", this is not the my intent.

The intent is to track which libc is being used. I changed TCLIBC = "musl" local.conf and now build summary show.

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

TCLIBC = "musl"
GCC_VERSION = "6.1"

Is there a clearer / better way to display this?

if you set TCLIBC = “musl” then TARGET_SYS should have changed to

x86_64-oe-linux-musl

Quoted 5 lines
Quoted 1 line

and TARGET_SYS is displayed with build configuration.

Ah, ok. now I get it.

Would TCMODE be more useful?

Probably if external toolchain vendor versions are similar to internal toolchain

Quoted 3 lines

is the GCC summary part OK?

Yes

Quoted 28 lines

- armin

Quoted 26 lines
Quoted 25 lines

- armin

Quoted 22 lines
Quoted 21 lines

GCC_VERSION = "6.1"

Not sure if the gcc version bit is best practice.

Armin Kuster (2):
build summary: add gcc version being used.
build summary: add TCLIBC being used

meta/classes/base.bbclass | 2 ++
meta/conf/bitbake.conf | 2 +-

2 files changed, 3 insertions(+), 1 deletion(-)

--
2.3.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core