Linux内核编译错误

标签 linux unix compilation kernel

我从 Linus 的 github 克隆了内核源代码,我对 usbhid 驱动程序做了一点修改(作为模块编译得很好,没有错误),但是如果我尝试构建整个内核,我会得到这个错误:

AR      drivers/gpu/drm/built-in.o
AR      drivers/gpu/built-in.o
Makefile:1023: recipe for target 'drivers' failed
make: *** [drivers] Error 2

这一切都没有什么特别的。可能是什么问题?

最佳答案

更新:9-15-18 此问题已解决。内核现在将使用我在下面给出的命令进行编译。

同样的问题。 4.19.0-rc3 不会在 Threadripper 2990WX 上编译。顺便说一句,我目前正在运行 4.19.0-rc2 没有任何问题。

这些是我使用的命令。请注意,我也尝试过不使用 LD 静态标志。

wget https://git.kernel.org/torvalds/t/linux-4.19-rc3.tar.gz && tar -xzf linux-4.19-rc3.tar.gz && cd linux-4.19-rc3 && make -j 64 clean && make -j 64 mrproper &&  zcat /proc/config.gz >> ./.config && LDFLAGS=--static make -j 64

关于Linux内核编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47151080/

相关文章:

linux - 编译 Linux Buildroot 覆盖本地更改

MySQL 5.6 LOAD XML LOCAL INFILE 和空 XML 元素

mysql_error() 在通过unix终端运行的php中返回 'No such file or directory'

compilation - 由于语法错误,Clojure 后置条件无法执行——为什么?

c++ - 是否为每个 C++ 对象编译了多个成员函数?

mysql - UDF结果错误

php - 在 Oracle Linux 7.2 上将 PHP 连接到 Oracle 12c

perl - 如何从 Windows 上的 ActivePerl 输出带有 unix 行结尾的 UTF-8 编码 XML 文件?

linux - 从文件中提取并将详细信息粘贴到另一个文件

python PIL 安装在共享主机上