Skip to content

modprobe: FATAL: Module zfs not found in directory /lib/modules/6.2.8-200.fc37.x86_64 #14679

Closed
@afberendsen

Description

@afberendsen

System information

Type Version/Name
Distribution Name Fedora
Distribution Version 37
Kernel Version 6.2.8-200.fc37.x86_64
Architecture Intel
OpenZFS Version 2.1.9

Describe the problem you're observing

module does not compile on Fedora 37 new kernel update

sudo dnf update -y
...
Running scriptlet: zfs-dkms-2.1.9-1.fc37.noarch                                                                                                             142/143
Loading new zfs-2.1.9 DKMS files...
Building for 6.2.8-200.fc37.x86_64
Building initial module for 6.2.8-200.fc37.x86_64
Error! Bad return status for module build on kernel: 6.2.8-200.fc37.x86_64 (x86_64)
Consult /var/lib/dkms/zfs/2.1.9/build/make.log for more information.
warning: %post(zfs-dkms-2.1.9-1.fc37.noarch) scriptlet failed, exit status 10

Error in POSTIN scriptlet in rpm package zfs-dkms
  Installing       : zfs-2.1.9-1.fc37.x86_64                                                                                                                  143/143
  Running scriptlet: zfs-2.1.9-1.fc37.x86_64                                                                                                                  143/143
Created symlink /etc/systemd/system/zfs-import.target.wants/zfs-import-cache.service → /usr/lib/systemd/system/zfs-import-cache.service.

Log file shows

...
make -C /lib/modules/6.2.8-200.fc37.x86_64/build  \
          \
        M="$PWD"  O=/lib/modules/6.2.8-200.fc37.x86_64/build CONFIG_ZFS=m modules
make[3]: Entering directory '/usr/src/kernels/6.2.8-200.fc37.x86_64'
  CC [M]  /var/lib/dkms/zfs/2.1.9/build/module/avl/avl.o
...
  CC [M]  /var/lib/dkms/zfs/2.1.9/build/module/zfs/ddt_zap.o
/var/lib/dkms/zfs/2.1.9/build/module/lua/ldo.o: warning: objtool: luaD_throw() falls through to next function resume_error()
  CC [M]  /var/lib/dkms/zfs/2.1.9/build/module/icp/os/modhash.o
...
ERROR: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'bio_start_io_acct'
ERROR: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'bio_end_io_acct_remapped'
make[4]: *** [scripts/Makefile.modpost:138: /var/lib/dkms/zfs/2.1.9/build/module/Module.symvers] Error 1
make[3]: *** [Makefile:1977: modpost] Error 2
make[3]: Leaving directory '/usr/src/kernels/6.2.8-200.fc37.x86_64'
make[2]: *** [Makefile:55: modules-Linux] Error 2
make[2]: Leaving directory '/var/lib/dkms/zfs/2.1.9/build/module'
make[1]: *** [Makefile:933: all-recursive] Error 1
make[1]: Leaving directory '/var/lib/dkms/zfs/2.1.9/build'
make: *** [Makefile:794: all] Error 2

Tried a clean install with commands below and got the same result.

sudo dnf remove -y zfs-release zfs
sudo dnf install -y https://zfsonlinux.org/fedora/zfs-release.fc${VERSION_ID}.noarch.rpm
sudo dnf install -y https://zfsonlinux.org/fedora/zfs-release-2-2$(rpm --eval "%{dist}").noarch.rpm
sudo dnf install -y zfs

Describe how to reproduce the problem

See above
Reverting grub to use previous kernel version made ZFS to work again :)

Include any warning/errors/backtraces from the system logs

See above

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions