Skip to contentSkip to conversation

Still not solved: glibc-dbg and insane.bbclass

DISCUSSION Martin Dietze 3 participants 6 messages Jun 7, 2009 – Jun 8, 2009

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
----------- / 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.
#1 lore raw
Quoted 9 lines · Martin Dietze

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.

Quoted 4 lines

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

#2 lore raw
Quoted 2 lines · Koen Kooi

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

Signature · 4 lines
----------- / 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 --
#3 lore raw
Quoted 27 lines · Martin Dietze
Quoted 2 lines · Koen Kooi

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               ............
Quoted 2 lines

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

#4 lore raw
Quoted 3 lines · Koen Kooi

INSANE_SKIP_glibc-dbg = True

In the offending glibc recipe

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

recipes/glibc/glibc-package.bbclass +2 -0
index 793401f..2bf08ce 100644
@@ -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

Signature · 2 lines
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+= 
#5 lore raw
In reply to Martin Dietze
Quoted 4 lines · Martin Dietze

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