c - 为 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。
解决方案
没关系。我通过运行 dkms--verbose
并注释该-Werror
标志找到了 Makefile。无论如何,谢谢你们。
推荐阅读
- android - 用于填充视图的 Android 网格
- javascript - 找不到模块
- html - 如何在鼠标使用其中一个时连接两个不同元素的淡入淡出效果
- java - 在java中的目录路径中添加单个正斜杠或双反斜杠
- c# - 为每个按钮创建一个 void 方法
- javascript - 将类添加到标签导致字体渲染延迟(引导程序 4)
- amazon-web-services - AWS Mythical Mysfits - 包和可执行文件定位的 python 错误。亚马逊需要更新教程
- sql - 如何在 PostgreSQL SQL 中使用两个日期列获取数据?
- android - RecyclerView 适配器中的 FragmentManager
- c++ - 如何将一个 std::vector 移动附加到另一个?