Skip to contentSkip to conversation

problem to resolve QA issue about .debug directory

linux-omap-psp do_package Christophe TERRIEN 1 participant 2 messages May 26, 2011 – Jun 15, 2011

lore
Share & tools
lore
#0 lore raw

[linux-omap-psp do_package] problem to resolve QA issue about .debug directory

Hello,

I'm trying to build an Angström distribution for beagleboard with the last release of open embedded (tag release-2011.03). I'm blocked on the task do_package of package linux-omap-psp.

I have the folowing warnings like :
WARNING: /media/SW_Preload/cterrien_work/OE/tmp_release-2011.03/work/ beagleboard-angstrom-linux-gnueabi/ linux-omap-psp-2.6.32-r100+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/ package/lib/modules/2.6.32/kernel/sound/core/seq/.debug/snd-seq.ko may be corrupt; an unterminated string was found at the end of section __ksymtab_strings

And more important I have the following errors :
ERROR: QA Issue with kernel-module-mailbox-mach: non debug package contains .debug directory: kernel-module-mailbox-mach path /work/ beagleboard-angstrom-linux-gnueabi/ linux-omap-psp-2.6.32-r100+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/ packages-split/kernel-module-mailbox-mach/lib/modules/2.6.32/kernel/ arch/arm/mach-omap2/.debug/mailbox_mach.ko

All errors concerns kernel-module-x packages.

I put here information about the build Configuration:
BB_VERSION = "1.10.2"
METADATA_BRANCH = "release-2011.03"
METADATA_REVISION = "8c6a371"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "beagleboard"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2010.7-test-20110525"
TARGET_FPU        = "hard"

the distro used is angstrom-2008.1
I wish to compile the target distribution : beagleboard-demo-image.

Please could you give me what to do in order to pass this step can continue the compilation of the distribution ?
I am a beginner in openembedded. In your solution, if you could indicate me what file to change or patch to apply it will help me.

PS : 2 similar posts but I have not found a successful solution :
http://comments.gmane.org/gmane.linux.distributions.gumstix.general/51803
http://comments.gmane.org/gmane.comp.handhelds.openembedded/14848

#1 lore raw
Quoted 47 lines · Christophe TERRIEN <c.terrien <at> yahoo.fr> writes:

[linux-omap-psp do_package] problem to resolve QA issue about .debug directory

Hello,

I'm trying to build an Angström distribution for beagleboard with the last release of open embedded (tag release-2011.03). I'm blocked on the task do_package of package linux-omap-psp.

I have the folowing warnings like :
WARNING: /media/SW_Preload/cterrien_work/OE/tmp_release-2011.03/work/ beagleboard-angstrom-linux-gnueabi/ linux-omap-psp-2.6.32-r100+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/ package/lib/modules/2.6.32/kernel/sound/core/seq/.debug/snd-seq.ko may be corrupt; an unterminated string was found at the end of section __ksymtab_strings

And more important I have the following errors :
ERROR: QA Issue with kernel-module-mailbox-mach: non debug package contains .debug directory: kernel-module-mailbox-mach path /work/ beagleboard-angstrom-linux-gnueabi/ linux-omap-psp-2.6.32-r100+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/ packages-split/kernel-module-mailbox-mach/lib/modules/2.6.32/kernel/ arch/arm/mach-omap2/.debug/mailbox_mach.ko

All errors concerns kernel-module-x packages.

I put here information about the build Configuration:
BB_VERSION = "1.10.2"
METADATA_BRANCH = "release-2011.03"
METADATA_REVISION = "8c6a371"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "beagleboard"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2010.7-test-20110525"
TARGET_FPU        = "hard"

the distro used is angstrom-2008.1
I wish to compile the target distribution : beagleboard-demo-image.

Please could you give me what to do in order to pass this step can continue the compilation of the distribution ?
I am a beginner in openembedded. In your solution, if you could indicate me what file to change or patch to apply it will help me.

Quoted 9 lines

PS : 2 similar posts but I have not found a successful solution :
http://comments.gmane.org/gmane.linux.distributions.gumstix.general/51803
http://comments.gmane.org/gmane.comp.handhelds.openembedded/14848

_______________________________________________
Openembedded-devel mailing list
Openembedded-devel <at> lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

After some days to work on this error, a solution has been found. This error comes from a recent changed made by Chris Larson in $OE_HOME/openembedded/classes/insane.bbclass the 23rd February 2011 (See http://comments.gmane.org/gmane.comp.handhelds.openembedded/30331).
A workaround consists in not performing the check package_qa_check_dbg. For that, delete it from the setting of the variable checks. As it is an openembedded file, no patch can be applied on. So make changes directly in the insane.bbclass file.
The diff of these changes is:

insane.bbclass +1 -2
diff -Naur old/insane.bbclass new/insane.bbclass 
@@ -439,8 +439,7 @@ 
 
     checks = [package_qa_check_rpath, package_qa_check_dev, 
               package_qa_check_perm, package_qa_check_arch, 
-              package_qa_check_desktop, package_qa_hash_style, 
-              package_qa_check_dbg] 
+              package_qa_check_desktop, package_qa_hash_style] 
     walk_sane = True 
     rdepends_sane = True 
     for package in packages.split():

Christophe TERRIEN
Embedded softare engineer
Creative Ingenierie from Rennes (France)