<div dir="ltr">When I do : cd targets/vexpress/ && make, the kernel can be successfully compiled by clang. <div>HOSTCC = llvmlinux/toolchain/clang/head/install/bin/clang</div><div>CC = llvmlinux/toolchain/clang/head/install/bin/clang</div><div><br></div><div>But when I do : cd targets/vexpress/ && make BITCODE=1, there are errors.</div><div>HOSTCC = llvmlinux/toolchain/clang/head/install/bin/clang<br></div><div>CC = <span>llvmlinux/arch/a</span><span>ll/bin/clang-emit-bc.sh</span></div>
<div><br></div><div>I guess there is some problem with "clang-emit-bc.sh". Any suggestions?</div><div><br></div><div>Thank you.</div>
</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 26, 2015 at 4:24 AM, Jan-Simon Moeller <span dir="ltr"><<a href="mailto:jsmoeller@linuxfoundation.org" target="_blank">jsmoeller@linuxfoundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Am Mittwoch, 25. November 2015, 20:00:29 schrieb Kai Wang:<br>
> Hi everyone,<br>
><br>
> I'm trying to compile the kernel with the automated build framework.<br>
> In order to run some analysis on the kernel, I need to generate the .bc<br>
> files.<br>
<br>
</span>There is a flag that produces .bc files alongside the normal .o files.<br>
<br>
cd targets/x86_64/ && make BITCODE=1<br>
<span class="HOEnZb"><font color="#888888"><br>
JS<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Regards,<div>Kai</div></div></div>
</div>