Bug 10245

Summary: qemu 2.7.0 target recipe fails to build
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: coreAssignee: Jianxun Zhang <jianxun.zhang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: High CC: jianxun.zhang, meta.mr.watcher, meta.watcher, sgw
Version: 2.2   
Target Milestone: 2.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
[WIP] qemu: fix: cp command cannot find tests/Makeflie none

Description Richard Purdie 2016-09-08 17:25:07 UTC
The qemu 2.7.0 recipe in master-next fails with:

ERROR: qemu-2.7.0-r1 do_install_ptest_base: Function failed: do_install_ptest_base (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-no-x11/build/build/tmp/work/core2-64-poky-linux/qemu/2.7.0-r1/temp/log.do_install_ptest_base.51124)
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-no-x11/build/build/tmp/work/core2-64-poky-linux/qemu/2.7.0-r1/temp/log.do_install_ptest_base.51124
Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_install_ptest_base
| cp: cannot stat '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-no-x11/build/build/tmp/work/core2-64-poky-linux/qemu/2.7.0-r1/qemu-2.7.0/tests/Makefile': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install_ptest_base (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-no-x11/build/build/tmp/work/core2-64-poky-linux/qemu/2.7.0-r1/temp/log.do_install_ptest_base.51124)
NOTE: recipe qemu-2.7.0-r1: task do_install_ptest_base: Failed

http://autobuilder.yocto.io:8010/builders/nightly-no-x11/builds/33/steps/BuildImages/logs/stdio
http://autobuilder.yocto.io:8010/builders/nightly-world/builds/27
http://autobuilder.yocto.io:8010/builders/nightly-world-lsb/builds/27
Comment 1 Jianxun Zhang 2016-09-08 18:55:26 UTC
It looks like     Commit 46e7b70699d8bf4db08c8bb5111974318dd5416d in qemu project renamed tests/Makefile to tests/Makefile.include, we apply the same change in recipe accordingly to fix this issue.

I upload a patch that makes qemu build happy, but need some review and test to make sure it is a right fix.
Comment 2 Jianxun Zhang 2016-09-08 18:56:17 UTC
Created attachment 3407 [details]
[WIP] qemu: fix: cp command cannot find tests/Makeflie
Comment 3 Saul Wold 2016-09-08 19:07:22 UTC
I just verified that the attached patch fixes the issue with install_ptest_base.