Public bug reported:

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-{image,header} packages.

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://lkml.org/lkml/2020/8/31/455


DKMS make.log for v4l2loopback-0.12.3 for kernel 5.10.0-051000rc5-lowlatency 
(x86_64)
Sun 29 Nov 02:48:58 GMT 2020
Building v4l2-loopback driver...
make -C /lib/modules/5.10.0-051000rc5-lowlatency/build 
M=/var/lib/dkms/v4l2loopback/0.12.3/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-051000rc5-lowlatency'
  CC [M]  /var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.o
  MODPOST /var/lib/dkms/v4l2loopback/0.12.3/build/Module.symvers
make[3]: *** No rule to make target 'scripts/module.lds', needed by 
'/var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.ko'. Stop.
make[3]: *** Waiting for unfinished jobs....
  CC [M]  /var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.mod.o
make[2]: *** [scripts/Makefile.modpost:117: __modpost] Error 2
make[1]: *** [Makefile:1703: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-051000rc5-lowlatency'
make: *** [Makefile:43: v4l2loopback.ko] Error 2

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux (Debian)
     Importance: Unknown
         Status: Unknown

** Bug watch added: Debian Bug tracker #975571
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975571

** Also affects: linux (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975571
   Importance: Unknown
       Status: Unknown

** Description changed:

- kernel v5.10-rc1 introduced a change 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-{image,header}
- packages.
+ 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-{image,header} packages.
  
  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.
  
- 
  DKMS make.log for v4l2loopback-0.12.3 for kernel 5.10.0-051000rc5-lowlatency 
(x86_64)
  Sun 29 Nov 02:48:58 GMT 2020
  Building v4l2-loopback driver...
  make -C /lib/modules/5.10.0-051000rc5-lowlatency/build 
M=/var/lib/dkms/v4l2loopback/0.12.3/build modules
  make[1]: Entering directory 
'/usr/src/linux-headers-5.10.0-051000rc5-lowlatency'
-   CC [M]  /var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.o
-   MODPOST /var/lib/dkms/v4l2loopback/0.12.3/build/Module.symvers
+   CC [M]  /var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.o
+   MODPOST /var/lib/dkms/v4l2loopback/0.12.3/build/Module.symvers
  make[3]: *** No rule to make target 'scripts/module.lds', needed by 
'/var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.ko'. Stop.
  make[3]: *** Waiting for unfinished jobs....
-   CC [M]  /var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.mod.o
+   CC [M]  /var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.mod.o
  make[2]: *** [scripts/Makefile.modpost:117: __modpost] Error 2
  make[1]: *** [Makefile:1703: modules] Error 2
  make[1]: Leaving directory 
'/usr/src/linux-headers-5.10.0-051000rc5-lowlatency'
  make: *** [Makefile:43: v4l2loopback.ko] Error 2

** Description changed:

  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-{image,header} packages.
  
  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://lkml.org/lkml/2020/8/31/455
+ 
  
  DKMS make.log for v4l2loopback-0.12.3 for kernel 5.10.0-051000rc5-lowlatency 
(x86_64)
  Sun 29 Nov 02:48:58 GMT 2020
  Building v4l2-loopback driver...
  make -C /lib/modules/5.10.0-051000rc5-lowlatency/build 
M=/var/lib/dkms/v4l2loopback/0.12.3/build modules
  make[1]: Entering directory 
'/usr/src/linux-headers-5.10.0-051000rc5-lowlatency'
    CC [M]  /var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.o
    MODPOST /var/lib/dkms/v4l2loopback/0.12.3/build/Module.symvers
  make[3]: *** No rule to make target 'scripts/module.lds', needed by 
'/var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.ko'. Stop.
  make[3]: *** Waiting for unfinished jobs....
    CC [M]  /var/lib/dkms/v4l2loopback/0.12.3/build/v4l2loopback.mod.o
  make[2]: *** [scripts/Makefile.modpost:117: __modpost] Error 2
  make[1]: *** [Makefile:1703: modules] Error 2
  make[1]: Leaving directory 
'/usr/src/linux-headers-5.10.0-051000rc5-lowlatency'
  make: *** [Makefile:43: v4l2loopback.ko] Error 2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1906131

Title:
  No rule to make target 'scripts/module.lds' while building out-of-tree
  modules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1906131/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to