<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019 at 7:23 AM &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">On Fri, 2019-09-06 at 07:15 -0700, Khem Raj wrote:<br>
&gt; <br>
&gt; <br>
&gt; On Fri, Sep 6, 2019 at 12:24 AM Richard Purdie &lt;<br>
&gt; <a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt; wrote:<br>
&gt; &gt; gcc&#39;s makefile can move files, replacing with the contents<br>
&gt; &gt; &quot;timestamp&quot;. This<br>
&gt; &gt; corrupts the headers and breaks things like the gcc testsuite.<br>
&gt; &gt; <br>
&gt; &gt; Add in a fix to ensure the headers are not corrupted through their<br>
&gt; &gt; hardlink copies.<br>
&gt; &gt; <br>
&gt; &gt; Signed-off-by: Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;<br>
&gt; &gt; ---<br>
&gt; &gt;  meta/recipes-devtools/gcc/gcc-cross.inc | 3 +++<br>
&gt; &gt;  1 file changed, 3 insertions(+)<br>
&gt; &gt; <br>
&gt; &gt; diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc<br>
&gt; &gt; b/meta/recipes-devtools/gcc/gcc-cross.inc<br>
&gt; &gt; index e417b898734..95af6d89a9d 100644<br>
&gt; &gt; --- a/meta/recipes-devtools/gcc/gcc-cross.inc<br>
&gt; &gt; +++ b/meta/recipes-devtools/gcc/gcc-cross.inc<br>
&gt; &gt; @@ -212,6 +212,9 @@ do_gcc_stash_builddir[cleandirs] =<br>
&gt; &gt; &quot;${BUILDDIRSTASH}&quot;<br>
&gt; &gt;  do_gcc_stash_builddir () {<br>
&gt; &gt;         dest=${BUILDDIRSTASH}<br>
&gt; &gt;         hardlinkdir . $dest<br>
&gt; &gt; +       # Makefile does move-if-change which can end up with<br>
&gt; &gt; &#39;timestamp&#39; as file contents so break links to those files<br>
&gt; &gt; +       rm $dest/gcc/include/*.h<br>
&gt; &gt; +       cp gcc/include/*.h $dest/gcc/include/<br>
&gt; &gt;  }<br>
&gt; <br>
&gt; I think we moved them outside gcc dir isn’t it <br>
<br>
Not sure I follow? I think the patch is correct?<br>
</blockquote><div dir="auto"><br></div><div dir="auto">Yeah I think patch is fine since I was wondering about files from gcc-runtime which got move </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Cheers,<br>
<br>
Richard<br>
<br>
</blockquote></div></div>