[英]Linux compilation throwing error header file error
I am compiling this code (minimul linux kernel) from https://github.com/liva/minimal-linux我正在从https://github.com/liva/minimal-linux编译此代码(minimul linux 内核)
I am getting > make[1]: *** [Kbuild:42: include/generated/timeconst.h] Error 127
我得到
> make[1]: *** [Kbuild:42: include/generated/timeconst.h] Error 127
basically its make
error.基本上它的
make
。 may be error in timeconst.h
or may be its missing file.可能是
timeconst.h
中的错误,也可能是其丢失的文件。
So my question is how to find the file in the minimul-linux-master
(download from above link) folder and how to debug for more info when compiling the code.所以我的问题是如何在
minimul-linux-master
(从上面的链接下载)文件夹中找到该文件,以及如何在编译代码时调试以获取更多信息。
as u can see what make
displays is completely useless.正如你所看到的,是什么
make
显示器完全没用。 And I have no clue why the error is caused.而且我不知道为什么会导致错误。 there are not any other errors so I assumed all the errors or single error is in
timeconst.h
.没有任何其他错误,所以我假设所有错误或单个错误都在
timeconst.h
中。
this is terminal output.这是终端 output。
.... ……
HOSTCC scripts/mod/sumversion.o
HOSTCC 脚本/mod/sumversion.o
HOSTLD arch/x86/tools/relocs
HOSTLD arch/x86/tools/relocs
HOSTCC scripts/mod/file2alias.o
HOSTCC 脚本/mod/file2alias.o
UPD include/config/kernel.release CHK include/generated/utsrelease.h
UPD 包含/config/kernel.release CHK 包含/生成/utsrelease.h
UPD include/generated/utsrelease.h
UPD 包含/生成/utsrelease.h
CC kernel/bounds.s
CC 内核/bounds.s
CHK include/generated/timeconst.h
CHK 包含/生成/timeconst.h
/bin/sh: 1: bc: not found
/bin/sh: 1: bc: 未找到
make[1]: *** [Kbuild:42: include/generated/timeconst.h] Error 127
make[1]: *** [Kbuild:42: include/generated/timeconst.h] 错误 127
make[1]: *** Waiting for unfinished jobs....
make[1]: *** 等待未完成的工作....
make: *** [Makefile:1054: prepare0] Error 2
make: *** [Makefile:1054:prepare0] 错误 2
make: *** Waiting for unfinished jobs....
make: *** 等待未完成的工作....
HOSTLD scripts/mod/modpost
HOSTLD 脚本/mod/modpost
I am on host: 5.10.0-kali3-amd64 machine is x86-64我在主机上:5.10.0-kali3-amd64 机器是 x86-64
I fixed the same by comparing mine KBuild with the one defined in in the given link.我通过将我的 KBuild 与给定链接中定义的 KBuild 进行比较来修复相同的问题。
https://android.googlesource.com/kernel/msm/+/db248780101f2ca2bc3c02598917e88dfdce3207/Kbuild https://android.googlesource.com/kernel/msm/+/db248780101f2ca2bc3c02598917e88dfdce3207/Kbuild
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.