Skip to contentSkip to conversation

gcc-cross{, -canadian}: remove --with-linker-hash-style

PATCH Superseded Christopher Larson 9 participants 19 messages May 2, 2016 – May 9, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc-cross{, -canadian}: remove --with-linker-hash-style

From: Christopher Larson <[email protected]>

We explicitly set the hash style to gnu in our LDFLAGS. Setting the default to this in the toolchain, while convenient, actually hides bugs, as a failure to obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how we poison the sysroot -- rather than relying on the default, notice right away if somoeone isn't obeying the needed flags.

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure, which is what's often seen with external toolchains. This brings us all on the same page, and makes sure a failure to obey LDFLAGS is seen early.

---
 meta/recipes-devtools/gcc/gcc-4.9.inc | 1 -
 meta/recipes-devtools/gcc/gcc-5.3.inc | 1 -
 2 files changed, 2 deletions(-)
meta/recipes-devtools/gcc/gcc-4.9.inc +0 -1
index 7e03f31..c187918 100644
@@ -111,7 +111,6 @@ EXTRA_OECONF_BASE = "\
     --disable-bootstrap \
     --disable-libmudflap \
     --with-system-zlib \
-    --with-linker-hash-style=${LINKER_HASH_STYLE} \
     --enable-linker-build-id \
     --with-ppl=no \
     --with-cloog=no \
meta/recipes-devtools/gcc/gcc-5.3.inc +0 -1
index 9808be1..f2eda18 100644
@@ -112,7 +112,6 @@ EXTRA_OECONF_BASE = "\
     --disable-bootstrap \
     --disable-libmudflap \
     --with-system-zlib \
-    --with-linker-hash-style=${LINKER_HASH_STYLE} \
     --enable-linker-build-id \
     --with-ppl=no \
     --with-cloog=no \
Signature · 1 line
2.8.0
#1 lore raw
Quoted 11 lines · Christopher Larson

From: Christopher Larson <[email protected]>

We explicitly set the hash style to gnu in our LDFLAGS. Setting the default to this in the toolchain, while convenient, actually hides bugs, as a failure to obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how we poison the sysroot -- rather than relying on the default, notice right away if somoeone isn't obeying the needed flags.

Quoted 4 lines

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure, which is what's often seen with external toolchains. This brings us all on the same page, and makes sure a failure to obey LDFLAGS is seen early.

Default or gnu linkers is to use sysv for legacy reasons and by passing this option to configuring the toolchain we want to make sure that components are using sane defaults even if they have not configured these options.

if you do not pass the right linker flags from compiler driver and also ignore the LDFLAGS then you now have a safe pass for the app to build without GNU hash while I understand it will spread the external toolchain’s pains into internal toolchain I fail to understand the benefit of doing this otherwise.

Quoted 38 lines

---
meta/recipes-devtools/gcc/gcc-4.9.inc | 1 -
meta/recipes-devtools/gcc/gcc-5.3.inc | 1 -

2 files changed, 2 deletions(-)
meta/recipes-devtools/gcc/gcc-4.9.inc +0 -1
index 7e03f31..c187918 100644
@@ -111,7 +111,6 @@ EXTRA_OECONF_BASE = "\
    --disable-bootstrap \
    --disable-libmudflap \
    --with-system-zlib \
-    --with-linker-hash-style=${LINKER_HASH_STYLE} \
    --enable-linker-build-id \
    --with-ppl=no \
    --with-cloog=no \
meta/recipes-devtools/gcc/gcc-5.3.inc +0 -2
index 9808be1..f2eda18 100644
@@ -112,7 +112,6 @@ EXTRA_OECONF_BASE = "\
    --disable-bootstrap \
    --disable-libmudflap \
    --with-system-zlib \
-    --with-linker-hash-style=${LINKER_HASH_STYLE} \
    --enable-linker-build-id \
    --with-ppl=no \
    --with-cloog=no \
--

2.8.0

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

#2 lore raw
Quoted 24 lines · Khem Raj
Quoted 2 lines

On May 2, 2016, at 1:09 PM, Christopher Larson <[email protected]>

Quoted 4 lines · wrote:

From: Christopher Larson <[email protected]>

We explicitly set the hash style to gnu in our LDFLAGS. Setting the

default to

Quoted 1 line

this in the toolchain, while convenient, actually hides bugs, as a

failure to

Quoted 1 line

obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how

we

Quoted 1 line

poison the sysroot -- rather than relying on the default, notice right

away if

Quoted 3 lines

somoeone isn't obeying the needed flags.

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA

failure,

Quoted 1 line

which is what's often seen with external toolchains. This brings us all

on the

Quoted 2 lines

same page, and makes sure a failure to obey LDFLAGS is seen early.

Quoted 6 lines

Default or gnu linkers is to use sysv for legacy reasons and by passing this option
to configuring the toolchain we want to make sure that components are using sane defaults
even if they have not configured these options.

But that's not what we want. We want to know when we're not passing arguments we need to be passing. For example, the sysroot is poisoned today, so we *know* when the user is trying to run it without --sysroot=.

if you do not pass the right linker flags from compiler driver and also

Quoted 6 lines

ignore
the LDFLAGS then you now have a safe pass for the app to build without GNU hash
while I understand it will spread the external toolchain’s pains into internal toolchain
I fail to understand the benefit of doing this otherwise.

Silently ignoring the fact that recipes ignore LDFLAGS is not good default behavior, and this is precisely what oe-core is doing today. If you know of a better way to detect that in another QA check, I'm certainly open to hearing it.

Signature · 5 lines
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#3 lore raw
Quoted 23 lines · Christopher Larson
Quoted 10 lines · On Mon, May 2, 2016 at 8:34 PM, Khem Raj <[email protected]…

On May 2, 2016, at 1:09 PM, Christopher Larson <[email protected] <mailto:[email protected]>> wrote:

From: Christopher Larson <[email protected] <mailto:[email protected]>>

We explicitly set the hash style to gnu in our LDFLAGS. Setting the default to this in the toolchain, while convenient, actually hides bugs, as a failure to obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how we poison the sysroot -- rather than relying on the default, notice right away if somoeone isn't obeying the needed flags.

Quoted 4 lines

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure, which is what's often seen with external toolchains. This brings us all on the same page, and makes sure a failure to obey LDFLAGS is seen early.

Quoted 5 lines

Default or gnu linkers is to use sysv for legacy reasons and by passing this option to configuring the toolchain we want to make sure that components are using sane defaults even if they have not configured these options.

But that's not what we want. We want to know when we're not passing arguments we need to be passing. For example, the sysroot is poisoned today, so we *know* when the user is trying to run it without --sysroot=.

application makefiles can ignore environment e.g. CC, CXX, LD etc and get into same situations. as an application writer I may not be interested in using cross compilation specific nuances. We may not be able to solve it completely

Quoted 7 lines

if you do not pass the right linker flags from compiler driver and also ignore the LDFLAGS then you now have a safe pass for the app to build without GNU hash while I understand it will spread the external toolchain’s pains into internal toolchain I fail to understand the benefit of doing this otherwise.

Silently ignoring the fact that recipes ignore LDFLAGS is not good default behavior, and this is precisely what oe-core is doing today. If you know of a better way to detect that in another QA check, I'm certainly open to hearing it.

linker would emit .hash for sysv and .gnu.hash section for gnu hash in final ELF, may be adding a QA check for that would be enough ?

Quoted 6 lines

--
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

#4 lore raw
Quoted 43 lines · Khem Raj

On May 2, 2016, at 1:37 PM, Christopher Larson <[email protected]> wrote:

Quoted 24 lines · Khem Raj
Quoted 2 lines

On May 2, 2016, at 1:09 PM, Christopher Larson <[email protected]>

Quoted 4 lines · wrote:

From: Christopher Larson <[email protected]>

We explicitly set the hash style to gnu in our LDFLAGS. Setting the

default to

Quoted 1 line

this in the toolchain, while convenient, actually hides bugs, as a

failure to

Quoted 1 line

obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to

how we

Quoted 1 line

poison the sysroot -- rather than relying on the default, notice right

away if

Quoted 3 lines

somoeone isn't obeying the needed flags.

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA

failure,

Quoted 1 line

which is what's often seen with external toolchains. This brings us all

on the

Quoted 2 lines

same page, and makes sure a failure to obey LDFLAGS is seen early.

Quoted 6 lines

Default or gnu linkers is to use sysv for legacy reasons and by passing this option
to configuring the toolchain we want to make sure that components are using sane defaults
even if they have not configured these options.

But that's not what we want. We want to know when we're not passing arguments we need to be passing. For example, the sysroot is poisoned today, so we *know* when the user is trying to run it without --sysroot=.

Quoted 6 lines

application makefiles can ignore environment e.g. CC, CXX, LD etc and get into same situations.
as an application writer I may not be interested in using cross compilation specific nuances. We may not
be able to solve it completely

I'm not sure what you mean by that. This is only for gcc-cross and gcc-cross-canadian. Anyone using those needs to deal with cross issues regardless.

if you do not pass the right linker flags from compiler driver and also

Quoted 8 lines
Quoted 6 lines

ignore
the LDFLAGS then you now have a safe pass for the app to build without GNU hash
while I understand it will spread the external toolchain’s pains into internal toolchain
I fail to understand the benefit of doing this otherwise.

Quoted 9 lines

Silently ignoring the fact that recipes ignore LDFLAGS is not good default behavior, and this is precisely what oe-core is doing today. If you know of a better way to detect that in another QA check, I'm certainly open to hearing it.

linker would emit .hash for sysv and .gnu.hash section for gnu hash in final ELF, may be adding a QA check for that would be enough ?

I don't understand what you mean by this. I don't see how you'd be able to distinguish between a gnu.hash used because of the toolchain defaults and a gnu.hash used because it obeyed LDFLAGS, which is what you'd need to be able to detect the lack of the latter without this patch.

Signature · 5 lines
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#5 lore raw
Quoted 33 lines · Christopher Larson
Quoted 26 lines · On Mon, May 2, 2016 at 9:37 PM, Khem Raj <[email protected]…

On May 2, 2016, at 1:37 PM, Christopher Larson <[email protected] <mailto:[email protected]>> wrote:

Quoted 10 lines · On Mon, May 2, 2016 at 8:34 PM, Khem Raj <[email protected]…

On May 2, 2016, at 1:09 PM, Christopher Larson <[email protected] <mailto:[email protected]>> wrote:

From: Christopher Larson <[email protected] <mailto:[email protected]>>

We explicitly set the hash style to gnu in our LDFLAGS. Setting the default to this in the toolchain, while convenient, actually hides bugs, as a failure to obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how we poison the sysroot -- rather than relying on the default, notice right away if somoeone isn't obeying the needed flags.

Quoted 4 lines

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure, which is what's often seen with external toolchains. This brings us all on the same page, and makes sure a failure to obey LDFLAGS is seen early.

Default or gnu linkers is to use sysv for legacy reasons and by passing this option to configuring the toolchain we want to make sure that components are using sane defaults even if they have not configured these options.

Quoted 8 lines
Quoted 1 line

But that's not what we want. We want to know when we're not passing arguments we need to be passing. For example, the sysroot is poisoned today, so we *know* when the user is trying to run it without --sysroot=.

application makefiles can ignore environment e.g. CC, CXX, LD etc and get into same situations. as an application writer I may not be interested in using cross compilation specific nuances. We may not be able to solve it completely

I'm not sure what you mean by that. This is only for gcc-cross and gcc-cross-canadian. Anyone using those needs to deal with cross issues regardless.

I was taking a application developers point of view. not a system integrators or OE build masters. applications are supposed to work on all kind of env and cross build env is one of them which large app developer community may not use as primary environment for development.

Quoted 11 lines
Quoted 7 lines

if you do not pass the right linker flags from compiler driver and also ignore the LDFLAGS then you now have a safe pass for the app to build without GNU hash while I understand it will spread the external toolchain’s pains into internal toolchain I fail to understand the benefit of doing this otherwise.

Silently ignoring the fact that recipes ignore LDFLAGS is not good default behavior, and this is precisely what oe-core is doing today. If you know of a better way to detect that in another QA check, I'm certainly open to hearing it.

linker would emit .hash for sysv and .gnu.hash section for gnu hash in final ELF, may be adding a QA check for that would be enough ?

I don't understand what you mean by this. I don't see how you'd be able to distinguish between a gnu.hash used because of the toolchain defaults and a gnu.hash used because it obeyed LDFLAGS, which is what you'd need to be able to detect the lack of the latter without this patch.

I thought you were looking for ways to detect if hash styles are mixed or not conforming to default for a given architecture. If the end binary is getting build as expected and we are able to detect if it does not, then it won’t matter if the setting came from LDFLAGS or CFLAFS or implicit defaults.

Quoted 6 lines

--
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

#6 lore raw
Quoted 95 lines · Khem Raj

On May 2, 2016, at 7:53 PM, Christopher Larson <[email protected]> wrote:

Quoted 43 lines · Khem Raj

On May 2, 2016, at 1:37 PM, Christopher Larson <[email protected]> wrote:

Quoted 24 lines · Khem Raj
Quoted 2 lines

On May 2, 2016, at 1:09 PM, Christopher Larson <[email protected]>

Quoted 4 lines · wrote:

From: Christopher Larson <[email protected]>

We explicitly set the hash style to gnu in our LDFLAGS. Setting the

default to

Quoted 1 line

this in the toolchain, while convenient, actually hides bugs, as a

failure to

Quoted 1 line

obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to

how we

Quoted 1 line

poison the sysroot -- rather than relying on the default, notice right

away if

Quoted 3 lines

somoeone isn't obeying the needed flags.

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA

failure,

Quoted 1 line

which is what's often seen with external toolchains. This brings us

all on the

Quoted 2 lines

same page, and makes sure a failure to obey LDFLAGS is seen early.

Quoted 6 lines

Default or gnu linkers is to use sysv for legacy reasons and by passing this option
to configuring the toolchain we want to make sure that components are using sane defaults
even if they have not configured these options.

But that's not what we want. We want to know when we're not passing arguments we need to be passing. For example, the sysroot is poisoned today, so we *know* when the user is trying to run it without --sysroot=.

Quoted 6 lines

application makefiles can ignore environment e.g. CC, CXX, LD etc and get into same situations.
as an application writer I may not be interested in using cross compilation specific nuances. We may not
be able to solve it completely

I'm not sure what you mean by that. This is only for gcc-cross and gcc-cross-canadian. Anyone using those needs to deal with cross issues regardless.

I was taking a application developers point of view. not a system integrators or OE build masters. applications are supposed to work on all kind of env
and cross build env is one of them which large app developer community may not use as primary environment for development.

if you do not pass the right linker flags from compiler driver and also

Quoted 8 lines
Quoted 6 lines

ignore
the LDFLAGS then you now have a safe pass for the app to build without GNU hash
while I understand it will spread the external toolchain’s pains into internal toolchain
I fail to understand the benefit of doing this otherwise.

Quoted 9 lines

Silently ignoring the fact that recipes ignore LDFLAGS is not good default behavior, and this is precisely what oe-core is doing today. If you know of a better way to detect that in another QA check, I'm certainly open to hearing it.

linker would emit .hash for sysv and .gnu.hash section for gnu hash in final ELF, may be adding a QA check for that would be enough ?

I don't understand what you mean by this. I don't see how you'd be able to distinguish between a gnu.hash used because of the toolchain defaults and a gnu.hash used because it obeyed LDFLAGS, which is what you'd need to be able to detect the lack of the latter without this patch.

Quoted 6 lines

I thought you were looking for ways to detect if hash styles are mixed or not conforming to default for a given architecture. If the end binary is getting build as expected
and we are able to detect if it does not, then it won’t matter if the setting came from LDFLAGS or CFLAFS or implicit defaults.

No, that's exactly the point. Recipes have clear brokenness, not obeying LDFLAGS, which is a clear correctness bug, and there's no easy way to detect that if the toolchain sets the gnu hash style by default.

The only ones spotting these common, clear bugs are those using external toolchains. The internal toolchain builds are ignoring these bugs by letting the toolchain set the default regardless of whether it obeys LDFLAGS or not.

Signature · 5 lines
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#7 lore raw
In reply to Khem Raj
Quoted 23 lines · Khem Raj
Quoted 23 lines · Christopher Larson
Quoted 14 lines · On Mon, May 2, 2016 at 8:34 PM, Khem Raj <[email protected]…

On May 2, 2016, at 1:09 PM, Christopher Larson <[email protected] <mailto:[email protected]>> wrote:

From: Christopher Larson <[email protected] <mailto:[email protected]>>

We explicitly set the hash style to gnu in our LDFLAGS. Setting the default to this in the toolchain, while convenient, actually hides bugs, as a failure to obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how we poison the sysroot -- rather than relying on the default, notice right away if somoeone isn't obeying the needed flags.

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure, which is what's often seen with external toolchains. This brings us all on the same page, and makes sure a failure to obey LDFLAGS is seen early.

Quoted 8 lines
Quoted 5 lines

Default or gnu linkers is to use sysv for legacy reasons and by passing this option to configuring the toolchain we want to make sure that components are using sane defaults even if they have not configured these options.

But that's not what we want. We want to know when we're not passing arguments we need to be passing. For example, the sysroot is poisoned today, so we *know* when the user is trying to run it without --sysroot=.

application makefiles can ignore environment e.g. CC, CXX, LD etc and get into same situations. as an application writer I may not be interested in using cross compilation specific nuances. We may not

]> be able to solve it completely

Quoted 10 lines
Quoted 8 lines

if you do not pass the right linker flags from compiler driver and also ignore the LDFLAGS then you now have a safe pass for the app to build without GNU hash while I understand it will spread the external toolchain’s pains into internal toolchain I fail to understand the benefit of doing this otherwise.

Silently ignoring the fact that recipes ignore LDFLAGS is not good default behavior, and this is precisely what oe-core is doing today. If you know of a better way to detect that in another QA check, I'm certainly open to hearing it.

linker would emit .hash for sysv and .gnu.hash section for gnu hash in final ELF, may be adding a QA check for that would be enough ?

But that doesn't detect if it was set to gnu thanks to respecting LDFLAGS or thanks to gnu being the default in oe-core built toolchain (from --with-linker-hash-style) - which means that builds with external toolchain are still affected if they don't use --with-linker-hash-style=gnu.

After fixing couple recipes used by our internal builds (which are using external toolchain) and wondering why nobody else reported those I agree with Chris, that to detect this early (with current QA check which already reports when the used hash style doesn't match with LDFLAGS).

It would be nice to really poison the value if possible --with-linker-hash-style=YOU_NEED_TO_RESPECT_LDFLAGS
to cause linker call to fail when someone is using oe-core toolchain outside OE itself (so might ignore LDFLAGS, but without running the QA check).

Regards,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#8 lore raw
Quoted 5 lines · Martin Jansa

It would be nice to really poison the value if possible --with-linker-hash-style=YOU_NEED_TO_RESPECT_LDFLAGS
to cause linker call to fail when someone is using oe-core toolchain outside OE itself (so might ignore LDFLAGS, but without running the QA check).

This sounds like a nice idea; making it comparible to how the sysroot is poisoned.

Cheers,
Anders

Signature · 2 lines
Anders Darander, Senior System Architect
ChargeStorm AB / eStorm AB
#9 lore raw
Quoted 11 lines · Anders Darander
Quoted 5 lines · Martin Jansa

It would be nice to really poison the value if possible --with-linker-hash-style=YOU_NEED_TO_RESPECT_LDFLAGS
to cause linker call to fail when someone is using oe-core toolchain outside OE itself (so might ignore LDFLAGS, but without running the QA check).

This sounds like a nice idea; making it comparible to how the sysroot is poisoned.

Doesn't look like that's allowed, the argument only allows specific styles.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#10 lore raw
In reply to Martin Jansa
Quoted 50 lines · Martin Jansa
Quoted 23 lines · Khem Raj
Quoted 23 lines · Christopher Larson
Quoted 14 lines · On Mon, May 2, 2016 at 8:34 PM, Khem Raj <[email protected]…

On May 2, 2016, at 1:09 PM, Christopher Larson <[email protected] <mailto:[email protected]>> wrote:

From: Christopher Larson <[email protected] <mailto:[email protected]>>

We explicitly set the hash style to gnu in our LDFLAGS. Setting the default to this in the toolchain, while convenient, actually hides bugs, as a failure to obey LDFLAGS isn't noticed. By removing this, it's not dissimilar to how we poison the sysroot -- rather than relying on the default, notice right away if somoeone isn't obeying the needed flags.

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure, which is what's often seen with external toolchains. This brings us all on the same page, and makes sure a failure to obey LDFLAGS is seen early.

Quoted 8 lines
Quoted 5 lines

Default or gnu linkers is to use sysv for legacy reasons and by passing this option to configuring the toolchain we want to make sure that components are using sane defaults even if they have not configured these options.

But that's not what we want. We want to know when we're not passing arguments we need to be passing. For example, the sysroot is poisoned today, so we *know* when the user is trying to run it without --sysroot=.

application makefiles can ignore environment e.g. CC, CXX, LD etc and get into same situations. as an application writer I may not be interested in using cross compilation specific nuances. We may not

]> be able to solve it completely

Quoted 10 lines
Quoted 8 lines

if you do not pass the right linker flags from compiler driver and also ignore the LDFLAGS then you now have a safe pass for the app to build without GNU hash while I understand it will spread the external toolchain’s pains into internal toolchain I fail to understand the benefit of doing this otherwise.

Silently ignoring the fact that recipes ignore LDFLAGS is not good default behavior, and this is precisely what oe-core is doing today. If you know of a better way to detect that in another QA check, I'm certainly open to hearing it.

linker would emit .hash for sysv and .gnu.hash section for gnu hash in final ELF, may be adding a QA check for that would be enough ?

But that doesn't detect if it was set to gnu thanks to respecting LDFLAGS or thanks to gnu being the default in oe-core built toolchain (from --with-linker-hash-style) - which means that builds with external toolchain are still affected if they don't use --with-linker-hash-style=gnu.

Quoted 5 lines

After fixing couple recipes used by our internal builds (which are using external toolchain) and wondering why nobody else reported those I agree with Chris, that to detect this early (with current QA check which already reports when the used hash style doesn't match with LDFLAGS).

I'd like to back Chris and Martin here - using external toolchain as well and seeing few GNU_HASH warnings. Some warning are ours (too busy/lazy to fix now) but some are upstream recipes, maybe it's time to clean them up collectively?

Signature · 1 line
Denys
Quoted 17 lines

It would be nice to really poison the value if possible --with-linker-hash-style=YOU_NEED_TO_RESPECT_LDFLAGS
to cause linker call to fail when someone is using oe-core toolchain outside OE itself (so might ignore LDFLAGS, but without running the QA check).

Regards,

Signature · 9 lines
Martin 'JaMa' Jansa     jabber: [email protected]



-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
#11 lore raw
In reply to Christopher Larson
Quoted 6 lines · Christopher Larson

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure,
which is what's often seen with external toolchains. This brings us all on the
same page, and makes sure a failure to obey LDFLAGS is seen early.

I love the idea, but:

ERROR: libgcc-5.3.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf
binary:
'/data/poky-master/tmp-glibc/work/corei7-64-poky-linux/libgcc/5.3.0-r0/packages-split/libgcc/lib/libgcc_s.so.1' [ldflags]

Ross

#12 lore raw
Quoted 10 lines · Ross
Quoted 6 lines · Christopher Larson

This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure,
which is what's often seen with external toolchains. This brings us all on the
same page, and makes sure a failure to obey LDFLAGS is seen early.

Quoted 9 lines

I love the idea, but:

ERROR: libgcc-5.3.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf
binary:
'/data/poky-master/tmp-glibc/work/corei7-64-poky-linux/libgcc/5.3.0-r0/packages-split/libgcc/lib/libgcc_s.so.1' [ldflags]

Ross

No idea how I missed this, since I did test builds, but I'll submit a patch to oe-core shortly. Thanks :)

Signature · 5 lines
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#13 lore raw

Two additional GNU_HASH related errors were observed (breaking some builds) that seem to be related to the patch:

ERROR: bash-3.2.48-r11 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-non-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages-split/bash-ptest/usr/lib/bash/ptest/tests/recho' No GNU_HASH in the elf binary: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-non-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages-split/bash-ptest/usr/lib/bash/ptest/tests/zecho'
No GNU_HASH in the elf binary: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-non-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages-split/bash-ptest/usr/lib/bash/ptest/tests/printenv' [ldflags]
ERROR: bash-3.2.48-r11 do_package_qa: QA run found fatal errors. Please consider fixing them.

ERROR: service-0.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-skeleton/build/build/tmp/work/core2-64-poky-linux/service/0.1-r0/packages-split/service/usr/sbin/skeleton-test' [ldflags]

Juro

From: [email protected] [mailto:[email protected]] On Behalf Of Christopher Larson
Sent: Wednesday, May 4, 2016 12:11 PM
To: Burton, Ross <[email protected]>
Cc: OE-core <[email protected]>
Subject: Re: [OE-core] [master][PATCH] gcc-cross{, -canadian}: remove --with-linker-hash-style

On Wed, May 4, 2016 at 2:01 PM, Burton, Ross <[email protected]<mailto:[email protected]>> wrote:

On 2 May 2016 at 21:09, Christopher Larson <[email protected]<mailto:[email protected]>> wrote:
This will result in a failure to obey LDFLAGS causing a GNU_HASH QA failure, which is what's often seen with external toolchains. This brings us all on the same page, and makes sure a failure to obey LDFLAGS is seen early.

I love the idea, but:

ERROR: libgcc-5.3.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/data/poky-master/tmp-glibc/work/corei7-64-poky-linux/libgcc/5.3.0-r0/packages-split/libgcc/lib/libgcc_s.so.1' [ldflags]

Ross

No idea how I missed this, since I did test builds, but I'll submit a patch to oe-core shortly. Thanks :) --
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

#14 lore raw
Quoted 23 lines · Juro

Two additional GNU_HASH related errors were observed (breaking some builds) that seem to be related to the patch:

ERROR: bash-3.2.48-r11 do_package_qa: QA Issue: No GNU_HASH in the elf
binary:
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-non-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages-split/bash-ptest/usr/lib/bash/ptest/tests/recho'

No GNU_HASH in the elf binary:
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-non-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages-split/bash-ptest/usr/lib/bash/ptest/tests/zecho'

No GNU_HASH in the elf binary:
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-non-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages-split/bash-ptest/usr/lib/bash/ptest/tests/printenv' [ldflags]

ERROR: bash-3.2.48-r11 do_package_qa: QA run found fatal errors. Please consider fixing them.

Quoted 5 lines

ERROR: service-0.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf
binary:
'/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-skeleton/build/build/tmp/work/core2-64-poky-linux/service/0.1-r0/packages-split/service/usr/sbin/skeleton-test' [ldflags]

Huh, I must not have had ptest enabled in my test builds. Thanks, will take a look.

Signature · 5 lines
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#15 lore raw
Quoted 23 lines · Christopher Larson
Quoted 19 lines · Juro

Two additional GNU_HASH related errors were observed (breaking some builds) that seem to be related to the patch:

ERROR: bash-3.2.48-r11 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly

(quoted diff) +0 -2
-non-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48
-r11/packages-split/bash-ptest/usr/lib/bash/ptest/tests/recho'

No GNU_HASH in the elf binary: '/home/pokybuild/yocto

(quoted diff) +0 -3
-autobuilder/yocto-worker/nightly-non
-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages
-split/bash-ptest/usr/lib/bash/ptest/tests/zecho'

No GNU_HASH in the elf binary: '/home/pokybuild/yocto

(quoted diff) +0 -3
-autobuilder/yocto-worker/nightly-non
-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages
-split/bash-ptest/usr/lib/bash/ptest/tests/printenv' [ldflags]

ERROR: bash-3.2.48-r11 do_package_qa: QA run found fatal errors. Please consider fixing them.

Quoted 7 lines

Review

Quoted 5 lines

ERROR: service-0.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly

(quoted diff) +0 -2
-qa-skeleton/build/build/tmp/work/core2-64-poky-linux/service/0.1
-r0/packages-split/service/usr/sbin/skeleton-test' [ldflags]

Huh, I must not have had ptest enabled in my test builds. Thanks, will take a look.

The above is an older gplv2 recipe failure which is probably why you didn't see it.

I'm afraid there were more. pseudo:

https://autobuilder.yoctoproject.org/main/builders/build-appliance/buil
ds/747/steps/BuildImages_1/logs/stdio

qt-x11-free:

https://autobuilder.yoctoproject.or
g/main/builders/nightly-arm-lsb/builds/734/steps/BuildImages/logs/stdio
https://autobuilder.yoctoproject.org/main/builders/nightly-ppc-lsb/buil
ds/744/steps/BuildImages/logs/stdio
https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64-lsb/b
uilds/779/steps/BuildImages/logs/stdio

service in qa-skeleton:

https://autobuilder.yoctoproject.org/main/builders/nightly-qa-skeleton/
builds/753/steps/BuildImages/logs/stdio

ruby and mkefiimage:

https://autobuilder.yoctoproject.org/main/builders/nightly-no-x11/build
s/104/steps/BuildImages/logs/stdio

(selftest also showed mkefimage failure)

Cheers,

Richard

#16 lore raw
Quoted 54 lines · Richard Purdie
Quoted 23 lines · Christopher Larson
Quoted 19 lines · Juro

Two additional GNU_HASH related errors were observed (breaking some builds) that seem to be related to the patch:

ERROR: bash-3.2.48-r11 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly

(quoted diff) +0 -2
-non-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48
-r11/packages-split/bash-ptest/usr/lib/bash/ptest/tests/recho'

No GNU_HASH in the elf binary: '/home/pokybuild/yocto

(quoted diff) +0 -3
-autobuilder/yocto-worker/nightly-non
-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages
-split/bash-ptest/usr/lib/bash/ptest/tests/zecho'

No GNU_HASH in the elf binary: '/home/pokybuild/yocto

(quoted diff) +0 -3
-autobuilder/yocto-worker/nightly-non
-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages
-split/bash-ptest/usr/lib/bash/ptest/tests/printenv' [ldflags]

ERROR: bash-3.2.48-r11 do_package_qa: QA run found fatal errors. Please consider fixing them.

Quoted 7 lines

Review

Quoted 5 lines

ERROR: service-0.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly

(quoted diff) +0 -2
-qa-skeleton/build/build/tmp/work/core2-64-poky-linux/service/0.1
-r0/packages-split/service/usr/sbin/skeleton-test' [ldflags]

Huh, I must not have had ptest enabled in my test builds. Thanks, will take a look.

The above is an older gplv2 recipe failure which is probably why you didn't see it.

I'm afraid there were more. pseudo:

https://autobuilder.yoctoproject.org/main/builders/build-appliance/buil
ds/747/steps/BuildImages_1/logs/stdio

qt-x11-free:

https://autobuilder.yoctoproject.or
g/main/builders/nightly-arm-lsb/builds/734/steps/BuildImages/logs/stdio
https://autobuilder.yoctoproject.org/main/builders/nightly-ppc-lsb/buil
ds/744/steps/BuildImages/logs/stdio
https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64-lsb/b
uilds/779/steps/BuildImages/logs/stdio

service in qa-skeleton:

https://autobuilder.yoctoproject.org/main/builders/nightly-qa-skeleton/
builds/753/steps/BuildImages/logs/stdio

Quoted 6 lines

ruby and mkefiimage:

https://autobuilder.yoctoproject.org/main/builders/nightly-no-x11/build
s/104/steps/BuildImages/logs/stdio

(selftest also showed mkefimage failure)

I'll take a look asap, unless someone else gets to it first. As mentioned, ruby, mkelfimage and one other were already on the list as of last thursday.

Signature · 5 lines
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#17 lore raw
Quoted 67 lines · Christopher Larson
Quoted 64 lines · Richard Purdie
Quoted 23 lines · Christopher Larson
Quoted 19 lines · Juro

Two additional GNU_HASH related errors were observed (breaking some builds) that seem to be related to the patch:

ERROR: bash-3.2.48-r11 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly

(quoted diff) +0 -2
-non-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48
-r11/packages-split/bash-ptest/usr/lib/bash/ptest/tests/recho'

No GNU_HASH in the elf binary: '/home/pokybuild/yocto

(quoted diff) +0 -3
-autobuilder/yocto-worker/nightly-non
-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages
-split/bash-ptest/usr/lib/bash/ptest/tests/zecho'

No GNU_HASH in the elf binary: '/home/pokybuild/yocto

(quoted diff) +0 -3
-autobuilder/yocto-worker/nightly-non
-gpl3/build/build/tmp/work/i586-poky-linux/bash/3.2.48-r11/packages
-split/bash-ptest/usr/lib/bash/ptest/tests/printenv' [ldflags]

ERROR: bash-3.2.48-r11 do_package_qa: QA run found fatal errors. Please consider fixing them.

Quoted 7 lines

Review

Quoted 5 lines

ERROR: service-0.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly

(quoted diff) +0 -2
-qa-skeleton/build/build/tmp/work/core2-64-poky-linux/service/0.1
-r0/packages-split/service/usr/sbin/skeleton-test' [ldflags]

Huh, I must not have had ptest enabled in my test builds. Thanks, will take a look.

The above is an older gplv2 recipe failure which is probably why you didn't see it.

I'm afraid there were more. pseudo:

https://autobuilder.yoctoproject.org/main/builders/build-appliance/buil
ds/747/steps/BuildImages_1/logs/stdio
<https://autobuilder.yoctoproject.org/main/builders/build-appliance/builds/747/steps/BuildImages_1/logs/stdio>

qt-x11-free:

https://autobuilder.yoctoproject.or
g/main/builders/nightly-arm-lsb/builds/734/steps/BuildImages/logs/stdio
https://autobuilder.yoctoproject.org/main/builders/nightly-ppc-lsb/buil
ds/744/steps/BuildImages/logs/stdio
<https://autobuilder.yoctoproject.org/main/builders/nightly-ppc-lsb/builds/744/steps/BuildImages/logs/stdio>
https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64-lsb/b
uilds/779/steps/BuildImages/logs/stdio
<https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64-lsb/builds/779/steps/BuildImages/logs/stdio>

service in qa-skeleton:

https://autobuilder.yoctoproject.org/main/builders/nightly-qa-skeleton/
builds/753/steps/BuildImages/logs/stdio
<https://autobuilder.yoctoproject.org/main/builders/nightly-qa-skeleton/builds/753/steps/BuildImages/logs/stdio>

ruby and mkefiimage:

https://autobuilder.yoctoproject.org/main/builders/nightly-no-x11/build
s/104/steps/BuildImages/logs/stdio
<https://autobuilder.yoctoproject.org/main/builders/nightly-no-x11/builds/104/steps/BuildImages/logs/stdio>

Quoted 6 lines
Quoted 1 line

(selftest also showed mkefimage failure)

I'll take a look asap, unless someone else gets to it first. As mentioned, ruby, mkelfimage and one other were already on the list as of last thursday.

I have to say, I didn't realize oe-core patches require testing with meta-qt3. I can't remember the last time I touched qt that old. I'll have to add more non-core layers to my local testing in the future.

Signature · 5 lines
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#18 lore raw
Quoted 3 lines · Christopher Larson

I have to say, I didn't realize oe-core patches require testing with meta-qt3. I can't remember the last time I touched qt that old. I'll have to add more non-core layers to my local testing in the future.

The version of lsb we have requires qt3 so it gets pulled into poky-lsb only. Personally, I can't wait to upgrade lsb and then drop it. I'm hoping that happens this cycle, finally.

Cheers,

Richard