No rule to make target 'scripts/module.lds' while building out-of-tree modules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Debian) |
Fix Released
|
Unknown
|
|||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
kernel v5.10-rc1 introduced a change ( 596b0474d3d9 "kbuild: preprocess module linker script" ) that affects where and how scripts/module.lds is used and causes external modules to fail to build since that linker script is not shipped in the linux-{
I've been testing the mainline PPA kernel v5.10-rc5 and today installed v4l2loopback-dkms and hit this issue.
It will affect all DKMS packages. Ubuntu carries 39 DKMS packages.
See the LKML discussion:
https:/
DKMS make.log for v4l2loopback-0.12.3 for kernel 5.10.0-
Sun 29 Nov 02:48:58 GMT 2020
Building v4l2-loopback driver...
make -C /lib/modules/
make[1]: Entering directory '/usr/src/
CC [M] /var/lib/
MODPOST /var/lib/
make[3]: *** No rule to make target 'scripts/
make[3]: *** Waiting for unfinished jobs....
CC [M] /var/lib/
make[2]: *** [scripts/
make[1]: *** [Makefile:1703: modules] Error 2
make[1]: Leaving directory '/usr/src/
make: *** [Makefile:43: v4l2loopback.ko] Error 2
description: | updated |
description: | updated |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in linux (Debian): | |
status: | Unknown → Fix Released |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1906131
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.