[oe] Still not solved: glibc-dbg and insane.bbclass

Koen Kooi k.kooi at student.utwente.nl
Mon Jun 8 05:35:07 UTC 2009


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





More information about the Openembedded-devel mailing list