<div dir="ltr"><div><div><div><div><div>Got the following errors when I attempt make in target rp2:<br><br clear="all">patching file Makefile<br>Hunk #1 succeeded at 378 (offset 12 lines).<br>Hunk #2 FAILED at 667.<br>1 out of 2 hunks FAILED -- rejects in file Makefile<br>Patch kbuild-clang-detect.patch does not apply (enforce with -f)<br>make: *** [state/kernel-patch] Error 1<br><br>Even after getting the latest git pull from llvmlinux I still got the errors (as shown in git log below, which I supposed are to solve the above problem):<br><br><br>commit 2a8813e233c63684a630e765c70b2d550c2b2884<br>Author: Vinicius Tinti &lt;<a href="mailto:viniciustinti@gmail.com">viniciustinti@gmail.com</a>&gt;<br>Date:   Tue Aug 11 19:36:01 2015 -0300<br><br>    rpi2: update to kernel 4.2<br>    <br>    Signed-off-by: Vinicius Tinti &lt;<a href="mailto:viniciustinti@gmail.com">viniciustinti@gmail.com</a>&gt;<br><br>commit 6c6f5a473ce14a3766a906c7f3a15ae3df78ed6e<br>Author: Vinicius Tinti &lt;<a href="mailto:viniciustinti@gmail.com">viniciustinti@gmail.com</a>&gt;<br>Date:   Tue Aug 11 18:42:16 2015 -0300<br><br>    rpi: update to kernel 4.2<br>    <br>    Signed-off-by: Vinicius Tinti &lt;<a href="mailto:viniciustinti@gmail.com">viniciustinti@gmail.com</a>&gt;<br><br><br></div>Can someone provide the instruction on how to properly restart the compilation?<br><br></div>I have tried the following in succession:<br><br>cd toolchain/clang &amp;&amp; make clean &amp;&amp; make <br></div><br></div>cd targets/rpi2 &amp;&amp; make clean &amp;&amp; make<br><br></div>But thereafter it still gave me errors.<br><div><br><br><div><div><br><div><div><br>-- <br><div class="gmail_signature">Regards,<br>Peter Teoh</div>
</div></div></div></div></div></div>