Bug 4145 - linux-yocto-custom: architecture mismatch errors building custom kernels
Summary: linux-yocto-custom: architecture mismatch errors building custom kernels
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.4 M6
Assignee: Bruce Ashfield
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-03-28 20:31 UTC by Tom Zanussi
Modified: 2013-04-15 17:12 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
layer that uses 3.4 custom kernel (25.04 KB, application/x-gzip)
2013-03-28 20:31 UTC, Tom Zanussi
no flags Details
do_package output with QA errors (242.24 KB, application/octet-stream)
2013-03-28 20:34 UTC, Tom Zanussi
no flags Details
custom BSP layer with fixed defconfig (25.07 KB, application/x-gzip)
2013-03-30 04:18 UTC, Tom Zanussi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Zanussi 2013-03-28 20:31:57 UTC
Created attachment 1139 [details]
layer that uses 3.4 custom kernel

A kernel build as of poky/master commit cbdbc54e5743944fd24f497b46b3c54ad966d8eb fails with the following errors in do_package for a 3.4 (and 3.8, not included here) custom kernel:

ERROR: QA Issue: Architecture did not match (3 to 62) on /work/3.4_custom_qemux86-poky-linux/linux-yocto-custom/3.4.21+gitAUTOINC+a937536b868b8369b98967929045f1df54234323-r0/packages-split/kernel-vmlinux/boot/vmlinux-3.9.0-rc3-yocto-standard
NOTE: Checking Package: kernel-image
NOTE: Checking Package: kernel-dev
NOTE: Checking Package: kernel-modules
NOTE: Checking Package: kernel-module-ansi-cprng
NOTE: i586-poky-linux-objdump -p /home/trz/yocto/yocto-bsp-dev/build/tmp/work/3.4_custom_qemux86-poky-linux/linux-yocto-custom/3.4.21+gitAUTOINC+a937536b868b8369b98967929045f1df54234323-r0/packages-split/kernel-module-ansi-cprng/lib/modules/3.9.0-rc3-yocto-standard/kernel/crypto/ansi_cprng.ko
ERROR: QA Issue: Architecture did not match (3 to 62) on /work/3.4_custom_qemux86-poky-linux/linux-yocto-custom/3.4.21+gitAUTOINC+a937536b868b8369b98967929045f1df54234323-r0/packages-split/kernel-module-ansi-cprng/lib/modules/3.9.0-rc3-yocto-standard/kernel/crypto/ansi_cprng.ko
NOTE: Checking Package: kernel-module-anubis
NOTE: i586-poky-linux-objdump -p /home/trz/yocto/yocto-bsp-dev/build/tmp/work/3.4_custom_qemux86-poky-linux/linux-yocto-custom/3.4.21+gitAUTOINC+a937536b868b8369b98967929045f1df54234323-r0/packages-split/kernel-module-anubis/lib/modules/3.9.0-rc3-yocto-standard/kernel/crypto/anubis.ko
ERROR: QA Issue: Architecture did not match (3 to 62) on /work/3.4_custom_qemux86-poky-linux/linux-yocto-custom/3.4.21+gitAUTOINC+a937536b868b8369b98967929045f1df54234323-r0/packages-split/kernel-module-anubis/lib/modules/3.9.0-rc3-yocto-standard/kernel/crypto/anubis.ko
NOTE: Checking Package: kernel-module-blowfish-common
NOTE: i586-poky-linux-objdump -p /home/trz/yocto/yocto-bsp-dev/build/tmp/work/3.4_custom_qemux86-poky-linux/linux-yocto-custom/3.4.21+gitAUTOINC+a937536b868b8369b98967929045f1df54234323-r0/packages-split/kernel-module-blowfish-common/lib/modules/3.9.0-rc3-yocto-standard/kernel/crypto/blowfish_common.ko
ERROR: QA Issue: Architecture did not match (3 to 62) on /work/3.4_custom_qemux86-poky-linux/linux-yocto-custom/3.4.21+gitAUTOINC+a937536b868b8369b98967929045f1df54234323-r0/packages-split/kernel-module-blowfish-common/lib/modules/3.9.0-rc3-yocto-standard/kernel/crypto/blowfish_common.ko
NOTE: Checking Package: kernel-module-blowfish-generic
.
.
.

Attached is the full do_package output along with the qemux86 BSP layer used.

The same layer used with danny (poky/master commit 60a26d24964832ce390b4c1f0d134b744dc9201b doesn't have this problem)
Comment 1 Tom Zanussi 2013-03-28 20:34:33 UTC
Created attachment 1140 [details]
do_package output with QA errors
Comment 2 Tom Zanussi 2013-03-30 04:17:25 UTC
This turns out to have been a problem with the defconfig, but after fixing that, there's still a problem in that KBRANCH seems to now be ignored with linux-yocto-custom, where before it was used to select a non-master branch.  It seems to start with this commit:

commit 61001aa702441c17cab444c281953b2945c34216
Author: Bruce Ashfield <bruce.ashfield@windriver.com>
Date:   Mon Jan 28 13:07:06 2013 -0500

    kernel-yocto: respect SRC_URI modified branch selection

Moving back to the commit just before that doesn't have this problem.  Below are the results from building the kernel using the poky commits listed and what was seen under /linux in the build directory as far as checked out branches go.

Attaching the updated BSP layer that was used...

commit cbdbc54e5743944fd24f497b46b3c54ad966d8eb
Author: Emilia Ciobanu <emilia.maria.silvia.ciobanu@intel.com>
Date:   Wed Mar 27 15:13:25 2013 +0200

    package_regex.inc: Added regex for elfutils

[trz@empanada linux]$ git branch
  linux-2.6.11.y
  linux-2.6.12.y
  linux-2.6.13.y
  linux-2.6.14.y
  linux-2.6.15.y
  linux-2.6.16.y
  linux-2.6.17.y
  linux-2.6.18.y
  linux-2.6.19.y
  linux-2.6.20.y
  linux-2.6.21.y
  linux-2.6.22.y
  linux-2.6.23.y
  linux-2.6.24.y
  linux-2.6.25.y
  linux-2.6.26.y
  linux-2.6.27.y
  linux-2.6.28.y
  linux-2.6.29.y
  linux-2.6.30.y
  linux-2.6.31.y
  linux-2.6.32.y
  linux-2.6.33.y
  linux-2.6.34.y
  linux-2.6.35.y
  linux-2.6.36.y
  linux-2.6.37.y
  linux-2.6.38.y
  linux-2.6.39.y
  linux-3.0.y
  linux-3.1.y
  linux-3.2.y
  linux-3.3.y
  linux-3.4.y
  linux-3.5.y
  linux-3.6.y
  linux-3.7.y
  linux-3.8.y
* master


commit 61001aa702441c17cab444c281953b2945c34216
Author: Bruce Ashfield <bruce.ashfield@windriver.com>
Date:   Mon Jan 28 13:07:06 2013 -0500

    kernel-yocto: respect SRC_URI modified branch selection


[trz@empanada linux]$ git branch
  linux-2.6.11.y
  linux-2.6.12.y
  linux-2.6.13.y
  linux-2.6.14.y
  linux-2.6.15.y
  linux-2.6.16.y
  linux-2.6.17.y
  linux-2.6.18.y
  linux-2.6.19.y
  linux-2.6.20.y
  linux-2.6.21.y
  linux-2.6.22.y
  linux-2.6.23.y
  linux-2.6.24.y
  linux-2.6.25.y
  linux-2.6.26.y
  linux-2.6.27.y
  linux-2.6.28.y
  linux-2.6.29.y
  linux-2.6.30.y
  linux-2.6.31.y
  linux-2.6.32.y
  linux-2.6.33.y
  linux-2.6.34.y
  linux-2.6.35.y
  linux-2.6.36.y
  linux-2.6.37.y
  linux-2.6.38.y
  linux-2.6.39.y
  linux-3.0.y
  linux-3.1.y
  linux-3.2.y
  linux-3.3.y
  linux-3.4.y
  linux-3.5.y
  linux-3.6.y
  linux-3.7.y
  linux-3.8.y
* master


commit 2af25458fcabd62c96574c9ff2eed033cf09001e
Author: Saul Wold <sgw@linux.intel.com>
Date:   Wed Feb 27 17:32:24 2013 -0800

    iproute2: don't use the kernel header tree


[trz@empanada linux]$ git branch
  linux-2.6.11.y
  linux-2.6.12.y
  linux-2.6.13.y
  linux-2.6.14.y
  linux-2.6.15.y
  linux-2.6.16.y
  linux-2.6.17.y
  linux-2.6.18.y
  linux-2.6.19.y
  linux-2.6.20.y
  linux-2.6.21.y
  linux-2.6.22.y
  linux-2.6.23.y
  linux-2.6.24.y
  linux-2.6.25.y
  linux-2.6.26.y
  linux-2.6.27.y
  linux-2.6.28.y
  linux-2.6.29.y
  linux-2.6.30.y
  linux-2.6.31.y
  linux-2.6.32.y
  linux-2.6.33.y
  linux-2.6.34.y
  linux-2.6.35.y
  linux-2.6.36.y
  linux-2.6.37.y
  linux-2.6.38.y
  linux-2.6.39.y
  linux-3.0.y
  linux-3.1.y
  linux-3.2.y
  linux-3.3.y
* linux-3.4.y
  linux-3.5.y
  linux-3.6.y
  linux-3.7.y
  linux-3.8.y
  master
Comment 3 Tom Zanussi 2013-03-30 04:18:29 UTC
Created attachment 1142 [details]
custom BSP layer with fixed defconfig
Comment 4 Bruce Ashfield 2013-03-30 04:19:14 UTC
I'll take the bug, since it looks like branch handling is causing
the pain.
Comment 5 Bruce Ashfield 2013-03-30 05:14:33 UTC
Fixed here. I've made KBRANCH the fallback, verus "master" if no branch
is supplied in the SRC_URI.

Once the custom BSP builds here, I'll send the changes.