hostingnuggets
Posts: 34
Joined: Fri Dec 28, 2012 5:52 pm

Installing zfs-dkms package on Raspbian stretch fails

Tue Mar 20, 2018 5:14 pm

Hello,

I have just installed the latest Raspbian stretch 9.4 on my Raspberry Pi model 3 B and noticed that on that distribution ZFS is included in the APT repository so I thought let's install it (in the past on Raspbian jessie I would manually compile it). For that purpose I install the zfs-dkms package but unfortunately it fails miserably... Anyone has an idea what could be wrong? or is this package on Raspbian simply broken? Here below is the full output.

Note that I don't understand why it needs to fetch the Linux kernel 3.6 headers package as Raspbian stretch uses a 4.9 Linux kernel.

Cheers,
J.

Code: Select all

$ sudo apt-get install zfs-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  cpp-4.6 dkms gcc-4.6 linux-headers-3.6-trunk-common linux-headers-3.6-trunk-rpi linux-kbuild-3.6 spl spl-dkms
Suggested packages:
  gcc-4.6-locales python3-apport menu libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg libquadmath-dbg libmudflap0-dbg libcloog-ppl1 | libcloog-ppl0 libppl-c4 libppl12 | libppl9 binutils-gold
Recommended packages:
  zfsutils-linux zfs-zed
The following NEW packages will be installed:
  cpp-4.6 dkms gcc-4.6 linux-headers-3.6-trunk-common linux-headers-3.6-trunk-rpi linux-kbuild-3.6 spl spl-dkms zfs-dkms
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.8 MB of archives.
After this operation, 60.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirror.iway.ch/raspbian/raspbian stretch/main armhf dkms all 2.3-2 [74.8 kB]
Get:2 http://mirror.iway.ch/raspbian/raspbian stretch/main armhf spl-dkms all 0.6.5.9-1 [385 kB]
Get:3 http://mirror.iway.ch/raspbian/raspbian stretch/contrib armhf zfs-dkms all 0.6.5.9-5 [1080 kB]
Get:4 http://mirror.iway.ch/raspbian/raspbian stretch/main armhf cpp-4.6 armhf 4.6.4-5+rpi1 [4145 kB]
Get:5 http://mirror.iway.ch/raspbian/raspbian stretch/main armhf gcc-4.6 armhf 4.6.4-5+rpi1 [4363 kB]
Get:6 http://mirror.iway.ch/raspbian/raspbian stretch/main armhf linux-headers-3.6-trunk-common armhf 3.6.9-1~experimental.1+rpi7 [4189 kB]
Get:7 http://mirror.iway.ch/raspbian/raspbian stretch/main armhf linux-kbuild-3.6 armhf 3.6-1~experimental.1+rpi2+b2 [136 kB]
Get:8 http://mirror.iway.ch/raspbian/raspbian stretch/main armhf linux-headers-3.6-trunk-rpi armhf 3.6.9-1~experimental.1+rpi7 [414 kB]
Get:9 http://mirror.iway.ch/raspbian/raspbian stretch/main armhf spl armhf 0.6.5.9-1 [18.6 kB]
Fetched 14.8 MB in 5s (2698 kB/s)
Preconfiguring packages ...
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package dkms.
(Reading database ... 34533 files and directories currently installed.)
Preparing to unpack .../archives/dkms_2.3-2_all.deb ...
Unpacking dkms (2.3-2) ...
Selecting previously unselected package spl-dkms.
Preparing to unpack .../spl-dkms_0.6.5.9-1_all.deb ...
Unpacking spl-dkms (0.6.5.9-1) ...
Setting up dkms (2.3-2) ...
Setting up spl-dkms (0.6.5.9-1) ...
Loading new spl-0.6.5.9 DKMS files...
It is likely that 4.9.80-v7+ belongs to a chroot's host
Building for 4.9.80+ and 4.9.80-v7+
Module build for kernel 4.9.80+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 4.9.80-v7+ was skipped since the
kernel headers for this kernel does not seem to be installed.
Selecting previously unselected package zfs-dkms.
(Reading database ... 34877 files and directories currently installed.)
Preparing to unpack .../0-zfs-dkms_0.6.5.9-5_all.deb ...
Unpacking zfs-dkms (0.6.5.9-5) ...
Selecting previously unselected package cpp-4.6.
Preparing to unpack .../1-cpp-4.6_4.6.4-5+rpi1_armhf.deb ...
Unpacking cpp-4.6 (4.6.4-5+rpi1) ...
Selecting previously unselected package gcc-4.6.
Preparing to unpack .../2-gcc-4.6_4.6.4-5+rpi1_armhf.deb ...
Unpacking gcc-4.6 (4.6.4-5+rpi1) ...
Selecting previously unselected package linux-headers-3.6-trunk-common.
Preparing to unpack .../3-linux-headers-3.6-trunk-common_3.6.9-1~experimental.1+rpi7_armhf.deb ...
Unpacking linux-headers-3.6-trunk-common (3.6.9-1~experimental.1+rpi7) ...
Selecting previously unselected package linux-kbuild-3.6.
Preparing to unpack .../4-linux-kbuild-3.6_3.6-1~experimental.1+rpi2+b2_armhf.deb ...
Unpacking linux-kbuild-3.6 (3.6-1~experimental.1+rpi2+b2) ...
Selecting previously unselected package linux-headers-3.6-trunk-rpi.
Preparing to unpack .../5-linux-headers-3.6-trunk-rpi_3.6.9-1~experimental.1+rpi7_armhf.deb ...
Unpacking linux-headers-3.6-trunk-rpi (3.6.9-1~experimental.1+rpi7) ...
Selecting previously unselected package spl.
Preparing to unpack .../6-spl_0.6.5.9-1_armhf.deb ...
Unpacking spl (0.6.5.9-1) ...
Setting up cpp-4.6 (4.6.4-5+rpi1) ...
Setting up linux-headers-3.6-trunk-common (3.6.9-1~experimental.1+rpi7) ...
Setting up spl (0.6.5.9-1) ...
Setting up gcc-4.6 (4.6.4-5+rpi1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up linux-kbuild-3.6 (3.6-1~experimental.1+rpi2+b2) ...
Setting up zfs-dkms (0.6.5.9-5) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
WARNING: Building ZFS module on a 32-bit kernel.
Loading new zfs-0.6.5.9 DKMS files...
It is likely that 4.9.80-v7+ belongs to a chroot's host
Building for 3.6-trunk-rpi, 4.9.80+ and 4.9.80-v7+
Building initial module for 3.6-trunk-rpi
configure: error: 
	*** Please make sure the kmod spl devel <kernel> package for your
	*** distribution is installed then try again.  If that fails you
	*** can specify the location of the spl objects with the
	*** '--with-spl-obj=PATH' option.
Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv7l)
Consult /var/lib/dkms/zfs/0.6.5.9/build/make.log for more information.
Setting up linux-headers-3.6-trunk-rpi (3.6.9-1~experimental.1+rpi7) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.6-trunk-rpi
cp: cannot stat '/var/lib/dkms/spl/0.6.5.9/build/spl_config.h': No such file or directory
cp: cannot stat '/var/lib/dkms/spl/0.6.5.9/build/module/Module.symvers': No such file or directory

Return to “Raspbian”