我已下载LLVM 3.6 + CFE + Compiler-RT。后编译,下面是生成的可执行文件列表:
-rwxrwxr-x 1 dipanjan dipanjan 51113672 Aug 4 15:25 arcmt-test
-rwxrwxr-x 1 dipanjan dipanjan 36545319 Aug 4 14:25 bugpoint
-rwxrwxr-x 1 dipanjan dipanjan 13710 Aug 4 15:25 c-arcmt-test
-rwxrwxr-x 1 dipanjan dipanjan 124687 Aug 4 15:25 c-index-test
-rwxrwxrwx 1 dipanjan dipanjan 0 Aug 4 15:02 clang-3.6
-rwxrwxr-x 1 dipanjan dipanjan 51741074 Aug 4 15:25 clang-check
-rwxrwxr-x 1 dipanjan dipanjan 3945674 Aug 4 15:23 clang-format
-rwxrwxr-x 1 dipanjan dipanjan 2776541 Aug 4 14:27 clang-tblgen
-rwxrwxr-x 1 dipanjan dipanjan 8809 Aug 4 14:18 count
-rwxrwxr-x 1 dipanjan dipanjan 5951029 Aug 4 15:02 diagtool
-rwxrwxr-x 1 dipanjan dipanjan 892952 Aug 4 14:18 FileCheck
-rwxrwxr-x 1 dipanjan dipanjan 66957023 Aug 4 14:22 llc
-rwxrwxr-x 1 dipanjan dipanjan 42129985 Aug 4 14:23 lli
-rwxrwxr-x 1 dipanjan dipanjan 384911 Aug 4 14:23 lli-child-target
-rwxrwxr-x 1 dipanjan dipanjan 16546687 Aug 4 14:22 llvm-ar
-rwxrwxr-x 1 dipanjan dipanjan 5769950 Aug 4 14:22 llvm-as
-rwxrwxr-x 1 dipanjan dipanjan 780247 Aug 4 14:25 llvm-bcanalyzer
-rwxrwxr-x 1 dipanjan dipanjan 467751 Aug 4 14:21 llvm-config
-rwxrwxr-x 1 dipanjan dipanjan 2608867 Aug 4 14:23 llvm-cov
-rwxrwxr-x 1 dipanjan dipanjan 48917700 Aug 4 14:26 llvm-c-test
-rwxrwxr-x 1 dipanjan dipanjan 5504873 Aug 4 14:23 llvm-diff
-rwxrwxr-x 1 dipanjan dipanjan 4831508 Aug 4 14:22 llvm-dis
-rwxrwxr-x 1 dipanjan dipanjan 1701984 Aug 4 14:24 llvm-dsymutil
-rwxrwxr-x 1 dipanjan dipanjan 2442042 Aug 4 14:24 llvm-dwarfdump
-rwxrwxr-x 1 dipanjan dipanjan 6439822 Aug 4 14:23 llvm-extract
-rwxrwxr-x 1 dipanjan dipanjan 6678768 Aug 4 14:23 llvm-link
-rwxr-x--- 1 dipanjan dipanjan 1704 Aug 4 13:36 llvm-lit
-rwxrwxr-x 1 dipanjan dipanjan 56954541 Aug 4 14:27 llvm-lto
-rwxrwxr-x 1 dipanjan dipanjan 14644360 Aug 4 14:22 llvm-mc
-rwxrwxr-x 1 dipanjan dipanjan 665654 Aug 4 14:25 llvm-mcmarkup
-rwxrwxr-x 1 dipanjan dipanjan 16587218 Aug 4 14:23 llvm-nm
-rwxrwxr-x 1 dipanjan dipanjan 20046537 Aug 4 14:24 llvm-objdump
-rwxrwxr-x 1 dipanjan dipanjan 36311 Aug 4 14:18 llvm-PerfectShuffle
-rwxrwxr-x 1 dipanjan dipanjan 2968803 Aug 4 14:23 llvm-profdata
lrwxrwxrwx 1 dipanjan dipanjan 7 Aug 4 14:22 llvm-ranlib -> llvm-ar
-rwxrwxr-x 1 dipanjan dipanjan 7230376 Aug 4 14:24 llvm-readobj
-rwxrwxr-x 1 dipanjan dipanjan 13489409 Aug 4 14:24 llvm-rtdyld
-rwxrwxr-x 1 dipanjan dipanjan 6594901 Aug 4 14:23 llvm-size
-rwxrwxr-x 1 dipanjan dipanjan 7009337 Aug 4 14:25 llvm-stress
-rwxrwxr-x 1 dipanjan dipanjan 7535042 Aug 4 14:25 llvm-symbolizer
-rwxrwxr-x 1 dipanjan dipanjan 7133647 Aug 4 13:38 llvm-tblgen
-rwxrwxr-x 1 dipanjan dipanjan 6788419 Aug 4 14:24 llvm-vtabledump
-rwxrwxr-x 1 dipanjan dipanjan 6458851 Aug 4 14:24 macho-dump
-rwxrwxr-x 1 dipanjan dipanjan 399734 Aug 4 14:18 not
-rwxrwxr-x 1 dipanjan dipanjan 7013768 Aug 4 14:26 obj2yaml
-rwxrwxr-x 1 dipanjan dipanjan 75706398 Aug 4 14:22 opt
-rwxrwxr-x 1 dipanjan dipanjan 6443534 Aug 4 14:25 verify-uselistorder
-rwxrwxr-x 1 dipanjan dipanjan 1633631 Aug 4 14:26 yaml2obj
-rwxrwxr-x 1 dipanjan dipanjan 830293 Aug 4 14:18 yaml-bench
我的问题是:文件llvm-3.6.0/build/bin/clang-3.6
是一个零字节文件。如果clang
偶数,我该如何使用llvm-3.x
答案 0 :(得分:0)
你的版本出了问题。它不应该是0字节。您似乎已经进行了调试构建,因此clang
二进制文件应该是巨大的(数百MB)。也许你的构建内存不足?
您还可以考虑下载Clang + LLVM的二进制文件。