Skip to contentSkip to conversation

insane.bbclass: Make RPATH a non-fatal error

PATCH In review Tom Rini 8 participants 23 messages Feb 18, 2011 – Feb 20, 2011

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 insane.bbclass: Make RPATH a non-fatal error

In order to make the user experience better we now use bb.warn on non-fatal QA errors and bb.error on fatal errors.

---
 classes/insane.bbclass |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
classes/insane.bbclass +9 -3
index a846832..3b042c9 100644
@@ -116,7 +116,7 @@ def package_qa_make_fatal_error(error_class, name, path,d):
 
     TODO: Load a whitelist of known errors
     """
-    return not error_class in [0, 5, 7]
+    return not error_class in [0, 1, 5, 7]
 
 def package_qa_write_error(error_class, name, path, d):
     """
@@ -145,10 +145,16 @@ def package_qa_write_error(error_class, name, path, d):
              (ERROR_NAMES[error_class], name, package_qa_clean_path(path,d))
     f.close()
 
+# Returns False is there was a fatal problem and True if we did not hit a fatal
+# error
 def package_qa_handle_error(error_class, error_msg, name, path, d):
-    bb.error("QA Issue with %s: %s" % (name, error_msg))
+    fatal = package_qa_make_fatal_error(error_class, name, path, d)
     package_qa_write_error(error_class, name, path, d)
-    return not package_qa_make_fatal_error(error_class, name, path, d)
+    if fatal:
+        bb.error("QA Issue with %s: %s" % (name, error_msg))
+    else:
+        bb.warn("QA Issue with %s: %s" % (name, error_msg))
+    return not fatal
 
 def package_qa_check_rpath(file,name,d, elf):
     """
Signature · 1 line
1.7.3.5
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Tom Rini

In order to make the user experience better we now use bb.warn on non-fatal QA errors and bb.error on fatal errors.

I really would like to get these issues fixed but I guess from grand scheme of things for now

Quoted 44 lines
---
 classes/insane.bbclass |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
classes/insane.bbclass +9 -3
index a846832..3b042c9 100644
@@ -116,7 +116,7 @@ def package_qa_make_fatal_error(error_class, name, path,d):
 
     TODO: Load a whitelist of known errors
     """
-    return not error_class in [0, 5, 7]
+    return not error_class in [0, 1, 5, 7]
 
 def package_qa_write_error(error_class, name, path, d):
     """
@@ -145,10 +145,16 @@ def package_qa_write_error(error_class, name, path, d):
              (ERROR_NAMES[error_class], name, package_qa_clean_path(path,d))
     f.close()
 
+# Returns False is there was a fatal problem and True if we did not hit a fatal
+# error
 def package_qa_handle_error(error_class, error_msg, name, path, d):
-    bb.error("QA Issue with %s: %s" % (name, error_msg))
+    fatal = package_qa_make_fatal_error(error_class, name, path, d)
     package_qa_write_error(error_class, name, path, d)
-    return not package_qa_make_fatal_error(error_class, name, path, d)
+    if fatal:
+        bb.error("QA Issue with %s: %s" % (name, error_msg))
+    else:
+        bb.warn("QA Issue with %s: %s" % (name, error_msg))
+    return not fatal
 
 def package_qa_check_rpath(file,name,d, elf):
     """
Signature · 7 lines
1.7.3.5


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
-Khem
author
#2 lore raw
In reply to Tom Rini
Quoted 2 lines · Tom Rini

In order to make the user experience better we now use bb.warn on non-fatal QA errors and bb.error on fatal errors.

Part of my motivation here is that after looking at poky, this error is _not_ fatal there yet (none are), and until we can kill libtool 2.2.x (which won't be until oe-core I believe) this is going to be a big problem to solve, generally involving a libtool hack. I think we can best spend our time here on fixing RPATH issues that still show up once we're all using libtool 2.4 (as there will still be a few in 'odd' packages, but most will now be correct automatically).

I'm going to push this into my simplify-target-flags branch as well and see what falls out now (doing so already for smaller test cases).

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#3 lore raw
Quoted 12 lines · Tom Rini
Quoted 2 lines · Tom Rini

In order to make the user experience better we now use bb.warn on non-fatal QA errors and bb.error on fatal errors.

Part of my motivation here is that after looking at poky, this error is _not_ fatal there yet (none are), and until we can kill libtool 2.2.x (which won't be until oe-core I believe) this is going to be a big problem to solve, generally involving a libtool hack. I think we can best spend our time here on fixing RPATH issues that still show up once we're all using libtool 2.4 (as there will still be a few in 'odd' packages, but most will now be correct automatically).

Quoted 2 lines

I'm going to push this into my simplify-target-flags branch as well and see what falls out now (doing so already for smaller test cases).

Since our own Arago overlay still uses libtool 2.2 (disabling RPATH check locally), I fully support this change in OE until everyone adopts libtool 2.4

Signature · 1 line
Denys
#6 lore raw

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

#7 lore raw
Quoted 6 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further will follow...

my opinion now: keep RPATH errors fatal as developer's whip :-)

Andreas

#8 lore raw
Quoted 9 lines · Andreas Mueller
Quoted 6 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

Quoted 7 lines

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further will follow...

my opinion now: keep RPATH errors fatal as developer's  whip :-)

I agree about keeping it configurable.

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
author
#9 lore raw
Quoted 16 lines · Otavio Salvador
Quoted 15 lines · Andreas Mueller
Quoted 6 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further will follow...

Quoted 6 lines
Quoted 1 line

my opinion now: keep RPATH errors fatal as developer's whip :-)

I agree about keeping it configurable.

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

I just want to state, again, that most of these just go away with libtool 2.4. Now, if people are looking for something to work on that won't just go away with an update to libtool 2.4:
- iscsi-target needs some love again for various kernel versions as that looks to be killing calamari and neek for nas-server-image
- 'micro' only builds for minimal-image and meta-toolchain, everything else has some build problem or another.

And I'm sure I'll have more logs as I sort out my autobuilder after the weekend.

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#10 lore raw

2011/2/19 Tom Rini <[email protected]>:

Quoted 27 lines · Otavio Salvador
Quoted 26 lines
Quoted 12 lines · Andreas Mueller
Quoted 7 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

Quoted 8 lines

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further
will follow...

my opinion now: keep RPATH errors fatal as developer's  whip :-)

I agree about keeping it configurable.

Quoted 8 lines
Quoted 2 lines

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

I just want to state, again, that most of these just go away with libtool 2.4.  Now, if people are looking for something to work on that won't just go away with an update to libtool 2.4:
- iscsi-target needs some love again for various kernel versions as that looks to be killing calamari and neek for nas-server-image

Peeked at iscsi-target for calamari. Some inet fields have changed name in 2.6.32 or so, and apparently this is not handled fully. Instead of trying to fix it, I moved the calamari recipe to 2.6.34 (which I'm already using for half a year or so, but apparently never pushed).

I'll also see if I can update the neek version (probably also by moving the kernel version forward.
Tomorrow I'll discuss this with Walter who afaik is the only other neek user.

Frans.

Quoted 15 lines

- 'micro' only builds for minimal-image and meta-toolchain, everything else has some build problem or another.

And I'm sure I'll have more logs as I sort out my autobuilder after the weekend.

--
Tom Rini
Mentor Graphics Corporation

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#11 lore raw
Quoted 37 lines · Frans Meulenbroeks

2011/2/19 Tom Rini<[email protected]>:

Quoted 27 lines · Otavio Salvador
Quoted 26 lines
Quoted 12 lines · Andreas Mueller
Quoted 7 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

Quoted 8 lines

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further
will follow...

my opinion now: keep RPATH errors fatal as developer's whip :-)

I agree about keeping it configurable.

Quoted 8 lines
Quoted 2 lines

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

I just want to state, again, that most of these just go away with libtool 2.4. Now, if people are looking for something to work on that won't just go away with an update to libtool 2.4:
- iscsi-target needs some love again for various kernel versions as that looks to be killing calamari and neek for nas-server-image

Quoted 5 lines

Peeked at iscsi-target for calamari. Some inet fields have changed name in 2.6.32 or so, and apparently this is not handled fully. Instead of trying to fix it, I moved the calamari recipe to 2.6.34 (which I'm already using for half a year or so, but apparently never pushed).

Thanks.

Quoted 3 lines

I'll also see if I can update the neek version (probably also by moving the kernel version forward.
Tomorrow I'll discuss this with Walter who afaik is the only other neek user.

Note that I also see:
- uclibc total failure, but I assume unsupported and I'll drop
- minimal fails everywhere else with:
ERROR: QA Issue with staging: libsupc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib
ERROR: QA Issue with staging: libstdc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib
ERROR: QA staging was broken by the package built above

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#12 lore raw
Quoted 49 lines · On Sunday 20 February 2011 15:46:48 Tom Rini wrote:
Quoted 35 lines · Frans Meulenbroeks

2011/2/19 Tom Rini<[email protected]>:

Quoted 25 lines · Otavio Salvador
Quoted 24 lines

On Sat, Feb 19, 2011 at 11:52, Andreas Mueller<[email protected]>

Quoted 10 lines · wrote:
Quoted 6 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

Quoted 8 lines

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further
will follow...

my opinion now: keep RPATH errors fatal as developer's whip :-)

I agree about keeping it configurable.

Quoted 8 lines
Quoted 2 lines

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

I just want to state, again, that most of these just go away with libtool 2.4. Now, if people are looking for something to work on that won't just go away with an update to libtool 2.4:
- iscsi-target needs some love again for various kernel versions as that looks to be killing calamari and neek for nas-server-image

Quoted 5 lines

Peeked at iscsi-target for calamari. Some inet fields have changed name in 2.6.32 or so, and apparently this is not handled fully. Instead of trying to fix it, I moved the calamari recipe to 2.6.34 (which I'm already using for half a year or so, but apparently never pushed).

Thanks.

Quoted 4 lines

I'll also see if I can update the neek version (probably also by moving the kernel version forward.
Tomorrow I'll discuss this with Walter who afaik is the only other neek user.

Quoted 12 lines

Note that I also see:
- uclibc total failure, but I assume unsupported and I'll drop
- minimal fails everywhere else with:
ERROR: QA Issue with staging: libsupc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/D ISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib
ERROR: QA Issue with staging: libstdc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/D ISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib
ERROR: QA staging was broken by the package built above

Can you try this with the cross.bbclass patch?

author
#13 lore raw
Quoted 62 lines · Andreas Mueller
Quoted 49 lines · On Sunday 20 February 2011 15:46:48 Tom Rini wrote:
Quoted 35 lines · Frans Meulenbroeks

2011/2/19 Tom Rini<[email protected]>:

Quoted 25 lines · Otavio Salvador
Quoted 24 lines

On Sat, Feb 19, 2011 at 11:52, Andreas Mueller<[email protected]>

Quoted 10 lines · wrote:
Quoted 6 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

Quoted 8 lines

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further
will follow...

my opinion now: keep RPATH errors fatal as developer's whip :-)

I agree about keeping it configurable.

Quoted 8 lines
Quoted 2 lines

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

I just want to state, again, that most of these just go away with libtool 2.4. Now, if people are looking for something to work on that won't just go away with an update to libtool 2.4:
- iscsi-target needs some love again for various kernel versions as that looks to be killing calamari and neek for nas-server-image

Quoted 5 lines

Peeked at iscsi-target for calamari. Some inet fields have changed name in 2.6.32 or so, and apparently this is not handled fully. Instead of trying to fix it, I moved the calamari recipe to 2.6.34 (which I'm already using for half a year or so, but apparently never pushed).

Thanks.

Quoted 4 lines

I'll also see if I can update the neek version (probably also by moving the kernel version forward.
Tomorrow I'll discuss this with Walter who afaik is the only other neek user.

Quoted 12 lines

Note that I also see:
- uclibc total failure, but I assume unsupported and I'll drop
- minimal fails everywhere else with:
ERROR: QA Issue with staging: libsupc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/D ISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib
ERROR: QA Issue with staging: libstdc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/D ISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib
ERROR: QA staging was broken by the package built above

Quoted 1 line

Can you try this with the cross.bbclass patch?

I'll do a smaller subset test for that patch once the big build is done (I hope less than 24h left for that).

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#14 lore raw
In reply to Tom Rini

Hi Tom,

Quoted 9 lines · Tom Rini

- minimal fails everywhere else with:
ERROR: QA Issue with staging: libsupc++.la failed sanity test (workdir) in
path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib

ERROR: QA Issue with staging: libstdc++.la failed sanity test (workdir) in
path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib

can you try with this patch ?
http://patches.openembedded.org/patch/719/

Eric

#15 lore raw
In reply to Tom Rini

2011/2/20 Tom Rini <[email protected]>:

Quoted 54 lines · Frans Meulenbroeks
Quoted 40 lines

2011/2/19 Tom Rini<[email protected]>:

Quoted 31 lines · Otavio Salvador
Quoted 22 lines
Quoted 19 lines · Andreas Mueller
Quoted 7 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further
will follow...

Quoted 6 lines
Quoted 1 line

my opinion now: keep RPATH errors fatal as developer's  whip :-)

I agree about keeping it configurable.

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

Quoted 6 lines

I just want to state, again, that most of these just go away with libtool 2.4.  Now, if people are looking for something to work on that won't just go
away with an update to libtool 2.4:
- iscsi-target needs some love again for various kernel versions as that looks to be killing calamari and neek for nas-server-image

Quoted 5 lines

Peeked at iscsi-target for calamari. Some inet fields have changed name in 2.6.32 or so, and apparently this is not handled fully. Instead of trying to fix it, I moved the calamari recipe to 2.6.34 (which I'm already using for half a year or so, but apparently never pushed).

Thanks.

Quoted 4 lines

I'll also see if I can update the neek version (probably also by moving the kernel version forward.
Tomorrow I'll discuss this with Walter who afaik is the only other neek user.

Quoted 12 lines

Note that I also see:
- uclibc total failure, but I assume unsupported and I'll drop
- minimal fails everywhere else with:
ERROR: QA Issue with staging: libsupc++.la failed sanity test (workdir) in
path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib
ERROR: QA Issue with staging: libstdc++.la failed sanity test (workdir) in
path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib
ERROR: QA staging was broken by the package built above

Also mentioned this on irc, I will try patch 719 that is suggested below, but this could be a toolchain issue (it would not be the first).
Toolchain for nios is quite old (gcc 4.1.something, binutils 2.18.50.something). It should be able to build minimal-image for distro minimal and micro. And as far as I know neither uclibc nor eglibc are supported.
THen again it has been a while since I managed to give this attention.

Frans.

#16 lore raw
Quoted 64 lines · On Sunday 20 February 2011 17:31:26 Frans Meulenbroeks wrote:

2011/2/20 Tom Rini <[email protected]>:

Quoted 50 lines · Frans Meulenbroeks
Quoted 36 lines

2011/2/19 Tom Rini<[email protected]>:

Quoted 28 lines · Otavio Salvador
Quoted 20 lines

On Sat, Feb 19, 2011 at 11:52, Andreas Mueller<[email protected]>

Quoted 17 lines · wrote:
Quoted 6 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further
will follow...

Quoted 6 lines
Quoted 1 line

my opinion now: keep RPATH errors fatal as developer's whip :-)

I agree about keeping it configurable.

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

Quoted 6 lines

I just want to state, again, that most of these just go away with libtool 2.4. Now, if people are looking for something to work on that won't just go
away with an update to libtool 2.4:
- iscsi-target needs some love again for various kernel versions as that looks to be killing calamari and neek for nas-server-image

Quoted 5 lines

Peeked at iscsi-target for calamari. Some inet fields have changed name in 2.6.32 or so, and apparently this is not handled fully. Instead of trying to fix it, I moved the calamari recipe to 2.6.34 (which I'm already using for half a year or so, but apparently never pushed).

Thanks.

Quoted 4 lines

I'll also see if I can update the neek version (probably also by moving the kernel version forward.
Tomorrow I'll discuss this with Walter who afaik is the only other neek user.

Quoted 12 lines

Note that I also see:
- uclibc total failure, but I assume unsupported and I'll drop
- minimal fails everywhere else with:
ERROR: QA Issue with staging: libsupc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image /DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/ lib ERROR: QA Issue with staging: libstdc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image /DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/ lib ERROR: QA staging was broken by the package built above

Quoted 7 lines

Also mentioned this on irc, I will try patch 719 that is suggested below, but this could be a toolchain issue (it would not be the first).
Toolchain for nios is quite old (gcc 4.1.something, binutils 2.18.50.something). It should be able to build minimal-image for distro minimal and micro. And as far as I know neither uclibc nor eglibc are supported.

Maybe a misunderstanding on my side but: patch 719 only affects libtool-2.2 distros. I think minimal and micro distro do not pin libtool version so use libtool-2.4.

Quoted 8 lines

THen again it has been a while since I managed to give this attention.

Frans.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#17 lore raw

2011/2/20 Andreas Mueller <[email protected]>:

Quoted 72 lines · On Sunday 20 February 2011 17:31:26 Frans Meulenbroeks wrote:
Quoted 64 lines

2011/2/20 Tom Rini <[email protected]>:

Quoted 50 lines · Frans Meulenbroeks
Quoted 36 lines

2011/2/19 Tom Rini<[email protected]>:

Quoted 28 lines · Otavio Salvador
Quoted 20 lines

On Sat, Feb 19, 2011 at 11:52, Andreas Mueller<[email protected]>

Quoted 17 lines · wrote:
Quoted 6 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further
will follow...

Quoted 6 lines
Quoted 1 line

my opinion now: keep RPATH errors fatal as developer's  whip :-)

I agree about keeping it configurable.

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

Quoted 6 lines

I just want to state, again, that most of these just go away with libtool 2.4.  Now, if people are looking for something to work on that won't just go
away with an update to libtool 2.4:
- iscsi-target needs some love again for various kernel versions as that looks to be killing calamari and neek for nas-server-image

Quoted 5 lines

Peeked at iscsi-target for calamari. Some inet fields have changed name in 2.6.32 or so, and apparently this is not handled fully. Instead of trying to fix it, I moved the calamari recipe to 2.6.34 (which I'm already using for half a year or so, but apparently never pushed).

Thanks.

Quoted 4 lines

I'll also see if I can update the neek version (probably also by moving the kernel version forward.
Tomorrow I'll discuss this with Walter who afaik is the only other neek user.

Quoted 12 lines

Note that I also see:
- uclibc total failure, but I assume unsupported and I'll drop
- minimal fails everywhere else with:
ERROR: QA Issue with staging: libsupc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image /DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/ lib ERROR: QA Issue with staging: libstdc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image /DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/ lib ERROR: QA staging was broken by the package built above

Quoted 7 lines

Also mentioned this on irc, I will try patch 719 that is suggested below, but this could be a toolchain issue (it would not be the first).
Toolchain for nios is quite old (gcc 4.1.something, binutils 2.18.50.something). It should be able to build minimal-image for distro minimal and micro. And as far as I know neither uclibc nor eglibc are supported.

Quoted 3 lines

Maybe a misunderstanding on my side but: patch 719 only affects libtool-2.2 distros. I think minimal and micro distro do not pin libtool version so use libtool-2.4.

Ah ok, I think you are right, thanks for bringing that up. Guess it'll need some more attention, but as it stands I am quite constrained on time upcoming few days.

Frans.

#18 lore raw
In reply to Tom Rini

2011/2/20 Tom Rini <[email protected]>:

Quoted 54 lines · Frans Meulenbroeks
Quoted 40 lines

2011/2/19 Tom Rini<[email protected]>:

Quoted 31 lines · Otavio Salvador
Quoted 22 lines
Quoted 19 lines · Andreas Mueller
Quoted 7 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further
will follow...

Quoted 6 lines
Quoted 1 line

my opinion now: keep RPATH errors fatal as developer's  whip :-)

I agree about keeping it configurable.

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

Quoted 6 lines

I just want to state, again, that most of these just go away with libtool 2.4.  Now, if people are looking for something to work on that won't just go
away with an update to libtool 2.4:
- iscsi-target needs some love again for various kernel versions as that looks to be killing calamari and neek for nas-server-image

Quoted 5 lines

Peeked at iscsi-target for calamari. Some inet fields have changed name in 2.6.32 or so, and apparently this is not handled fully. Instead of trying to fix it, I moved the calamari recipe to 2.6.34 (which I'm already using for half a year or so, but apparently never pushed).

Thanks.

Quoted 4 lines

I'll also see if I can update the neek version (probably also by moving the kernel version forward.
Tomorrow I'll discuss this with Walter who afaik is the only other neek user.

Quoted 11 lines

Note that I also see:
- uclibc total failure, but I assume unsupported and I'll drop
- minimal fails everywhere else with:
ERROR: QA Issue with staging: libsupc++.la failed sanity test (workdir) in
path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib
ERROR: QA Issue with staging: libstdc++.la failed sanity test (workdir) in
path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image/DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/lib
ERROR: QA staging was broken by the package built above

Peeked some more itnto this.

If I peek in ./nios2-linux/usr/lib/libsupc++.la I see:

# libsupc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names=''

# The name of the static archive.
old_library='libsupc++.a'

# Libraries that this one depends upon.
dependency_libs=' -L/home/frans/oe/tmp_minimal/work/nios2-linux/gcc-cross-4.1.2-r27.2/gcc-4.1.2/build.i686-linux.nios2-linux/nios2-linux/libstdc++-v3/src -L/home/frans/oe/tmp_minimal/work/nios2-linux/gcc-cross-4.1.2-r27.2/gcc-4.1.2/build.i686-linux.nios2-linux/nios2-linux/libstdc++-v3/src/.libs -lm -L/home/frans/oe/tmp_minimal/work/nios2-linux/gcc-cross-4.1.2-r27.2/gcc-4.1.2/build.i686-linux.nios2-linux/./gcc -L/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/nios2/nios2-linux/bin -L/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/nios2/nios2-linux/lib -L/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/nios2/lib/gcc/nios2-linux/4.1.2 -L/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/nios2/lib/gcc/nios2-linux/4.1.2/../../../../nios2-linux/lib -L/home/frans/oe/tmp_minimal/sysroots/nios2-linux/lib
-L/home/frans/oe/tmp_minimal/sysroots/nios2-linux/usr/lib -lgcc_s -lc
-lgcc_s

...

For other platforms I see
# libsupc++.la - a libtool library file
# Generated by libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a #
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names=''

# The name of the static archive.
old_library='libsupc++.a'

# Linker flags that can not go in dependency_libs. inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=''
...

Note the different versions of libtool and the different dependency libs I guess the libsupc++ comes from gcc and nios2 has a very old gcc (4.1.2), but there is no newer version (nios2 support is not mainlined).
Anyone a suggestion?

Frans.

#19 lore raw
Quoted 127 lines · On Sunday 20 February 2011 19:26:23 Frans Meulenbroeks wrote:

2011/2/20 Tom Rini <[email protected]>:

Quoted 50 lines · Frans Meulenbroeks
Quoted 36 lines

2011/2/19 Tom Rini<[email protected]>:

Quoted 28 lines · Otavio Salvador
Quoted 20 lines

On Sat, Feb 19, 2011 at 11:52, Andreas Mueller<[email protected]>

Quoted 17 lines · wrote:
Quoted 6 lines · On Saturday 19 February 2011 10:45:38 Frans Meulenbroeks wrote:

I am fine with the patch, but perhaps a better solution would be to introduce a var to decide whether it is a fatal or not. That way people distro's that use libtool 2.4 can decide to make it a fatal. (or individual users in their local.conf)

Frans

How comes that I sometimes feel handled as spammer ;-) ?

see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-
February/029534.html

anyway - treating RPATH errors as fatal has lead to many QA fixes and further
will follow...

Quoted 6 lines
Quoted 1 line

my opinion now: keep RPATH errors fatal as developer's whip :-)

I agree about keeping it configurable.

Besides I think that we ought to keep it fatal until quite near of release since we'll be "forced" to fix most of many of them.

Quoted 6 lines

I just want to state, again, that most of these just go away with libtool 2.4. Now, if people are looking for something to work on that won't just go
away with an update to libtool 2.4:
- iscsi-target needs some love again for various kernel versions as that looks to be killing calamari and neek for nas-server-image

Quoted 5 lines

Peeked at iscsi-target for calamari. Some inet fields have changed name in 2.6.32 or so, and apparently this is not handled fully. Instead of trying to fix it, I moved the calamari recipe to 2.6.34 (which I'm already using for half a year or so, but apparently never pushed).

Thanks.

Quoted 4 lines

I'll also see if I can update the neek version (probably also by moving the kernel version forward.
Tomorrow I'll discuss this with Walter who afaik is the only other neek user.

Quoted 12 lines

Note that I also see:
- uclibc total failure, but I assume unsupported and I'll drop
- minimal fails everywhere else with:
ERROR: QA Issue with staging: libsupc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image /DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/ lib ERROR: QA Issue with staging: libstdc++.la failed sanity test (workdir) in path /var/hudson/workspace/sb_openembedded_autobuilder/BBPKGS/native-sdk-image /DISTRO/minimal/MACHINE/neek/label/sb-u1004/tmp/sysroots/nios2-linux/usr/ lib ERROR: QA staging was broken by the package built above

Peeked some more itnto this.

If I peek in ./nios2-linux/usr/lib/libsupc++.la I see:

# libsupc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names=''

# The name of the static archive.
old_library='libsupc++.a'

# Libraries that this one depends upon.
dependency_libs=' -L/home/frans/oe/tmp_minimal/work/nios2-linux/gcc-cross-4.1.2-r27.2/gcc-4.1 .2/build.i686-linux.nios2-linux/nios2-linux/libstdc++-v3/src -L/home/frans/oe/tmp_minimal/work/nios2-linux/gcc-cross-4.1.2-r27.2/gcc-4. 1.2/build.i686-linux.nios2-linux/nios2-linux/libstdc++-v3/src/.libs -lm -L/home/frans/oe/tmp_minimal/work/nios2-linux/gcc-cross-4.1.2-r27.2/gcc-4. 1.2/build.i686-linux.nios2-linux/./gcc

(quoted diff) +0 -3
-L/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/nios2/nios2-linux/bin
-L/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/nios2/nios2-linux/lib
-L/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/nios2/lib/gcc/nios2-l

inux/4.1.2 -L/home/frans/oe/tmp_minimal/sysroots/i686-linux/usr/nios2/lib/gcc/nios2-l inux/4.1.2/../../../../nios2-linux/lib

(quoted diff) +0 -3
-L/home/frans/oe/tmp_minimal/sysroots/nios2-linux/lib
-L/home/frans/oe/tmp_minimal/sysroots/nios2-linux/usr/lib -lgcc_s -lc
-lgcc_s
 
...

For other platforms I see
# libsupc++.la - a libtool library file
# Generated by libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a #
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names=''

# The name of the static archive.
old_library='libsupc++.a'

# Linker flags that can not go in dependency_libs. inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=''
...

Quoted 7 lines

Note the different versions of libtool and the different dependency libs I guess the libsupc++ comes from gcc and nios2 has a very old gcc (4.1.2), but there is no newer version (nios2 support is not mainlined).
Anyone a suggestion?

Frans.

In my case the QA RPATH error was caused by the value found in

libdir=..

But here situation seems a bit different. How about manually setting to correct

libdir=/usr/lib

and continue build?

Andreas

#20 lore raw
In reply to Tom Rini
Quoted 2 lines · Tom Rini

In order to make the user experience better we now use bb.warn on non-fatal QA errors and bb.error on fatal errors.

hmm. for every binary with a bad RPATH in your distribution your product can get bad press very fast. I think the commit message should reflect this in a way that we are aware of this and don't care.

holger

#21 lore raw

2011/2/19 Holger Freyther <[email protected]>:

Quoted 11 lines · Tom Rini
Quoted 2 lines

In order to make the user experience better we now use bb.warn on non-fatal QA errors and bb.error on fatal errors.

hmm. for every binary with a bad RPATH in your distribution your product can get bad press very fast. I think the commit message should reflect this in a way that we are aware of this and don't care.

holger

That's why I suggested to at least make it user/distro configurable, so those of us who do care can easily enable it.

Frans

author
#22 lore raw
In reply to Holger Freyther
Quoted 8 lines · Holger Freyther
Quoted 2 lines · Tom Rini

In order to make the user experience better we now use bb.warn on non-fatal QA errors and bb.error on fatal errors.

hmm. for every binary with a bad RPATH in your distribution your product can get bad press very fast. I think the commit message should reflect this in a way that we are aware of this and don't care.

Agreed, I will update the RPATH wording when I push this. Thanks!

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation