FS#75470 - v4l2loopback-dkms doesn't build on 5.15 kernel

Attached to Project: Community Packages
Opened by Tessa N (tessaracht) - Sunday, 31 July 2022, 22:23 GMT
Last edited by Toolybird (Toolybird) - Monday, 01 August 2022, 04:43 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Just tried to install v4l2loopback-dkms-0.12.5-2, and the build didn't work, on my kernel (5.15.55-2-lts). the DKMS build log says the following:

# cat /var/lib/dkms/v4l2loopback/0.12.5/build/make.log
DKMS make.log for v4l2loopback-0.12.5 for kernel 5.15.55-1-lts (x86_64)
Sun 31 Jul 2022 03:20:48 PM PDT
Building v4l2-loopback driver...
make -C /usr/lib/modules/5.15.55-1-lts/build M=/var/lib/dkms/v4l2loopback/0.12.5/build modules
make[1]: Entering directory '/usr/lib/modules/5.15.55-1-lts/build'
CC [M] /var/lib/dkms/v4l2loopback/0.12.5/build/v4l2loopback.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/v4l2loopback/0.12.5/build/v4l2loopback.o] Error 1
make[1]: *** [Makefile:1886: /var/lib/dkms/v4l2loopback/0.12.5/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.55-1-lts/build'
make: *** [Makefile:43: v4l2loopback.ko] Error 2

Steps to reproduce:
* try to install f4l2loopback-dkms
* watch it fail
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 01 August 2022, 04:43 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Sunday, 31 July 2022, 22:35 GMT
cc1: error: incompatible gcc/plugin versions

This means you're trying to build with the wrong version of gcc. Make sure your system is fully up to date and you aren't overriding /usr/bin/gcc with a bad PATH or something.
Comment by Tessa N (tessaracht) - Monday, 01 August 2022, 04:42 GMT
  • Field changed: Percent Complete (100% → 0%)
if this was a gcc problem, wouldn't other dkms modules have issues building? I've got other ones (like zfs) that work fine. as well, my system is up to date, and I am not overriding GCC. the version I've got on my system is gcc-12.1.0-3.
Comment by Toolybird (Toolybird) - Monday, 01 August 2022, 04:43 GMT
@Scimmia is right. This problem is always due to some kind of mismatch.

It looks like your kernel is 5.15.55-2-lts
but you're building the module for for 5.15.55-1-lts

See the difference? 5.15.55-1-lts was built with an earlier GCC.

Loading...