我在linux内核上运行稀疏。
但它会引发以下错误:
在 linux 上运行 sparse:
lovegcy@knltest-VirtualBox:~/git_root/linux$ make C=2
make[1]: Nothing to be done for `all'。
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/x86/kernel/asm-offsets.s
GEN include/generated/asm-
offsets.h CALL scripts/checksyscalls.sh
检查脚本/mod/empty.c
/bin/sh: 1: sparse: not found
make[2]:* [scripts/mod/empty.o] 错误 127
make[1]:[scripts/mod] 错误 2
make: * * [scripts] 错误 2
这是稀疏的安装日志:
lovegcy@knltest-VirtualBox:~/git_root/sparse$ make install
/bin/sh: 1: llvm-config: not found
Makefile:79: 你的系统没有llvm,禁用sparse-llvm
安装 'sparse' -> '/home/lovegcy/bin/sparse'<br> 安装 'cgcc' -> '/home/lovegcy/bin/cgcc'<br> 安装 'c2xml' -> '/home/lovegcy/ bin/c2xml'<br> 安装'test-inspect' -> '/home/lovegcy/bin/test-inspect'<br> 安装'sparse.1' -> '/home/lovegcy/share/man/man1/ sparse.1'<br> 安装'cgcc.1' -> '/home/lovegcy/share/man/man1/cgcc.1'<br> 安装'libsparse.a' -> '/home/lovegcy/lib/ libsparse.a'<br> 安装 'token.h' -> '/home/lovegcy/include/sparse/token.h'<br> 安装 'parse.h' -> '/home/lovegcy/include/sparse/ parse.h'<br> 安装'lib.h' -> '/home/lovegcy/include/sparse/lib.h'<br> 安装'symbol.h' -> '/home/lovegcy/include/sparse/符号.h'<br>安装 'scope.h' -> '/home/lovegcy/include/sparse/scope.h'<br> 安装 'expression.h' -> '/home/lovegcy/include/sparse/expression.h'<br>安装“target.h”->“/home/lovegcy/include/sparse/target.h”<br>安装“linearize.h”->“/home/lovegcy/include/sparse/linearize.h”<br>安装 'bitmap.h' -> '/home/lovegcy/include/sparse/bitmap.h'<br> 安装 'ident-list.h' -> '/home/lovegcy/include/sparse/ident-list.h '<br> 安装 'compat.h' -> '/home/lovegcy/include/sparse/compat.h'<br> 安装 'flow.h' -> '/home/lovegcy/include/sparse/flow.h '<br> 安装'allocate.h' -> '/home/lovegcy/include/sparse/allocate.h'<br> 安装'storage.h' -> '/home/lovegcy/include/sparse/storage.h '<br>安装“ptrlist.h”->“/home/lovegcy/include/sparse/ptrlist.h”<br>安装“dissect.h”->“/home/lovegcy/include/sparse/dissect.h”<br>安装“sparse.pc”->“/home/lovegcy/lib/pkgconfig/sparse.pc”
更多:内核已经编译。
谁能提供一些线索?
非常感谢你!