[Pkg-zfsonlinux-devel] Bug#992219: zfs-dkms: Error! Bad return status for module build on kernel: 5.13.0-trunk-amd64 (x86_64)

Mike Hommey mh at glandium.org
Mon Aug 16 01:38:21 BST 2021


reassign 992219 linux-headers-5.13.0-trunk-common
thanks

On Mon, Aug 16, 2021 at 09:31:25AM +0900, Mike Hommey wrote:
> Package: zfs-dkms
> Version: 2.0.3-9
> Severity: important
> 
> Dear Maintainer,
> 
> Installing zfs-dkms with the linux kernel currently in experimental
> fails with:
> 
> Preparing to unpack .../zfs-dkms_2.0.3-9_all.deb ...
> Unpacking zfs-dkms (2.0.3-9) ...
> Setting up zfs-dkms (2.0.3-9) ...
> Loading new zfs-2.0.3 DKMS files...
> Building for 5.13.0-trunk-amd64
> Building initial module for 5.13.0-trunk-amd64
> configure: error:
> 	*** Unable to build an empty module.
> 
> Error! Bad return status for module build on kernel: 5.13.0-trunk-amd64 (x86_64)
> Consult /var/lib/dkms/zfs/2.0.3/build/make.log for more information.
> dpkg: error processing package zfs-dkms (--configure):
>  installed zfs-dkms package post-installation script subprocess returned error exit status 10
> 
> 
> The contents of /var/lib/dkms/zfs/2.0.3/build/make.log are:
> 
> DKMS make.log for zfs-2.0.3 for kernel 5.13.0-trunk-amd64 (x86_64)
> Mon Aug 16 09:29:50 JST 2021
> make: *** No targets specified and no makefile found.  Stop.

This turns out to be a problem with the
linux-headers-5.13.0-trunk-common package.

zfs-dkms's configure runs the following:
KBUILD_MODPOST_NOFINAL= KBUILD_MODPOST_WARN= make modules -k -j64 -C /lib/modules/5.13.0-trunk-amd64/build M=/var/lib/dkms/zfs/2.0.3/build/build/conftest >build/conftest/build.log 2>&1

That output log file contains:

  CC [M]  /var/lib/dkms/zfs/2.0.3/build/build/conftest/conftest.o
sh: 0: cannot open /usr/src/linux-headers-5.13.0-trunk-common/scripts/modules-check.sh: No such file
make[1]: *** [/usr/src/linux-headers-5.13.0-trunk-common/Makefile:1796: modules_check] Error 2
make[1]: Target 'modules' not remade because of errors.
make: *** [/usr/src/linux-headers-5.13.0-trunk-common/Makefile:232: __sub-make] Error 2
make: Target 'modules' not remade because of errors.
make: Leaving directory '/usr/src/linux-headers-5.13.0-trunk-amd64'

It turns out the modules-check.sh file is missing from the headers
package.

Mike



More information about the Pkg-zfsonlinux-devel mailing list