Hi. I'm installing arch on zfs root. I've done this before in other systems. The build is failing with
configure: error:
*** None of the expected "global page state" interfaces were detected.
*** This may be because your kernel version is newer than what is
*** supported, or you are using a patched custom kernel with
*** incompatible modifications.
***
*** ZFS Version: zfs-2.2.4-1
*** Compatible Kernels: 3.10 - 6.8
Building module:
Cleaning build area...(bad exit status: 2)
make -j22 KERNELRELEASE=6.6.50-1-lts...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.50-1-lts (x86_64)
Consult /var/lib/dkms/zfs/2.2.4/build/make.log for more information.
The actual error is not in make.log but in config.log
/usr/bin/env: 'perl': No such file or directory
configure:61462: $? = 1
configure:61475: result: no
configure:61483: checking whether global_page_state enums are sane
configure:61515: result: no
configure:61517: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND
configure:61520: error:
*** None of the expected "global page state" interfaces were detected.
*** This may be because your kernel version is newer than what is
*** supported, or you are using a patched custom kernel with
*** incompatible modifications.
***
*** ZFS Version: zfs-2.2.4-1
*** Compatible Kernels: 3.10 - 6.8
So perl is needed during dkms install, but on a fresh system it is not installed. After installing perl package, the problem is fixed.
Probably, adding perl as a dependency is a good idea.
Pinned Comments
kstolp commented on 2023-09-29 00:34 (UTC)
When requesting changes, please include detailed reasoning for the change.
kstolp commented on 2023-01-07 09:31 (UTC)
If you receive this error when trying to build, it is because you have not imported the GPG keys used for verification.
You have two options:
1) Import the two keys into your keyring. ArchWiki article. You can find the key IDs in the PKGBUILD file, in the
validpgpkeys
array. (recommended)2) Alternatively, you can skip this verification by passing the
--skippgpcheck
argument tomakepkg
when building. (not recommended)