Fixed:
make: *** No rule to make target `/path/to/sysroot/4.9.0/include/stddef.h', 
needed by `parse-events.o'.  Stop.
make: *** Waiting for unfinished jobs....
ERROR: oe_runmake failed

This happens when upgrade gcc from 4.9.0 to 4.9.1, and the
.parse-events.d isn't regenerated when recompile, the content of it are:

[snip]
parse-events.o: /path/to/sysroot/4.9.0/include/stddef.h
[snip]

And Makefile includes the .parse-events.d file if it exists, so there
would be errors when /path/to/sysroot/4.9.0/include/stddef.h doesn't
exist.

Remove .*.d (a few .d files, its Makefile uses this wildcard) will fix
the problem.

Signed-off-by: Robert Yang <liezhi.y...@windriver.com>
---
 meta/recipes-kernel/trace-cmd/trace-cmd_1.2.bb |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd_1.2.bb 
b/meta/recipes-kernel/trace-cmd/trace-cmd_1.2.bb
index 6f3319d..7f99dde 100644
--- a/meta/recipes-kernel/trace-cmd/trace-cmd_1.2.bb
+++ b/meta/recipes-kernel/trace-cmd/trace-cmd_1.2.bb
@@ -18,6 +18,11 @@ EXTRA_OEMAKE = "'prefix=${prefix}'"
 
 FILES_${PN}-dbg += "${datadir}/trace-cmd/plugins/.debug/"
 
+do_compile_prepend() {
+    # Make sure the recompile is OK
+    rm -f ${B}/.*.d
+}
+
 do_install() {
        oe_runmake prefix="${prefix}" DESTDIR="${D}" install
 }
-- 
1.7.9.5

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to