Patchwork [1/7] libnewt: fix recompile error

login
register
mail settings
Submitter Robert Yang
Date Aug. 7, 2014, 1:40 p.m.
Message ID <b8ae4347d122cf08af152190ee0c0897e29325f5.1407418718.git.liezhi.yang@windriver.com>
Download mbox | patch
Permalink /patch/77453/
State Accepted
Commit 020f816da4ddfb9d1052a6156e44b20213981927
Headers show

Comments

Robert Yang - Aug. 7, 2014, 1:40 p.m.
Fixed:
NOTE: make -j 32
make: *** No rule to make target `/path/to/sysroot/4.9.0/include/stddef.h', needed by `test.o'.  Stop.

This happens when upgrade gcc from 4.9.0 to 4.9.1, and the .depend isn't
regenerated when recompile, the content of the .depend are:

[snip]
test.o: /path/to/sysroot/4.9.0/include/stddef.h
[snip]

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

Remove .depend will fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/recipes-extended/newt/libnewt_0.52.17.bb |    5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/meta/recipes-extended/newt/libnewt_0.52.17.bb b/meta/recipes-extended/newt/libnewt_0.52.17.bb
index 09b017e..28d5cf1 100644
--- a/meta/recipes-extended/newt/libnewt_0.52.17.bb
+++ b/meta/recipes-extended/newt/libnewt_0.52.17.bb
@@ -46,4 +46,9 @@  do_configure_prepend() {
     sh autogen.sh
 }
 
+do_compile_prepend() {
+    # Make sure the recompile is OK
+    rm -f ${B}/.depend
+}
+
 FILES_whiptail = "${bindir}/whiptail"