[llvmlinux] Generating linux kernel .bc files

Kai Wang wangkai.cas at gmail.com
Thu Nov 26 17:16:16 UTC 2015


When I do : cd targets/vexpress/ && make, the kernel can be successfully
compiled by clang.
HOSTCC = llvmlinux/toolchain/clang/head/install/bin/clang
CC = llvmlinux/toolchain/clang/head/install/bin/clang

But when I do : cd targets/vexpress/ && make BITCODE=1, there are errors.
HOSTCC = llvmlinux/toolchain/clang/head/install/bin/clang
CC = llvmlinux/arch/all/bin/clang-emit-bc.sh

I guess there is some problem with "clang-emit-bc.sh". Any suggestions?

Thank you.

On Thu, Nov 26, 2015 at 4:24 AM, Jan-Simon Moeller <
jsmoeller at linuxfoundation.org> wrote:

> Am Mittwoch, 25. November 2015, 20:00:29 schrieb Kai Wang:
> > Hi everyone,
> >
> > I'm trying to compile the kernel with the automated build framework.
> > In order to run some analysis on the kernel, I need to generate the .bc
> > files.
>
> There is a flag that produces .bc files alongside the normal .o files.
>
> cd targets/x86_64/ && make BITCODE=1
>
> JS
>
>
>


-- 
Regards,
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20151126/3b81f93a/attachment.html>


More information about the LLVMLinux mailing list