pop-os / system76-dkms

System76 DKMS driver
GNU General Public License v2.0
36 stars 19 forks source link

Kernel 5.10: No rule to make target 'scripts/module.lds' #51

Open 24fpsDaVinci opened 3 years ago

24fpsDaVinci commented 3 years ago

Distribution (run cat /etc/os-release): Pop!_OS 20.10 x86_64 Kernel: 5.10.0-051000rc5-generic

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

Issue/Bug Description:

make[3]: *** No rule to make target 'scripts/module.lds', needed by '/home/me/system76-dkms/system76.ko'. Stop.

Steps to reproduce (if you know):

Expected behavior:

Other Notes:

jacobgkau commented 3 years ago

I am not able to recreate this issue. I can compile successfully by cloning the repo and running make.

Pop!_OS 20.10 is currently shipping with a 5.8 kernel. Since we haven't tested and are not currently supporting a 5.10 kernel, I would assume that is the issue.

Moxinilian commented 3 years ago

I also encountered this same issue on 5.10.1 with Pop!_OS 20.10. I believe this has been addressed and fixed on Ubuntu: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1906131 I'm going to try building from the repo. Currently, I've tried building both through dpkg --configure -a and dkms_autoinstaller. On my machine, the same issue applies to system76-io and system76-acpi.

EDIT: Can reproduce when building from the repo.

theodegioanni@pop-os:~/github/system76-dkms$ make
make -C "/lib/modules/5.10.1-051001-generic/build" M="/home/theodegioanni/github/system76-dkms" modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.1-051001-generic'
  CC [M]  /home/theodegioanni/github/system76-dkms/system76.o
  MODPOST /home/theodegioanni/github/system76-dkms/Module.symvers
  CC [M]  /home/theodegioanni/github/system76-dkms/system76.mod.o
make[3]: *** No rule to make target 'scripts/module.lds', needed by '/home/theodegioanni/github/system76-dkms/system76.ko'.  Stop.
make[2]: *** [scripts/Makefile.modpost:117: __modpost] Error 2
make[1]: *** [Makefile:1709: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.1-051001-generic'
make: *** [Makefile:5: all] Error 2