首页 > 解决方案 > 为 dkms 禁用 -Werror

问题描述

我目前正在尝试将内核模块安装到 Ubuntu。我已将模块的源文件复制到/usr/src/applespi-0.1.

然后,我做了

sudo dkms install -m applespi -v 0.1

并得到

Building module:
cleaning build area....
make KERNELRELEASE=4.4.0-31-generic....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.4.0-31-generic (x86_64)
Consult /var/lib/dkms/applespi/0.1/build/make.log for more information.

make.log:https ://pastebin.com/ySsHrgUt

我的目标是在编译此源文件时禁用 -Werror。但是,我似乎找不到带有 -Werror 标志的 Makefile。

标签: clinuxinstallationdkms

解决方案


没关系。我通过运行 dkms--verbose并注释该-Werror标志找到了 Makefile。无论如何,谢谢你们。


推荐阅读