(SOLVED) BUG: MX-17.1 - zfs will not build with kernel 4.15

Report Bugs, Issues and non- package Requests
Message
Author
kingneutron
Posts: 10
Joined: Mon Mar 19, 2018 7:54 pm

(SOLVED) BUG: MX-17.1 - zfs will not build with kernel 4.15

#1 Post by kingneutron »

--Using latest 64-bit MX17-1, Virtualbox 5.2.6 install with 4GB RAM + 2 vCPUs + (1) 16GB vHD (SATA .vdi)

# apt-get update
# apt-get install linux-headers-$(uname -r) zfs-dkms zfsutils-linux smbclient
Building initial module for 4.15.0-1-amd64
configure: error: unknown
Error! Bad return status for module build on kernel: 4.15.0-1-amd64 (x86_64)
Consult /var/lib/dkms/spl/0.6.5.9/build/make.log for more information.

From /var/lib/dkms/spl/0.6.5.9/build/make.log:

Code: Select all

DKMS make.log for spl-0.6.5.9 for kernel 4.15.0-1-amd64 (x86_64)
Mon Mar 19 18:42:14 CDT 2018
make: *** No targets specified and no makefile found.  Stop.
---

--Workaround: My main 6-core PC has ZFS-dkms working fine with kernel 4.9.* (up to -83, just noticed -87 is out) but I'd reeally like to upgrade to a spectre/meltdown--fixed kernel. TIA!

--More details:

Code: Select all

# inxi 
CPU~Dual core AMD Phenom II X6 1065T (-MCP-) speed~2899 MHz (max) Kernel~4.15.0-1-amd64 x86_64 Up~40 min Mem~1066.8/3948.9MB HDD~17.9GB(34.2% used) Procs~202 Client~Shell inxi~2.3.54  

# inxi -b
System:    Host: mx17vmpav Kernel: 4.15.0-1-amd64 x86_64 bits: 64 Desktop: Xfce 4.12.3
           Distro: MX-17.1_x64 Horizon March 14, 2018
Machine:   Device: oracle System: innotek product: VirtualBox v: 1.2 serial: 0
           Mobo: Oracle model: VirtualBox v: 1.2 serial: 0
           BIOS: innotek v: VirtualBox date: 12/01/2006
CPU:       Dual core AMD Phenom II X6 1065T (-MCP-) speed: 2899 MHz (max)
Graphics:  Card: InnoTek Systemberatung VirtualBox Graphics Adapter
           Display Server: X.Org 1.19.2 drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1280x931@59.99hz
           OpenGL: renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits) version: 3.3 Mesa 13.0.6
Network:   Card: Intel 82540EM Gigabit Ethernet Controller driver: e1000
Drives:    HDD Total Size: 17.9GB (34.2% used)
Info:      Processes: 202 Uptime: 41 min Memory: 1063.8/3948.9MB Client: Shell (bash) inxi: 2.3.54 
Last edited by kingneutron on Fri Mar 23, 2018 12:54 am, edited 1 time in total.

User avatar
Stevo
Developer
Posts: 12843
Joined: Fri Dec 15, 2006 8:07 pm

Re: BUG: MX-17.1 - zfs will not build with kernel 4.15

#2 Post by Stevo »

There is a newer version in stretch-backports that is advertised as working with up to the 4.15 kernel. I'll see about porting it over to our test repo.
Supported Kernels

Compatible with 2.6.32 - 4.15 Linux kernels.

User avatar
Stevo
Developer
Posts: 12843
Joined: Fri Dec 15, 2006 8:07 pm

Re: BUG: MX-17.1 - zfs will not build with kernel 4.15

#3 Post by Stevo »

The newer zfs 0.7.6 packages, compatible with kernel 4.15 and older, are now in the main MX 17 repository, and in the test repository for MX 15/16. Please let us know how they work if you give them a try.

kingneutron
Posts: 10
Joined: Mon Mar 19, 2018 7:54 pm

Re: BUG: MX-17.1 - zfs will not build with kernel 4.15

#4 Post by kingneutron »

--Thanks for your prompt reply - I tried it but it's still not working yet:

Code: Select all

# apt-get update; apt-get upgrade
The following packages have been kept back:
  zfs-dkms zfsutils-linux
The following packages will be upgraded:
  adobe-flash-properties-gtk adobe-flashplugin antix-libs apt-notifier cli-shell-utils curl
  firefox libcurl3 libcurl3-gnutls libnvpair1linux libuutil1linux libvorbis0a libvorbisenc2
  libvorbisfile3 libvorbisidec1 libzfs2linux libzpool2linux mx-snapshot mx-viewer openjdk-8-jre
  openjdk-8-jre-headless xscreensaver xscreensaver-data
23 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 84.8 MB of archives.
After this operation, 412 kB of additional disk space will be used.
Do you want to continue? [Y/n]y

# apt-get dist-upgrade
The following packages have been kept back:
  zfsutils-linux
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

# apt-get install zfs-dkms zfsutils-linux
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 zfs-dkms : PreDepends: spl-dkms (>= 0.7.6) but 0.6.5.9-1 is to be installed
E: Unable to correct problems, you have held broken packages.

--My /etc/apt/sources.list.d is attached, this is still pretty much an out-of-the-box Virtualbox install of the recent MX-17-1 64-bit ISO. :crossfingers:
You do not have the required permissions to view the files attached to this post.

User avatar
Stevo
Developer
Posts: 12843
Joined: Fri Dec 15, 2006 8:07 pm

Re: BUG: MX-17.1 - zfs will not build with kernel 4.15

#5 Post by Stevo »

Oh, I also need to port over spl-dkms. A simple workaround until it gets into our repo is to use the version from stretch-backports. The MX version will update over that once it appears.

kingneutron
Posts: 10
Joined: Mon Mar 19, 2018 7:54 pm

Re: BUG: MX-17.1 - zfs will not build with kernel 4.15

#6 Post by kingneutron »

--Still not quite working, I'm afraid...

Code: Select all

The following packages will be upgraded:
  mx-packageinstaller-pkglist spl-dkms zfs-dkms zfsutils-linux
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,122 kB of archives.
After this operation, 2,519 kB of additional disk space will be used.
Do you want to continue? [Y/n]y
Get:1 http://mxrepo.com/mx/repo stretch/main amd64 spl-dkms all 0.7.6-1~mx17+1 [394 kB]
Get:2 http://mxrepo.com/mx/repo stretch/main amd64 zfs-dkms all 0.7.6-1~mx17+1 [1,388 kB]
Get:3 http://mxrepo.com/mx/repo stretch/main amd64 mx-packageinstaller-pkglist all 18.03.06 [30.4 kB]
Get:4 http://mxrepo.com/mx/repo stretch/main amd64 zfsutils-linux amd64 0.7.6-1~mx17+1 [310 kB]
Fetched 2,122 kB in 20s (103 kB/s)
Preconfiguring packages ...
(Reading database ... 312854 files and directories currently installed.)
Preparing to unpack .../spl-dkms_0.7.6-1~mx17+1_all.deb ...

------------------------------
Deleting module version: 0.6.5.9  
completely from the DKMS tree.
------------------------------
Done.
Unpacking spl-dkms (0.7.6-1~mx17+1) over (0.6.5.9-1) ...
Setting up spl-dkms (0.7.6-1~mx17+1) ...
Loading new spl-0.7.6 DKMS files...
Building for 4.15.0-1-amd64
Building initial module for 4.15.0-1-amd64
Done.

spl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-1-amd64/extra/spl/spl/

splat.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-1-amd64/extra/splat/splat/

depmod....

DKMS: install completed.
(Reading database ... 312862 files and directories currently installed.)
Preparing to unpack .../zfs-dkms_0.7.6-1~mx17+1_all.deb ...
Unpacking zfs-dkms (0.7.6-1~mx17+1) over (0.6.5.9-5) ...
Preparing to unpack .../mx-packageinstaller-pkglist_18.03.06_all.deb ...
Unpacking mx-packageinstaller-pkglist (18.03.06) over (18.03.05) ...
Preparing to unpack .../zfsutils-linux_0.7.6-1~mx17+1_amd64.deb ...
Unpacking zfsutils-linux (0.7.6-1~mx17+1) over (0.6.5.9-5) ...
Setting up zfsutils-linux (0.7.6-1~mx17+1) ...
Installing new version of config file /etc/default/zfs ...
Created symlink /etc/systemd/system/zfs-mount.service.wants/zfs-import.target → /lib/systemd/system/zfs-import.target.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-import.target → /lib/systemd/system/zfs-import.target.
Processing triggers for man-db (2.7.6.1-2) ...
[b]Setting up zfs-dkms (0.7.6-1~mx17+1) ...
Ok, aborting, since ZFS is not designed for 32-bit kernels.
[/b]Setting up mx-packageinstaller-pkglist (18.03.06) ...

# uname -a
Linux mx17vmpav 4.15.0-1-amd64 #1 SMP Debian 4.15.4-1~mx17+1 (2018-02-23) x86_64 GNU/Linux

kingneutron
Posts: 10
Joined: Mon Mar 19, 2018 7:54 pm

Re: BUG: MX-17.1 - zfs will not build with kernel 4.15

#7 Post by kingneutron »

--Additional info:
# file /boot/vmlinuz-4.15.0-1-amd64
/boot/vmlinuz-4.15.0-1-amd64: Linux kernel x86 boot executable bzImage, version 4.15.0-1-amd64 (stevep@mxlinux.org) #1 SMP Debian 4.15.4-1~mx17+1 (2018-02-23), RO-rootFS, swap_dev 0x4, Normal VGA

# file /bin/ls
/bin/ls: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=3c233e12c466a83aa9b2094b07dbfaa5bd10eccd, stripped

User avatar
Stevo
Developer
Posts: 12843
Joined: Fri Dec 15, 2006 8:07 pm

Re: BUG: MX-17.1 - zfs will not build with kernel 4.15

#8 Post by Stevo »

Argggh! That's going to be tough to try and figure out.

It works with the latest Liquorix kernel on my machine, though. We have backported Liquorix kernels in our test repo, with an easy install in the Package Installer.

Code: Select all

DKMS: install completed.
Selecting previously unselected package zfs-dkms.
(Reading database ... 716747 files and directories currently installed.)
Preparing to unpack .../zfs-dkms_0.7.6-1~mx17+1_all.deb ...
Unpacking zfs-dkms (0.7.6-1~mx17+1) ...
Setting up zfs-dkms (0.7.6-1~mx17+1) ...
Loading new zfs-0.7.6 DKMS files...
Building for 4.15.0-10.1-liquorix-amd64
Building initial module for 4.15.0-10.1-liquorix-amd64
Done.

zavl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-10.1-liquorix-amd64/extra/zfs/zavl/

zcommon.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-10.1-liquorix-amd64/extra/zfs/zcommon/

znvpair.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-10.1-liquorix-amd64/extra/zfs/znvpair/

zpios.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-10.1-liquorix-amd64/extra/zfs/zpios/

zunicode.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-10.1-liquorix-amd64/extra/zfs/zunicode/

zfs.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-10.1-liquorix-amd64/extra/zfs/zfs/

icp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-10.1-liquorix-amd64/extra/zfs/icp/

depmod...

DKMS: install completed.

kingneutron
Posts: 10
Joined: Mon Mar 19, 2018 7:54 pm

Re: BUG: MX-17.1 - zfs will not build with kernel 4.15

#9 Post by kingneutron »

> Argggh! That's going to be tough to try and figure out.

--Understandable, but I think it's best to revert the main repos to ZFS 0.6.5-9 or whatever was working previously so we don't break ZFS for *everyone* using MX17 at this point ;-) Thanks again, will keep trying every couple of days or sooner if notified via this thread...

User avatar
Stevo
Developer
Posts: 12843
Joined: Fri Dec 15, 2006 8:07 pm

Re: BUG: MX-17.1 - zfs will not build with kernel 4.15

#10 Post by Stevo »

kingneutron wrote:> Argggh! That's going to be tough to try and figure out.

--Understandable, but I think it's best to revert the main repos to ZFS 0.6.5-9 or whatever was working previously so we don't break ZFS for *everyone* using MX17 at this point ;-) Thanks again, will keep trying every couple of days or sooner if notified via this thread...
ZFS 0.6.5-9 won't build on any 4.15 kernel, so it's not really going to help. And 0.7.6 is supposed to build on older kernels, but we may have to test that to make sure it doesn't get the same incorrect architecture result. At least we know there's at least one kernel that works with the latest release--we also have antiX 4.15 kernels that should also work. Let me see what kernels among the ones I have installed it fails or succeeds with.

Post Reply

Return to “Bugs and Non-Package Requests Forum”