GNU bug report logs - #45401
ZFS package not compiling on recent kernel

Previous Next

Package: guix;

Reported by: raid5atemyhomework <raid5atemyhomework <at> protonmail.com>

Date: Thu, 24 Dec 2020 01:02:01 UTC

Severity: normal

To reply to this bug, email your comments to 45401 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#45401; Package guix. (Thu, 24 Dec 2020 01:02:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to raid5atemyhomework <raid5atemyhomework <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 24 Dec 2020 01:02:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: raid5atemyhomework <raid5atemyhomework <at> protonmail.com>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: ZFS package not compiling on recent kernel
Date: Thu, 24 Dec 2020 00:53:09 +0000
Installing `zfs` results in the following errors:

```
In file included from /tmp/guix-build-zfs-0.8.5.drv-0/zfs-0.8.5/include/sys/dmu.h:848:0,
                 from /tmp/guix-build-zfs-0.8.5.drv-0/zfs-0.8.5/include/sys/spa.h:44,
                 from /tmp/guix-build-zfs-0.8.5.drv-0/zfs-0.8.5/include/sys/spa_impl.h:35,
                 from /tmp/guix-build-zfs-0.8.5.drv-0/zfs-0.8.5/module/zfs/vdev_disk.c:30:
/tmp/guix-build-zfs-0.8.5.drv-0/zfs-0.8.5/module/zfs/vdev_disk.c: In function 'vdev_disk_open':
/tmp/guix-build-zfs-0.8.5.drv-0/zfs-0.8.5/include/linux/blkdev_compat.h:378:37: error: implicit declaration of function 'check_disk_change'; did you mean 'bdev_disk_changed'? [-Werror=implicit-function-declaration]
 #define vdev_bdev_reread_part(bdev) check_disk_change(bdev)
                                     ^
/tmp/guix-build-zfs-0.8.5.drv-0/zfs-0.8.5/module/zfs/vdev_disk.c:218:17: note: in expansion of macro 'vdev_bdev_reread_part'
     int error = vdev_bdev_reread_part(bdev);
                 ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-zfs-0.8.5.drv-0/zfs-0.8.5/module/zfs/vdev_disk.c: In function 'vdev_blkg_tryget':
/tmp/guix-build-zfs-0.8.5.drv-0/zfs-0.8.5/module/zfs/vdev_disk.c:506:37: error: 'struct percpu_ref' has no member named 'count'
   rc = atomic_long_inc_not_zero(&ref->count);
                                     ^~
cc1: some warnings being treated as errors
```

This is using kernel 5.10.2 I believe:

```
downloading from https://ci.guix.gnu.org/nar/lzip/si6ly6im9ih9fpycp5zq1895y2jl4kzm-linux-libre-5.10.2 ...
 linux-libre-5.10.2  76.4MiB

downloading from https://ci.guix.gnu.org/nar/lzip/gw4nybiqbfg7mayvykvrk4vd7jf2liyx-linux-libre-module-builder-5.10.2 ...
 linux-libre-module-builder-5.10.2  17.4MiB
```






Information forwarded to bug-guix <at> gnu.org:
bug#45401; Package guix. (Thu, 24 Dec 2020 02:17:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: raid5atemyhomework <raid5atemyhomework <at> protonmail.com>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: Re: ZFS package not compiling on recent kernel
Date: Thu, 24 Dec 2020 01:34:36 +0000
Looking at recent zfs release note: https://github.com/openzfs/zfs/releases/tag/zfs-0.8.5 and https://github.com/openzfs/zfs/releases/tag/zfs-0.8.6

> * Compatible with 2.6.32 - 5.9 Linux kernels

zfs-0.8.6 includes a few "Linux 5.10 compat" but is still not rated for 5.10.

Would it be possible to fix this by adding `#:linux ,linux-libre-5.9` to the `arguments` field of the `zfs` package?

Of course, it does require that we use a specific linux version.




Information forwarded to bug-guix <at> gnu.org:
bug#45401; Package guix. (Thu, 24 Dec 2020 02:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 45401 <at> debbugs.gnu.org (full text, mbox):

From: raid5atemyhomework <raid5atemyhomework <at> protonmail.com>
To: "45401 <at> debbugs.gnu.org" <45401 <at> debbugs.gnu.org>
Subject: ZFS package not compiling on recent kernel
Date: Thu, 24 Dec 2020 01:36:52 +0000
Looking at recent zfs release note: https://github.com/openzfs/zfs/releases/tag/zfs-0.8.5 and https://github.com/openzfs/zfs/releases/tag/zfs-0.8.6

> * Compatible with 2.6.32 - 5.9 Linux kernels

zfs-0.8.6 includes a few "Linux 5.10 compat" but is still not rated for 5.10.

Would it be possible to fix this by adding `#:linux ,linux-libre-5.9` to the `arguments` field of the `zfs` package?

Of course, it does require that we use a specific linux version.




This bug report was last modified 3 years and 114 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.