All of lore.kernel.org
 help / color / mirror / Atom feed
* Still not solved: glibc-dbg and insane.bbclass
@ 2009-06-07 17:55 Martin Dietze
  2009-06-07 18:21 ` Koen Kooi
  2009-06-07 23:28 ` Rolf Leggewie
  0 siblings, 2 replies; 6+ messages in thread
From: Martin Dietze @ 2009-06-07 17:55 UTC (permalink / raw)
  To: openembedded-devel

Hi,

 just as my build broke again wiht this issue:
glibc-package.bbclass defines PACKAGES which always contains
glibc-dbg, however the build is without debug symbols for build
time reasons. I guess eventually we'd like to configure from
somewhere whether or not we want debug code and the glibc-dbg
package.

Do we have any "official" mechanism we can use to accomplish
this? Since this is something which *always* breaks builds I'd
think we should do something about this sooner rather than
later.

Cheers,

M'bert

-- 
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+= 
Interested in sophisticated fun? You, hubby, girl friends. The more the 
merrier. Get in touch with Kirby, through WASTE only, Box 7391, L.A.



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

* Re: Still not solved: glibc-dbg and insane.bbclass
  2009-06-07 17:55 Still not solved: glibc-dbg and insane.bbclass Martin Dietze
@ 2009-06-07 18:21 ` Koen Kooi
  2009-06-07 19:18   ` Martin Dietze
  2009-06-07 23:28 ` Rolf Leggewie
  1 sibling, 1 reply; 6+ messages in thread
From: Koen Kooi @ 2009-06-07 18:21 UTC (permalink / raw)
  To: openembedded-devel

On 07-06-09 19:55, Martin Dietze wrote:
> Hi,
>
>   just as my build broke again wiht this issue:
> glibc-package.bbclass defines PACKAGES which always contains
> glibc-dbg, however the build is without debug symbols for build
> time reasons. I guess eventually we'd like to configure from
> somewhere whether or not we want debug code and the glibc-dbg
> package.
>
> Do we have any "official" mechanism we can use to accomplish
> this? Since this is something which *always* breaks builds I'd
> think we should do something about this sooner rather than
> later.

What's exactly breaking? It's perfectly legal (and needed for 
depchains!) for -dbg package to be empty.

regards,

Koen




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

* Re: Still not solved: glibc-dbg and insane.bbclass
  2009-06-07 18:21 ` Koen Kooi
@ 2009-06-07 19:18   ` Martin Dietze
  2009-06-08  5:35     ` Koen Kooi
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Dietze @ 2009-06-07 19:18 UTC (permalink / raw)
  To: openembedded-devel

On Sun, June 07, 2009, Koen Kooi wrote:

> What's exactly breaking? It's perfectly legal (and needed for depchains!) 
> for -dbg package to be empty.

This is the QA error I am getting:

| % cat log.qa_package
| wrong architecture, glibc-dbg, /work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/ld-2.3.3.so
| wrong architecture, glibc-dbg, /work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/libc-2.3.3.so

And this is what the files look like:

| % file  /var/src/OE/tmp/work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/ld-2.3.3.so
| /var/src/OE/tmp/work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/ld-2.3.3.so: ELF 32-bit LSB no file type, no machine, invalid version (SYSV)
| % file  /var/src/OE/tmp/work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/libc-2.3.3.so
| /var/src/OE/tmp/work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/libc-2.3.3.so: ELF 32-bit LSB no file type, no machine, invalid version (SYSV)

The files are practicall empty (here libc-2.3.3.so): 

7f 45 4c 46  01 01 01 00  00 00 00 00  00 00 00 00  .ELF............
00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
00 00 00 00  01 00 00 00  03 00 00 00  00 00 00 00  ................
00 00 00 00  00 00 00 00  0b 00 00 00  00 00 00 00  ................
00 00 00 00  01 00 00 00  00 00 00 00               ............

For whatever reason the build creates those files in .debug
even though the build is performed without debug code.

Cheers,

M'bert

-- 
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+= 
"This has been the most frustrating week in my life for a very long time."
 -- Australian soccer legend Paul Wade at Australia vs. Brazil in 1999 --



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

* Re: Still not solved: glibc-dbg and insane.bbclass
  2009-06-07 17:55 Still not solved: glibc-dbg and insane.bbclass Martin Dietze
  2009-06-07 18:21 ` Koen Kooi
@ 2009-06-07 23:28 ` Rolf Leggewie
  1 sibling, 0 replies; 6+ messages in thread
From: Rolf Leggewie @ 2009-06-07 23:28 UTC (permalink / raw)
  To: openembedded-devel

Martin Dietze wrote:
>  just as my build broke again wiht this issue:
> glibc-package.bbclass defines PACKAGES which always contains
> glibc-dbg, however the build is without debug symbols for build
> time reasons. 

Sounds a lot like Ihttp://bugs.openembedded.net/show_bug.cgi?id=5149




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

* Re: Still not solved: glibc-dbg and insane.bbclass
  2009-06-07 19:18   ` Martin Dietze
@ 2009-06-08  5:35     ` Koen Kooi
  2009-06-08  9:58       ` Martin Dietze
  0 siblings, 1 reply; 6+ messages in thread
From: Koen Kooi @ 2009-06-08  5:35 UTC (permalink / raw)
  To: openembedded-devel

On 07-06-09 21:18, Martin Dietze wrote:
> On Sun, June 07, 2009, Koen Kooi wrote:
>
>> What's exactly breaking? It's perfectly legal (and needed for depchains!)
>> for -dbg package to be empty.
>
> This is the QA error I am getting:
>
> | % cat log.qa_package
> | wrong architecture, glibc-dbg, /work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/ld-2.3.3.so
> | wrong architecture, glibc-dbg, /work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/libc-2.3.3.so
>
> And this is what the files look like:
>
> | % file  /var/src/OE/tmp/work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/ld-2.3.3.so
> | /var/src/OE/tmp/work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/ld-2.3.3.so: ELF 32-bit LSB no file type, no machine, invalid version (SYSV)
> | % file  /var/src/OE/tmp/work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/libc-2.3.3.so
> | /var/src/OE/tmp/work/mipsel-nylon-linux/glibc-2.3.3-r17/install/glibc-dbg/lib/.debug/libc-2.3.3.so: ELF 32-bit LSB no file type, no machine, invalid version (SYSV)
>
> The files are practicall empty (here libc-2.3.3.so):
>
> 7f 45 4c 46  01 01 01 00  00 00 00 00  00 00 00 00  .ELF............
> 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
> 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
> 00 00 00 00  01 00 00 00  03 00 00 00  00 00 00 00  ................
> 00 00 00 00  00 00 00 00  0b 00 00 00  00 00 00 00  ................
> 00 00 00 00  01 00 00 00  00 00 00 00               ............
>
> For whatever reason the build creates those files in .debug
> even though the build is performed without debug code.

Ahh, it creates empty .debug/foo.so files. In that case do:

# The files are empty except for the elf header
INSANE_SKIP_glibc-dbg = True

In the offending glibc recipe

regards,

Koen




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

* Re: Still not solved: glibc-dbg and insane.bbclass
  2009-06-08  5:35     ` Koen Kooi
@ 2009-06-08  9:58       ` Martin Dietze
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Dietze @ 2009-06-08  9:58 UTC (permalink / raw)
  To: openembedded-devel

On Mon, June 08, 2009, Koen Kooi wrote:

> INSANE_SKIP_glibc-dbg = True
>
> In the offending glibc recipe

I modified glibc-package.bbclass as you proposed, this is the diff:

diff --git a/recipes/glibc/glibc-package.bbclass b/recipes/glibc/glibc-package.bbclass
index 793401f..2bf08ce 100644
--- a/recipes/glibc/glibc-package.bbclass
+++ b/recipes/glibc/glibc-package.bbclass
@@ -32,6 +32,8 @@ USE_LDCONFIG ?= "1"
 PACKAGES = "glibc-dbg glibc catchsegv sln nscd ldd localedef glibc-utils glibc-dev glibc-doc glibc-locale libsegfault glibc-extra-nss glibc-thread-db glibc-pcprofile"
 PACKAGES_DYNAMIC = "glibc-gconv-* glibc-charmap-* glibc-localedata-* locale-base-* glibc-binary-localedata-*"

+INSANE_SKIP_glibc-dbg = True
+
 libc_baselibs = "${base_libdir}/libcrypt*.so.* ${base_libdir}/libcrypt-*.so ${base_libdir}/libc*.so.* ${base_libdir}/libc-*.so ${base_libdir}/libm*.so.* ${base_libdir}/libm-*.so ${base_libdir}/ld*.so.* ${base_libdir}/ld-*.so ${base_libdir}/lib

 FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${datadir}/zoneinfo ${@base_conditional('USE_LDCONFIG', '1', '/sbin/ldconfig', '', d)}"


The code works well, and if nobody objects, I may commit it later today?

Cheers,

M'bert

-- 
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+= 



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

end of thread, other threads:[~2009-06-08 10:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-07 17:55 Still not solved: glibc-dbg and insane.bbclass Martin Dietze
2009-06-07 18:21 ` Koen Kooi
2009-06-07 19:18   ` Martin Dietze
2009-06-08  5:35     ` Koen Kooi
2009-06-08  9:58       ` Martin Dietze
2009-06-07 23:28 ` Rolf Leggewie

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