Bug 12039

Summary: mips packages corrupt oe-selftest
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: devtools / tool chainAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher
Version: 2.2   
Target Milestone: 2.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2017-09-04 16:56:17 UTC
$ MACHINE=qemux86-64oe-selftest -r runtime_test.TestImage.test_testimage_install

RESULTS - runtime_test.TestImage.test_testimage_install - Testcase 1644: PASSED

$ MACHINE=qemumips bitbake socat
$ MACHINE=qemux86-64 oe-selftest -r runtime_test.TestImage.test_testimage_install

RESULTS - runtime_test.TestImage.test_testimage_install - Testcase 1644: FAILED

$ MACHINE=qemumips bitbake socat -c clean
$ MACHINE=qemux86-64 oe-selftest -r runtime_test.TestImage.test_testimage_install

RESULTS - runtime_test.TestImage.test_testimage_install - Testcase 1644: PASSED

Excerpt from do_testimage log:

DEBUG: Executing python function do_testimage
NOTE: Executing '/media/build1/poky/build/tmp/work/qemux86_64-poky-linux/core-image-full-cmdline/1.0-r0/recipe-sysroot-native/usr/bin/createrepo_c --update -q /media/build1/p
oky/build/tmp/work/qemux86_64-poky-linux/core-image-full-cmdline/1.0-r0/oe-rootfs-repo' ...
NOTE: Added oe-repo repo from /media/build1/poky/build/tmp/work/qemux86_64-poky-linux/core-image-full-cmdline/1.0-r0/oe-rootfs-repo
oe-repo                                         298 MB/s | 8.7 MB     00:00    
Last metadata expiration check: 0:00:02 ago on Mon 04 Sep 2017 03:16:28 PM UTC.
Metadata cache created.

NOTE: Added oe-repo repo from /media/build1/poky/build/tmp/work/qemux86_64-poky-linux/core-image-full-cmdline/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:02 ago on Mon 04 Sep 2017 03:16:28 PM UTC.
rpm/core2_64/socat-1.7.3.2-r0.core2_64.rpm
rpm/i586/socat-1.7.3.2-r0.i586.rpm
rpm/mips32r2/socat-1.7.3.2-r0.mips32r2.rpm

NOTE: Extracted /media/build1/poky/build/tmp/work/qemux86_64-poky-linux/core-image-full-cmdline/1.0-r0/oe-rootfs-repo/rpm/mips32r2/socat-1.7.3.2-r0.mips32r2.rpm to /tmp/tmp4b
d0boda
Not using kvm for runqemu

i.e. its finding and using the mips package in an x86-64 image...