Dne čtvrtek 26. ledna 2023 16:18:33 CET, Miroslav Maiksnar napsal(a):
> Dne pátek 20. ledna 2023 18:50:26 CET jste napsal(a):
> > Control: tag -1 unreproducible
> > Control: severity -1 normal
> > 
> > Hi,
> > 
> > On Fri, 13 Jan 2023 16:16:12 +0100 Miroslav Maiksnar
> > 
> > <bugs.debian....@m.mixi.cz> wrote:
> > > Error! Bad return status for module build on kernel: 6.0.0-6-amd64
> > > (x86_64)
> > 
> > I cannot reproduce that with the Linux 6.1 kernel currently in sid.
> 
> I had same problem even with 6.1 kernel. Probably some dependencies, I'll
> try to investigate this more. I have trouble installing virtualbox right
> now though, so it may take bit more time.

I investigated this more and I noticed some weird behavior (at least for me, as 
I don't have much knowledge regarding DKMS).

Problem is, that evdi module is actually build twice in different ways which I 
didn't notice before.

First time it is built when setting up kernel image and it works just fine:

--------------------------------------------------------
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-1-amd64:Sign command: 
/usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j8 KERNELRELEASE=6.1.0-1-amd64 -C /lib/modules/6.1.0-1-amd64/build 
M=/var/lib/dkms/evdi/1.12.0+dfsg/build DKMS_BUILD=1....
Signing module /var/lib/dkms/evdi/1.12.0+dfsg/build/evdi.ko
Cleaning build area...

evdi.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.1.0-1-amd64/updates/dkms/
depmod...
--------------------------------------------------------

Second time it is built when setting up kernel headers and it fails:

--------------------------------------------------------
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-1-amd64:Sign command: 
/usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j8 KERNELRELEASE=6.1.0-1-amd64 all 
INCLUDEDIR=/lib/modules/6.1.0-1-amd64/build/include KVERSION=6.1.0-1-amd64 
DKMS_BUILD=1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-1-amd64 (x86_64)
Consult /var/lib/dkms/evdi/1.12.0/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at 
/var/lib/dpkg/info/linux-headers-6.1.0-1-amd64.postinst line 11.
dpkg: chyba při zpracovávání balíku linux-headers-6.1.0-1-amd64 (--configure):
 installed linux-headers-6.1.0-1-amd64 package post-installation script 
subprocess returned error exit status 1
--------------------------------------------------------

What did seem weird to me is different make command for building the module:

make -j8 KERNELRELEASE=6.1.0-1-amd64 -C /lib/modules/6.1.0-1-amd64/build 
M=/var/lib/dkms/evdi/1.12.0+dfsg/build DKMS_BUILD=1

vs. failed:

make -j8 KERNELRELEASE=6.1.0-1-amd64 all 
INCLUDEDIR=/lib/modules/6.1.0-1-amd64/build/include KVERSION=6.1.0-1-amd64 
DKMS_BUILD=1


I tested it on clean Debian Bookworm installation and upgrading to sid kernel 
went just fine. Module was compiled only first time and during kernel headers 
setup dkms printed only message about auto installation service.
So I guess some time during occasional bookworm updating my system got broken.

I'll close this bug now, as it is apparently relevant only to my (broken) setup.
Mixi

Reply via email to