Bug 7121

Summary: Rebuild failure "| make[1]: *** No rule to make target `clean'. Stop."
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: kernelAssignee: Bruce Ashfield <bruce.ashfield>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bruce.ashfield, tom.zanussi
Version: 1.7   
Target Milestone: 1.8   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2015-01-07 17:30:05 UTC
Doing a rebuild with master is currently resulting in these failures:

ERROR: Function failed: do_configure (log file is located at /data/poky-master/tmp/work/nuc-poky-linux/lttng-modules/2.5.2-r0/temp/log.do_configure.9043)
ERROR: Logfile of failure stored in: /data/poky-master/tmp/work/nuc-poky-linux/lttng-modules/2.5.2-r0/temp/log.do_configure.9043
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| make -C /data/poky-master/tmp/sysroots/nuc/usr/src/kernel M=/data/poky-master/tmp/work/nuc-poky-linux/lttng-modules/2.5.2-r0/git clean
| make[1]: Entering directory `/data/poky-master/tmp/sysroots/nuc/usr/src/kernel'
| make[1]: *** No rule to make target `clean'.  Stop.
| make[1]: Leaving directory `/data/poky-master/tmp/sysroots/nuc/usr/src/kernel'
| make: *** [clean] Error 2
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /data/poky-master/tmp/work/nuc-poky-linux/lttng-modules/2.5.2-r0/temp/log.do_configure.9043)
ERROR: Task 323 (/home/ross/Yocto/poky/meta/recipes-kernel/lttng/lttng-modules_2.5.2.bb, do_configure) failed with exit code '1'
ERROR: Function failed: do_make_scripts (log file is located at /data/poky-master/tmp/work/nuc-poky-linux/lttng-modules/2.5.2-r0/temp/log.do_make_scripts.9042)
ERROR: Logfile of failure stored in: /data/poky-master/tmp/work/nuc-poky-linux/lttng-modules/2.5.2-r0/temp/log.do_make_scripts.9042
Log data follows:
| DEBUG: Executing shell function do_make_scripts
| make: Entering directory `/data/poky-master/tmp/sysroots/nuc/usr/src/kernel'
| make: *** No rule to make target `scripts'.  Stop.
| make: Leaving directory `/data/poky-master/tmp/sysroots/nuc/usr/src/kernel'
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_make_scripts (log file is located at /data/poky-master/tmp/work/nuc-poky-linux/lttng-modules/2.5.2-r0/temp/log.do_make_scripts.9042)
ERROR: Task 324 (/home/ross/Yocto/poky/meta/recipes-kernel/lttng/lttng-modules_2.5.2.bb, do_make_scripts) failed with exit code '1'

$ ls -l /data/poky-master/tmp/sysroots/nuc/usr/src/kernel
total 3972
drwxr-xr-x 3 ross ross    4096 Jan  6 21:11 arch
drwxr-xr-x 4 ross ross    4096 Jan  6 21:11 include
-rw-r--r-- 3 ross ross      22 Jan  6 21:11 kernel-abiversion
-rw-r--r-- 3 ross ross  631087 Jan  6 21:11 Module.symvers
-rw-r--r-- 3 ross ross 3418911 Jan  6 21:11 System.map-3.17.1-yocto-standard
Comment 1 Bruce Ashfield 2015-01-07 18:03:07 UTC
This will be addressed by the continued split of source and build in the shared
work directories.

In the meantime, can you paste the commands that trigger this ? i.e. when you
say "rebuild", what exactly are the steps ?
Comment 2 Ross Burton 2015-01-07 22:55:57 UTC
"bitbake world", and something had changed that caused a rebuild of the tools.
Comment 3 Bruce Ashfield 2015-01-20 16:09:11 UTC
This has been fixed with the move of the kernel to work-shared, and the kernel-source/kernel-build-artifacts split.