Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debian packaging breaks module compilation #4056

Closed
bdols opened this issue Dec 1, 2015 · 9 comments
Closed

debian packaging breaks module compilation #4056

bdols opened this issue Dec 1, 2015 · 9 comments

Comments

@bdols
Copy link

bdols commented Dec 1, 2015

I'm an end user who upgraded everything to current in debian, as part my recent "apt-get upgrade", linux kernel 3.16.0 was installed and some zfs-related packages were upgraded. I found after boot that the zfs module was not compiled for the 3.16.0 kernel

packages:
ii build-essential 11.7 amd64 Informational list of build-essential packages
un linux-headers (no description available)
ii linux-headers-3.16.0-4-amd64 3.16.7-ckt11-1+deb8u6 amd64 Header files for Linux 3.16.0-4-amd64
ii linux-headers-3.16.0-4-common 3.16.7-ckt11-1+deb8u6 amd64 Common header files for Linux 3.16.0-4
ii linux-headers-3.2.0-4-amd64 3.2.68-1+deb7u2 amd64 Header files for Linux 3.2.0-4-amd64
ii linux-headers-3.2.0-4-common 3.2.68-1+deb7u2 amd64 Common header files for Linux 3.2.0-4
un linux-headers-686-pae (no description available)
ii linux-headers-amd64 3.16+63 amd64 Header files for Linux amd64 configuration (meta-package)
un linux-headers-generic (no description available)
ii spl 0.6.5.3-1 amd64 Solaris Porting Layer user-space utilities for Linux
ii spl-dkms 0.6.5.3-1 all Solaris Porting Layer kernel modules for Linux
ii zfs-dkms 0.6.5.2-2 all Native ZFS filesystem kernel modules for Linux
ii zfsutils 0.6.5.2-2 amd64 command-line tools to manage ZFS filesystems

zfs-dkms and spl-dkms versions are mismatched

I ran "dpkg-reconfigure zfs-dkms":

Deleting module version: 0.6.5.2

completely from the DKMS tree.

Done.
Loading new zfs-0.6.5.2 DKMS files...
Building only for 3.16.0-4-amd64
Building initial module for 3.16.0-4-amd64
configure: error:
*** Please make sure the kmod spl devel package for your distribution
*** is installed then try again. If that fails you can specify the
*** location of the spl source with the '--with-spl=PATH' option.
Error! Bad return status for module build on kernel: 3.16.0-4-amd64 (x86_64)
Consult /var/lib/dkms/zfs/0.6.5.2/build/make.log for more information.

DKMS make.log for zfs-0.6.5.2 for kernel 3.16.0-4-amd64 (x86_64)
Mon Nov 30 19:10:26 CST 2015
make: *** No targets specified and no makefile found. Stop.

@bdols
Copy link
Author

bdols commented Dec 1, 2015

zfs-dpkg.log.txt

@bdols
Copy link
Author

bdols commented Dec 1, 2015

i worked around this by downgrading spl-dkms to 0.6.5-1 that was still in my apt-cache, thankfully.
ran dpkg-reconfigure zfs-dkms and modprobe zfs to get my zfs volumes back.

@dasjoe
Copy link
Contributor

dasjoe commented Dec 1, 2015

apt-cache policy spl-dkms should show you're getting spl-dkms from debian's testing or experimental respository. testing and experimental are not supported by @FransUrbo, his packages are stuck at 0.6.5.2 as of now.
See zfsonlinux/pkg-zfs#184 and zfsonlinux/pkg-zfs#181.

@roeme
Copy link

roeme commented Dec 2, 2015

Duplicate of #184. zfsonlinux/pkg-zfs#184
(thanks @dasjoe)

@dasjoe
Copy link
Contributor

dasjoe commented Dec 2, 2015

No, not of #184 but of zfsonlinux/pkg-zfs#184...

@bdols
Copy link
Author

bdols commented Dec 8, 2015

yes, I have had experimental of debian for some time for some reason unrelated to zfs

@ghost
Copy link

ghost commented Mar 5, 2016

I had a similar issue.
Reinstalling linux-source and Installing gcc-multilib fixed it for me.
zfs compiled for 3.19.0.32 afterwards.

apt-get install linux-source gcc-multilib
dkms remove -m zfs -v 0.6.5.4 --all
dkms remove -m spl -v 0.6.5.4 --all
dkms add -m spl -v 0.6.5.4
dkms add -m zfs -v 0.6.5.4
dkms install -m spl -v 0.6.5.4
dkms install -m zfs -v 0.6.0.4

@FransUrbo
Copy link
Contributor

@behlendorf Can you close this as "won't fix"?

See zfsonlinux/pkg-zfs#184 (comment) for excuse.

@behlendorf
Copy link
Contributor

Packages are now provided by Debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants