[llvmlinux] "make BITCODE=1" doesn't work

Kai Wang wangkai.cas at gmail.com
Wed Dec 9 18:59:50 UTC 2015

Hi all,

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

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

HOSTCC  scripts/dtc/dtc.o

  HOSTCC  scripts/dtc/flattree.o

  HOSTCC  scripts/dtc/fstree.o

  Generating include/generated/mach-types.h

  HOSTCC  scripts/dtc/data.o

  HOSTCC  scripts/dtc/livetree.o

  CC      kernel/bounds.s

make[3]: *** [kernel/bounds.s] Error 1

make[2]: *** [prepare0] Error 2

make[2]: *** Waiting for unfinished jobs....

  CC      scripts/mod/empty.o

  HOSTCC  scripts/dtc/treesource.o

  HOSTCC  scripts/dtc/srcpos.o

make[4]: *** [scripts/mod/empty.o] Error 1

make[3]: *** [scripts/mod] Error 2

make[3]: *** Waiting for unfinished jobs....

Any suggestions?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20151209/f35d3a55/attachment.html>

More information about the LLVMLinux mailing list