我目前正在尝试在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。
发布于 2018-11-22 03:30:10
不要紧。我已经通过使用--verbose运行dkms并注释-Werror标志找到了Makefile。不管怎样谢谢你们,伙计们。
https://stackoverflow.com/questions/53419185
复制相似问题