You are not logged in.

#1 2022-10-13 11:25:48

TheEbolaDoc
Member
From: Germany
Registered: 2018-04-11
Posts: 5

[solved] dkms install hook fails when installing zfs-dkms

Backstory: ZFS used to work with this setup and I had a forced shutdown (not during upgrade) and now when I try to (re-)install zfs-dkms on my NAS I get the following error:

(2/2) Install DKMS modules
==> dkms install --no-depmod zfs/2.1.6 -k 5.19.13-arch1-1
fgrep: warning: fgrep is obsolescent; using grep -F
configure: error: 
		*** This kernel does not include the required loadable module
		*** support!
		***
		*** To build OpenZFS as a loadable Linux kernel module
		*** enable loadable module support by setting
		*** `CONFIG_MODULES=y` in the kernel configuration and run
		*** `make modules_prepare` in the Linux source tree.
		***
		*** If you don't intend to enable loadable kernel module
		*** support, please compile OpenZFS as a Linux kernel built-in.
		***
		*** Prepare the Linux source tree by running `make prepare`,
		*** use the OpenZFS `--enable-linux-builtin` configure option,
		*** copy the OpenZFS sources into the Linux source tree using
		*** `./copy-builtin <linux source directory>`,
		*** set `CONFIG_ZFS=y` in the kernel configuration and compile
		*** kernel as usual.
			
Error! Bad return status for module build on kernel: 5.19.13-arch1-1 (x86_64)
Consult /var/lib/dkms/zfs/2.1.6/build/make.log for more information.
==> WARNING: `dkms install --no-depmod zfs/2.1.6 -k 5.19.13-arch1-1' exited 10

Contents of /var/lib/dkms/zfs/2.1.6/build/make.log:

DKMS make.log for zfs-2.1.6 for kernel 5.19.13-arch1-1 (x86_64)
Thu Oct 13 12:59:28 PM CEST 2022
make: Entering directory '/var/lib/dkms/zfs/2.1.6/build/module'
make: *** No targets specified and no makefile found.  Stop.
make: Leaving directory '/var/lib/dkms/zfs/2.1.6/build/module'

Some general information about the system:

$ uname -a
Linux scotty-the-fourth 5.19.13-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 04 Oct 2022 14:36:58 +0000 x86_64 GNU/Linux

Find the full install procedure as gist here:
https://gist.github.com/christian-heuse … 7a71f6bc8f

Note that I do not think that this is a duplicate of https://bbs.archlinux.org/viewtopic.php?id=278051, since I never had CUDA installed and gcc correctly points to the system gcc.

Also this is my first post on the forums, I hope I made no mistakes with regard to the rules!

Last edited by TheEbolaDoc (2022-10-13 22:14:12)

Offline

#2 2022-10-13 14:36:52

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 630

Re: [solved] dkms install hook fails when installing zfs-dkms

What version of pahole do you have?

Offline

#3 2022-10-13 17:19:33

TheEbolaDoc
Member
From: Germany
Registered: 2018-04-11
Posts: 5

Re: [solved] dkms install hook fails when installing zfs-dkms

I have version 1:1.23-1 installed

# pacman -Q pahole
pahole 1:1.23-1

Offline

#4 2022-10-13 18:18:41

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 630

Re: [solved] dkms install hook fails when installing zfs-dkms

You should post the entire pacman log from that update.

Barring that..

which gcc

Offline

#5 2022-10-13 18:24:07

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,635

Re: [solved] dkms install hook fails when installing zfs-dkms

Since the error is during the configure step, see config.log instead of make.log.

Offline

#6 2022-10-13 18:25:01

TheEbolaDoc
Member
From: Germany
Registered: 2018-04-11
Posts: 5

Re: [solved] dkms install hook fails when installing zfs-dkms

Zod wrote:

You should post the entire pacman log from that update.

https://gist.github.com/christian-heuse … 9e19da40d9

Zod wrote:

Barring that..

which gcc
scotty-the-fourth:~:# which gcc       
/usr/bin/gcc
scotty-the-fourth:~:# /usr/bin/gcc --version
gcc (GCC) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Offline

#7 2022-10-13 18:31:20

TheEbolaDoc
Member
From: Germany
Registered: 2018-04-11
Posts: 5

Re: [solved] dkms install hook fails when installing zfs-dkms

Scimmia wrote:

Since the error is during the configure step, see config.log instead of make.log.

https://gist.github.com/christian-heuse … ae4ec1d60f
I have looked through it briefly but to be honest I dont know why it fails ... hmm

Offline

#8 2022-10-13 19:30:20

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 630

Re: [solved] dkms install hook fails when installing zfs-dkms

The only error I see (I think) is: checking wether CONFIG_MODULES is defined and the result is no .

There is this closed OpenZFS issue...

https://github.com/openzfs/zfs/issues/10832

A fix was pushed back in April although it keeps getting referenced up until 20 days ago.

I think if I were you I would remove the zfs-dkms from dkms, uninstall them from your system, git clone them and then rebuild allowing dkms to re-build the modules.

If that *DOES* work, Arch is on kernel 6.0 and pahole ver 1:1.24-1...I would work on getting there.

Offline

#9 2022-10-13 19:39:02

loqs
Member
Registered: 2014-03-06
Posts: 17,550

Re: [solved] dkms install hook fails when installing zfs-dkms

Zod wrote:

The only error I see (I think) is: checking wether CONFIG_MODULES is defined and the result is no .

There is this closed OpenZFS issue...

https://github.com/openzfs/zfs/issues/10832

A fix was pushed back in April although it keeps getting referenced up until 20 days ago.

The error message  is from the fix to that issue proving it is applied.

Zod wrote:

I think if I were you I would remove the zfs-dkms from dkms, uninstall them from your system, git clone them and then rebuild allowing dkms to re-build the modules.

If that *DOES* work, Arch is on kernel 6.0 and pahole ver 1:1.24-1...I would work on getting there.

Does zfs support 6.0?  https://github.com/openzfs/zfs/issues/14024

What is the output of

pacman -Qkk linux linux-headers
grep CONFIG_MODULES /usr/lib/modules/*/build/include/generated/autoconf.h

Last edited by loqs (2022-10-13 19:39:21)

Offline

#10 2022-10-13 19:45:05

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 630

Re: [solved] dkms install hook fails when installing zfs-dkms

Edit: kernel update

[jbarks@carlos ~]$ pacman -Q zfs-dkms
zfs-dkms 2.1.6-1
[jbarks@carlos ~]$ pacman -Q linux-zen
linux-zen 6.0.1.zen2-1
[jbarks@carlos ~]$ pacman -Q linux-zen-headers
linux-zen-headers 6.0.1.zen2-1
[jbarks@carlos ~]$ pacman -Q pahole
pahole 1:1.24-1
[jbarks@carlos ~]$ dkms status
zfs/2.1.6, 6.0.1-zen2-1-zen, x86_64: installed
[jbarks@carlos ~]$ zpool status
  pool: tasker
 state: ONLINE
  scan: scrub repaired 0B in 01:41:53 with 0 errors on Mon Oct 10 09:31:04 2022
config:

        NAME                        STATE     READ WRITE CKSUM
        tasker                      ONLINE       0     0     0
          mirror-0                  ONLINE       0     0     0
            wwn-0x50014ee65d16c40f  ONLINE       0     0     0
            wwn-0x50014ee65cf90f17  ONLINE       0     0     0

errors: No known data errors

I wasn't sure who you were asking so...

[jbarks@carlos ~]$ pacman -Qkk linux-zen linux-zen-headers
linux-zen: 6901 total files, 0 altered files
linux-zen-headers: 19056 total files, 0 altered files
[jbarks@carlos ~]$ grep CONFIG_MODULES /usr/lib/modules/*/build/include/generated/autoconf.h
#define CONFIG_MODULES_USE_ELF_RELA 1
#define CONFIG_MODULES_TREE_LOOKUP 1
#define CONFIG_MODULES 1
[jbarks@carlos ~]$ 

Last edited by Zod (2022-10-13 21:13:04)

Offline

#11 2022-10-13 22:11:46

TheEbolaDoc
Member
From: Germany
Registered: 2018-04-11
Posts: 5

Re: [solved] dkms install hook fails when installing zfs-dkms

Fixed by kernel 6.0.1.arch1-1 landing in the repo!

Offline

Board footer

Powered by FluxBB