<div><div dir="auto"><br></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019 at 12:24 AM Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">gcc&#39;s makefile can move files, replacing with the contents &quot;timestamp&quot;. This<br>
corrupts the headers and breaks things like the gcc testsuite.<br>
<br>
Add in a fix to ensure the headers are not corrupted through their hardlink copies.<br>
<br>
Signed-off-by: Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;<br>
---<br>
 meta/recipes-devtools/gcc/gcc-cross.inc | 3 +++<br>
 1 file changed, 3 insertions(+)<br>
<br>
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc<br>
index e417b898734..95af6d89a9d 100644<br>
--- a/meta/recipes-devtools/gcc/gcc-cross.inc<br>
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc<br>
@@ -212,6 +212,9 @@ do_gcc_stash_builddir[cleandirs] = &quot;${BUILDDIRSTASH}&quot;<br>
 do_gcc_stash_builddir () {<br>
        dest=${BUILDDIRSTASH}<br>
        hardlinkdir . $dest<br>
+       # Makefile does move-if-change which can end up with &#39;timestamp&#39; as file contents so break links to those files<br>
+       rm $dest/gcc/include/*.h<br>
+       cp gcc/include/*.h $dest/gcc/include/<br>
 }</blockquote><div dir="auto"><br></div><div dir="auto">I think we moved them outside gcc dir isn’t it </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
 addtask do_gcc_stash_builddir after do_compile before do_install<br>
 SSTATETASKS += &quot;do_gcc_stash_builddir&quot;<br>
-- <br>
2.20.1<br>
<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div></div>