You are not logged in.

#1 2022-07-14 17:09:13

rage_311
Member
Registered: 2013-04-29
Posts: 12

[SOLVED] zfs-dkms and kernel upgrade issues

I've been running zfs on root on my Arch install for over 1.5 years now with virtually no issues until about a week ago.  After a full upgrade on 2022-07-06 (and me not watching closely enough, apparently), I was left unable to boot and a resulting kernel panic due to the zfs module not being built for the new kernel(s).  I have both the LTS and mainline kernel packages installed, and use the LTS kernel virtually all the time.

EDIT: forgot to mention that it happened again yesterday (2022-07-13)... you'd think I would have remembered to watch closely, just in case.

I'm not sure whether it's an issue with the upgrades or hooks not being run in the correct order anymore or a misconfiguration on my part, so any help would be greatly appreciated.

This seems to be the crux of the issue and has never appeared in the pacman log before that date:

[2022-07-06T18:27:21-0600] [ALPM-SCRIPTLET] ==> dkms install --no-depmod zfs/2.1.5 -k 5.15.52-1-lts
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] configure: error: 
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** This kernel does not include the required loadable module
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** support!

Here is the full pacman log from that upgrade:

[2022-07-06T18:25:45-0600] [PACMAN] Running 'pacman --sync -y -u --'
[2022-07-06T18:25:45-0600] [PACMAN] synchronizing package lists
[2022-07-06T18:25:46-0600] [PACMAN] starting full system upgrade
[2022-07-06T18:26:50-0600] [ALPM] running '60-mkinitcpio-remove.hook'...
[2022-07-06T18:26:50-0600] [ALPM] running '71-dkms-remove.hook'...
[2022-07-06T18:26:50-0600] [ALPM-SCRIPTLET] ==> dkms remove --no-depmod zfs/2.1.5 -k 5.15.50-1-lts
[2022-07-06T18:26:50-0600] [ALPM-SCRIPTLET] ==> dkms remove --no-depmod zfs/2.1.5 -k 5.18.7-arch1-1
[2022-07-06T18:26:51-0600] [ALPM-SCRIPTLET] ==> depmod 5.15.50-1-lts
[2022-07-06T18:26:53-0600] [ALPM-SCRIPTLET] ==> depmod 5.18.7-arch1-1
[2022-07-06T18:26:56-0600] [ALPM] transaction started
[2022-07-06T18:26:56-0600] [ALPM] upgraded binutils (2.38-5 -> 2.38-6)
[2022-07-06T18:26:57-0600] [ALPM] upgraded llvm-libs (13.0.1-6 -> 14.0.6-1)
[2022-07-06T18:26:57-0600] [ALPM] upgraded compiler-rt (13.0.1-1 -> 14.0.6-1)
[2022-07-06T18:26:57-0600] [ALPM] upgraded libisl (0.24-4 -> 0.25-1)
[2022-07-06T18:26:57-0600] [ALPM] upgraded clang (13.0.1-2 -> 14.0.6-1)
[2022-07-06T18:26:57-0600] [ALPM] upgraded wayland (1.20.0-2 -> 1.21.0-1)
[2022-07-06T18:26:57-0600] [ALPM] upgraded mesa (22.1.2-1 -> 22.1.3-1)
[2022-07-06T18:26:57-0600] [ALPM] upgraded glib2 (2.72.2-1 -> 2.72.3-1)
[2022-07-06T18:26:57-0600] [ALPM] upgraded kmod (29-3 -> 30-1)
[2022-07-06T18:26:57-0600] [ALPM] upgraded hwdata (0.360-1 -> 0.361-1)
[2022-07-06T18:26:58-0600] [ALPM] upgraded nvidia-utils (515.48.07-2 -> 515.57-1)
[2022-07-06T18:26:58-0600] [ALPM-SCRIPTLET] If you run into trouble with CUDA not being available, run nvidia-modprobe first.
[2022-07-06T18:26:58-0600] [ALPM-SCRIPTLET] If you use GDM on Wayland, you might have to run systemctl enable --now nvidia-resume.service
[2022-07-06T18:26:58-0600] [ALPM] upgraded opencl-nvidia (515.48.07-2 -> 515.57-1)
[2022-07-06T18:27:01-0600] [ALPM] upgraded cudnn (8.4.0.27-1 -> 8.4.1.50-1)
[2022-07-06T18:27:01-0600] [ALPM] upgraded deno (1.23.1-1 -> 1.23.3-1)
[2022-07-06T18:27:01-0600] [ALPM] upgraded dkms (3.0.3-1 -> 3.0.5-1)
[2022-07-06T18:27:01-0600] [ALPM] upgraded docker-compose (2.6.0-1 -> 2.6.1-1)
[2022-07-06T18:27:01-0600] [ALPM] upgraded pango (1:1.50.7-1 -> 1:1.50.8-1)
[2022-07-06T18:27:01-0600] [ALPM] upgraded dunst (1.8.1-1 -> 1.9.0-1)
[2022-07-06T18:27:01-0600] [ALPM] upgraded libmfx (22.4.2-1 -> 22.4.4-1)
[2022-07-06T18:27:01-0600] [ALPM] upgraded gtk-update-icon-cache (1:4.6.5-1 -> 1:4.6.6-1)
[2022-07-06T18:27:01-0600] [ALPM] upgraded electron17 (17.4.3-1 -> 17.4.9-1)
[2022-07-06T18:27:01-0600] [ALPM] upgraded faudio (22.06-1 -> 22.07-1)
[2022-07-06T18:27:02-0600] [ALPM] upgraded firefox (102.0-1 -> 102.0.1-1)
[2022-07-06T18:27:02-0600] [ALPM] upgraded imagemagick (7.1.0.39-1 -> 7.1.0.40-1)
[2022-07-06T18:27:02-0600] [ALPM] upgraded intel-media-driver (22.4.3-1 -> 22.4.4-1)
[2022-07-06T18:27:02-0600] [ALPM] upgraded intel-media-sdk (22.4.2-1 -> 22.4.4-1)
[2022-07-06T18:27:02-0600] [ALPM] upgraded lib32-llvm-libs (13.0.1-1 -> 14.0.6-1)
[2022-07-06T18:27:02-0600] [ALPM] upgraded lib32-mesa (22.1.2-1 -> 22.1.3-1)
[2022-07-06T18:27:02-0600] [ALPM] upgraded lib32-nvidia-utils (515.48.07-1 -> 515.57-1)
[2022-07-06T18:27:02-0600] [ALPM] upgraded lib32-faudio (22.06-1 -> 22.07-1)
[2022-07-06T18:27:02-0600] [ALPM] upgraded lib32-glib2 (2.72.2-1 -> 2.72.3-1)
[2022-07-06T18:27:03-0600] [ALPM] upgraded libgphoto2 (2.5.29-1 -> 2.5.30-1)
[2022-07-06T18:27:03-0600] [ALPM] upgraded libmtp (1.1.19-2 -> 1.1.20-1)
[2022-07-06T18:27:03-0600] [ALPM] upgraded libxnvctrl (515.48.07-1 -> 515.57-1)
[2022-07-06T18:27:03-0600] [ALPM] upgraded mkinitcpio (31-2 -> 31-3)
[2022-07-06T18:27:04-0600] [ALPM] upgraded linux (5.18.7.arch1-1 -> 5.18.9.arch1-1)
[2022-07-06T18:27:05-0600] [ALPM] upgraded linux-headers (5.18.7.arch1-1 -> 5.18.9.arch1-1)
[2022-07-06T18:27:06-0600] [ALPM] upgraded linux-lts (5.15.50-1 -> 5.15.52-1)
[2022-07-06T18:27:07-0600] [ALPM] upgraded linux-lts-headers (5.15.50-1 -> 5.15.52-1)
[2022-07-06T18:27:08-0600] [ALPM] upgraded llvm (13.0.1-6 -> 14.0.6-1)
[2022-07-06T18:27:08-0600] [ALPM] upgraded protobuf (21.1-1 -> 21.2-1)
[2022-07-06T18:27:08-0600] [ALPM] upgraded python-protobuf (21.1-1 -> 21.2-1)
[2022-07-06T18:27:08-0600] [ALPM] upgraded python-cffi (1.15.0-3 -> 1.15.1-1)
[2022-07-06T18:27:09-0600] [ALPM] upgraded mitmproxy (8.1.0-2 -> 8.1.1-1)
[2022-07-06T18:27:09-0600] [ALPM] upgraded npm (8.9.0-1 -> 8.13.0-1)
[2022-07-06T18:27:09-0600] [ALPM] upgraded nvidia (515.48.07-13 -> 515.57-3)
[2022-07-06T18:27:09-0600] [ALPM] upgraded nvidia-lts (1:515.48.07-7 -> 1:515.57-2)
[2022-07-06T18:27:09-0600] [ALPM] upgraded nvidia-settings (515.48.07-1 -> 515.57-1)
[2022-07-06T18:27:09-0600] [ALPM] upgraded openmp (13.0.1-1 -> 14.0.6-1)
[2022-07-06T18:27:09-0600] [ALPM] upgraded postgresql-old-upgrade (13.7-2 -> 13.7-3)
[2022-07-06T18:27:09-0600] [ALPM] upgraded python-colorama (0.4.4-6 -> 0.4.5-1)
[2022-07-06T18:27:09-0600] [ALPM] upgraded python-google-auth-oauthlib (0.5.1-1 -> 0.5.2-1)
[2022-07-06T18:27:09-0600] [ALPM] upgraded python-numpy (1.22.4-1 -> 1.23.0-1)
[2022-07-06T18:27:09-0600] [ALPM] upgraded python-pillow (9.1.1-1 -> 9.2.0-1)
[2022-07-06T18:27:10-0600] [ALPM] upgraded qt5-base (5.15.5+kde+r166-1 -> 5.15.5+kde+r170-1)
[2022-07-06T18:27:13-0600] [ALPM] upgraded python-pytorch-cuda (1.11.0-11 -> 1.12.0-2)
[2022-07-06T18:27:13-0600] [ALPM] upgraded qt5-tools (5.15.5+kde+r1-1 -> 5.15.5+kde+r1-3)
[2022-07-06T18:27:14-0600] [ALPM] upgraded rust (1:1.61.0-1 -> 1:1.62.0-1)
[2022-07-06T18:27:14-0600] [ALPM] upgraded rust-src (1:1.61.0-1 -> 1:1.62.0-1)
[2022-07-06T18:27:14-0600] [ALPM] upgraded rust-analyzer (20220627-1 -> 20220704-1)
[2022-07-06T18:27:14-0600] [ALPM] upgraded signal-desktop (5.47.0-1 -> 5.48.0-1)
[2022-07-06T18:27:14-0600] [ALPM] upgraded solaar (1.1.3-1 -> 1.1.4-1)
[2022-07-06T18:27:14-0600] [ALPM] upgraded syncthing (1.20.2-1 -> 1.20.3-1)
[2022-07-06T18:27:14-0600] [ALPM] upgraded timescaledb-tune (0.12.0-2 -> 0.13.0-1)
[2022-07-06T18:27:15-0600] [ALPM] upgraded webkit2gtk (2.36.3-1 -> 2.36.4-2)
[2022-07-06T18:27:16-0600] [ALPM] upgraded wine (7.11-1 -> 7.12-1)
[2022-07-06T18:27:16-0600] [ALPM] installed webkit2gtk-4.1 (2.36.4-2)
[2022-07-06T18:27:16-0600] [ALPM] upgraded zenity (3.42.1-1 -> 3.43.0-1)
[2022-07-06T18:27:16-0600] [ALPM] transaction completed
[2022-07-06T18:27:17-0600] [ALPM] running '20-systemd-sysusers.hook'...
[2022-07-06T18:27:17-0600] [ALPM] running '30-systemd-binfmt.hook'...
[2022-07-06T18:27:17-0600] [ALPM] running '30-systemd-daemon-reload.hook'...
[2022-07-06T18:27:18-0600] [ALPM] running '30-systemd-hwdb.hook'...
[2022-07-06T18:27:18-0600] [ALPM] running '30-systemd-sysctl.hook'...
[2022-07-06T18:27:18-0600] [ALPM] running '30-systemd-tmpfiles.hook'...
[2022-07-06T18:27:18-0600] [ALPM] running '30-systemd-udev-reload.hook'...
[2022-07-06T18:27:18-0600] [ALPM] running '30-systemd-update.hook'...
[2022-07-06T18:27:18-0600] [ALPM] running '60-depmod.hook'...
[2022-07-06T18:27:21-0600] [ALPM] running '70-dkms-install.hook'...
[2022-07-06T18:27:21-0600] [ALPM-SCRIPTLET] ==> dkms install --no-depmod zfs/2.1.5 -k 5.15.52-1-lts
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] configure: error: 
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** This kernel does not include the required loadable module
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** support!
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		***
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** To build OpenZFS as a loadable Linux kernel module
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** enable loadable module support by setting
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** `CONFIG_MODULES=y` in the kernel configuration and run
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** `make modules_prepare` in the Linux source tree.
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		***
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** If you don't intend to enable loadable kernel module
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** support, please compile OpenZFS as a Linux kernel built-in.
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		***
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** Prepare the Linux source tree by running `make prepare`,
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** use the OpenZFS `--enable-linux-builtin` configure option,
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** copy the OpenZFS sources into the Linux source tree using
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** `./copy-builtin <linux source directory>`,
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** set `CONFIG_ZFS=y` in the kernel configuration and compile
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 		*** kernel as usual.
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] 			
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] Error! Bad return status for module build on kernel: 5.15.52-1-lts (x86_64)
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] Consult /var/lib/dkms/zfs/2.1.5/build/make.log for more information.
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] ==> WARNING: `dkms install --no-depmod zfs/2.1.5 -k 5.15.52-1-lts' exited 10
[2022-07-06T18:27:26-0600] [ALPM-SCRIPTLET] ==> dkms install --no-depmod zfs/2.1.5 -k 5.18.9-arch1-1
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] configure: error: 
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** This kernel does not include the required loadable module
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** support!
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		***
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** To build OpenZFS as a loadable Linux kernel module
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** enable loadable module support by setting
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** `CONFIG_MODULES=y` in the kernel configuration and run
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** `make modules_prepare` in the Linux source tree.
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		***
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** If you don't intend to enable loadable kernel module
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** support, please compile OpenZFS as a Linux kernel built-in.
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		***
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** Prepare the Linux source tree by running `make prepare`,
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** use the OpenZFS `--enable-linux-builtin` configure option,
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** copy the OpenZFS sources into the Linux source tree using
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** `./copy-builtin <linux source directory>`,
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** set `CONFIG_ZFS=y` in the kernel configuration and compile
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 		*** kernel as usual.
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] 			
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] Error! Bad return status for module build on kernel: 5.18.9-arch1-1 (x86_64)
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] Consult /var/lib/dkms/zfs/2.1.5/build/make.log for more information.
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] ==> WARNING: `dkms install --no-depmod zfs/2.1.5 -k 5.18.9-arch1-1' exited 10
[2022-07-06T18:27:31-0600] [ALPM] running '90-mkinitcpio-install.hook'...
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] ==> Starting build: 5.15.52-1-lts
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2022-07-06T18:27:31-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: xhci_pci
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET]   -> Running build hook: [zfs]
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zavl'
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `znvpair'
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zunicode'
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zcommon'
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zfs'
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `spl'
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET]   -> Running build hook: [shutdown]
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts.img
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> Starting build: 5.15.52-1-lts
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2022-07-06T18:27:32-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: wd719x
[2022-07-06T18:27:33-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: qla2xxx
[2022-07-06T18:27:33-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2022-07-06T18:27:33-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: qed
[2022-07-06T18:27:33-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: bfa
[2022-07-06T18:27:33-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: qla1280
[2022-07-06T18:27:33-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: xhci_pci
[2022-07-06T18:27:33-0600] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET]   -> Running build hook: [zfs]
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zavl'
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `znvpair'
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zunicode'
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zcommon'
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zfs'
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `spl'
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET]   -> Running build hook: [shutdown]
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2022-07-06T18:27:34-0600] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET] ==> Starting build: 5.18.9-arch1-1
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: xhci_pci
[2022-07-06T18:27:35-0600] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET]   -> Running build hook: [zfs]
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zavl'
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `znvpair'
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zunicode'
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zcommon'
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zfs'
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `spl'
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET]   -> Running build hook: [shutdown]
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> Starting build: 5.18.9-arch1-1
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: qla1280
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: bfa
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: qla2xxx
[2022-07-06T18:27:36-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: qed
[2022-07-06T18:27:37-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: wd719x
[2022-07-06T18:27:37-0600] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: xhci_pci
[2022-07-06T18:27:37-0600] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET]   -> Running build hook: [zfs]
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zavl'
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `znvpair'
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zunicode'
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zcommon'
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `zfs'
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET] ==> ERROR: module not found: `spl'
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET]   -> Running build hook: [shutdown]
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2022-07-06T18:27:38-0600] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
[2022-07-06T18:27:39-0600] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2022-07-06T18:27:39-0600] [ALPM] running 'detect-old-perl-modules.hook'...
[2022-07-06T18:27:39-0600] [ALPM] running 'fontconfig.hook'...
[2022-07-06T18:27:39-0600] [ALPM] running 'fontconfig-32.hook'...
[2022-07-06T18:27:39-0600] [ALPM] running 'gtk-update-icon-cache.hook'...
[2022-07-06T18:27:39-0600] [ALPM] running 'texinfo-install.hook'...
[2022-07-06T18:27:39-0600] [ALPM] running 'update-desktop-database.hook'...
[2022-07-06T18:30:15-0600] [PACMAN] Running 'pacman --upgrade --noconfirm -- /home/matt/.cache/paru/clone/azure-cli/azure-cli-2.38.0-1-any.pkg.tar.xz'
[2022-07-06T18:30:16-0600] [ALPM] transaction started
[2022-07-06T18:30:20-0600] [ALPM] upgraded azure-cli (2.37.0-1 -> 2.38.0-1)
[2022-07-06T18:30:20-0600] [ALPM] transaction completed
[2022-07-06T18:30:21-0600] [ALPM] running '30-systemd-update.hook'...
[2022-07-06T18:31:18-0600] [PACMAN] Running 'pacman --upgrade --noconfirm -- /home/matt/.cache/paru/clone/quakespasm/quakespasm-0.94.6-1-x86_64.pkg.tar.xz'
[2022-07-06T18:31:18-0600] [ALPM] transaction started
[2022-07-06T18:31:18-0600] [ALPM] upgraded quakespasm (0.94.5-1 -> 0.94.6-1)
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: You need the Quake data (.pak) files to play.
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: pak0.pak to play the shareware episode and/or
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: additionally pak1.pak for the whole game.
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: Put them into <YOUR_HOME_DIR>/.quakespasm/id1/
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] 
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET]                 :: If you have uncommented line in package(),
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: Here is how to install MPs and extensions.
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] 
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: There is desktop file for Mission Pack 1 (hipnotic)
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: Mission Pack 2 (rogue)
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: and for Abyss of Pandemonium (impel)
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: You need to copy paks for each extension in
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: <YOUR_HOME_DIR>/.quakespasm/hipnotic (for Mission pack 1)
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: <YOUR_HOME_DIR>/.quakespasm/rogue (for Mission pack 2)
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: <YOUR_HOME_DIR>/.quakespasm/impel (for Abyss of Pandemonium)
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] 
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: The last one can be grabbed for free from : 
[2022-07-06T18:31:18-0600] [ALPM-SCRIPTLET] :: https://www.quaddicted.com/reviews/aopfm_v2.html
[2022-07-06T18:31:18-0600] [ALPM] transaction completed
[2022-07-06T18:31:18-0600] [ALPM] running '30-systemd-update.hook'...
[2022-07-06T18:31:18-0600] [ALPM] running 'gtk-update-icon-cache.hook'...
[2022-07-06T18:31:18-0600] [ALPM] running 'update-desktop-database.hook'...

/etc/pacman.conf (especially showing archzfs repo addition):

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   = linux linux-headers
IgnorePkg   = postgresql postgresql-libs timescaledb
#IgnorePkg   = neovim
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
ParallelDownloads = 5
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

[archzfs]
Server = http://archzfs.com/$repo/x86_64

And /etc/dkms/framework.conf is fully commented out with nothing in /etc/dkms/framework.conf.d.

Last edited by rage_311 (2022-07-17 19:39:42)

Offline

#2 2022-07-14 20:29:56

rage_311
Member
Registered: 2013-04-29
Posts: 12

Re: [SOLVED] zfs-dkms and kernel upgrade issues

I tried rolling back linux, linux-lts, zfs-dkms, and zfs-utils to versions when they were in a known good state on my machine with no luck.  I still get the same issues with failures to build zfs modules.  Also, reinstalling linux{,-lts} and/or zfs-dkms doesn't resolve it.

Strangely, the only way I've been able to fix it -- since it wouldn't boot at all -- is via live manjaro distros.  In the live distro I install and load the zfs module, mount all required zfs vols, manjaro-chroot into the arch install, and reinstall linux{,-lts} and zfs-dkms.  I don't understand why doing it that way would resolve it, but I've only been able to do it this way both times.

Offline

#3 2022-07-17 19:39:15

rage_311
Member
Registered: 2013-04-29
Posts: 12

Re: [SOLVED] zfs-dkms and kernel upgrade issues

I figured it out.  I had installed Nvidia's cuda (https://archlinux.org/packages/community/x86_64/cuda/) at some recent point before the first breaking upgrade.  With cuda comes gcc11, which took over the "gcc" package (v12.1.0 currently) as the default gcc -- i.e.

which gcc

pointed to the /opt/cuda/bin/gcc (v11) binary.  I'm still not sure why this would cause zfs to be unable to compile... but I removed everything related to cuda and the problem is resolved.

Offline

#4 2022-07-18 03:05:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,433

Re: [SOLVED] zfs-dkms and kernel upgrade issues

Modules must be built with the same compiler that built the kernel. That's why gcc11 fails.

You had not only installed CUDA, you had added it to your PATH before /usr/bin/, overriding the default gcc. This is not a problem with CUDA, it's a configuration issue.

Online

Board footer

Powered by FluxBB