[Pkg-zfsonlinux-devel] Bug#1012600: zfs-dkms: Compilation fails. ZFS completely non-functional after latest kernel upgrade.

Mauro Condarelli mc5686 at mclink.it
Fri Jun 10 01:04:29 BST 2022


Package: zfs-dkms
Version: 2.1.4-1
Severity: grave
Tags: ftbfs
Justification: renders package unusable
X-Debbugs-Cc: mc5686 at mclink.it

Dear Maintainer,
zfs system is completely non-functional due to zfs-dkms kernel module 
compilation terminating in error.

My `/home/` is on zfs and thus I'm restricted to use `root` who has 
a usable `$HOME`.

   * What led up to the situation?
Routine "apt update && apt upgrade", most likely due to kernel upgrade.
After installation system asked for a reboot to complete kernel update.
After reboot I got the normal `lightdm` login screen, but I was unable 
to login.
I went to a text console to analyze situation and I found /home/ completely
wiped.
Also dmesg shows system does not find suitable ZFS moduled and thus is
unable to mount pool.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
I tried to reinstall the failing package, but there are evident errors
visible in `/var/lib/dkms/zfs/2.1.4/build/make.log`
I am unsure how I can attach the file here.
If I don't manage it I will try to comment on the bug from another machine.

System is currently completely unusable.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-1-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zfs-dkms depends on:
ii  debconf [debconf-2.0]  1.5.79
ii  dkms                   3.0.3-2
ii  file                   1:5.41-4
ii  libc6-dev [libc-dev]   2.33-7
ii  libpython3-stdlib      3.10.4-1+b1
ii  lsb-release            11.2
ii  perl                   5.34.0-4
ii  python3-distutils      3.10.5-1

Versions of packages zfs-dkms recommends:
ii  linux-libc-dev  5.18.2-1
ii  zfs-zed         2.1.4-1+b1
ii  zfsutils-linux  2.1.4-1+b1

Versions of packages zfs-dkms suggests:
pn  debhelper  <none>

-- debconf information:
  zfs-dkms/stop-build-for-32bit-kernel: true
  zfs-dkms/stop-build-for-unknown-kernel: true
* zfs-dkms/note-incompatible-licenses:
-------------- next part --------------
DKMS make.log for zfs-2.1.4 for kernel 5.18.0-1-amd64 (x86_64)
Fri Jun 10 12:50:47 AM CEST 2022
make  all-recursive
make[1]: Entering directory '/var/lib/dkms/zfs/2.1.4/build'
Making all in module
make[2]: Entering directory '/var/lib/dkms/zfs/2.1.4/build/module'
list='icp lua zstd'; for td in $list; do make -C $td; done
make[3]: Entering directory '/var/lib/dkms/zfs/2.1.4/build/module/icp'
mkdir -p api core spi io os algs algs/aes algs/edonr algs/modes algs/sha1 algs/sha2 algs/skein asm-x86_64 asm-x86_64/aes asm-x86_64/modes asm-x86_64/sha1 asm-x86_64/sha2 asm-i386 asm-generic
make[3]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build/module/icp'
make[3]: Entering directory '/var/lib/dkms/zfs/2.1.4/build/module/lua'
mkdir -p setjmp
make[3]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build/module/lua'
make[3]: Entering directory '/var/lib/dkms/zfs/2.1.4/build/module/zstd'
mkdir -p lib
make[3]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build/module/zstd'
make -C /lib/modules/5.18.0-1-amd64/build  \
	  \
	M="$PWD"  O=/lib/modules/5.18.0-1-amd64/build CONFIG_ZFS=m modules
make[3]: Entering directory '/usr/src/linux-headers-5.18.0-1-amd64'
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/nvpair/nvpair.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lapi.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/unicode/u8_textprep.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/unicode/uconv.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/nvpair/fnvpair.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/avl/avl.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-atomic.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lauxlib.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/illumos-crypto.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/cityhash.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zstd/zfs_zstd.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/abd.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-condvar.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/api/kcf_cipher.o
  LD [M]  /var/lib/dkms/zfs/2.1.4/build/module/avl/zavl.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/aggsum.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/nvpair/nvpair_alloc_spl.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/arc.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfeature_common.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-cred.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-err.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lbaselib.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zstd/lib/zstd.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/api/kcf_digest.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/api/kcf_mac.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lcode.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfs_comutil.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-generic.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-kmem.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/api/kcf_miscapi.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/nvpair/nvpair_alloc_fixed.o
  LD [M]  /var/lib/dkms/zfs/2.1.4/build/module/unicode/zunicode.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfs_deleg.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lcompat.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lcorolib.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/api/kcf_ctxops.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfs_fletcher.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/core/kcf_callprov.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/core/kcf_prov_tabs.o
  LD [M]  /var/lib/dkms/zfs/2.1.4/build/module/nvpair/znvpair.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/core/kcf_sched.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-kmem-cache.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lctype.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/core/kcf_mech_tabs.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfs_fletcher_superscalar.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfs_fletcher_superscalar4.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/core/kcf_prov_lib.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/ldebug.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfs_namecheck.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/ldo.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/spi/kcf_spi.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/io/aes.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/io/edonr_mod.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/io/sha1_mod.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfs_prop.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/io/sha2_mod.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-kstat.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lfunc.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/io/skein_mod.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lgc.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/os/modhash.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/os/modconf.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zpool_prop.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/modes/cbc.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/modes/ccm.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/modes/ctr.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/modes/ecb.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/modes/gcm_generic.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-proc.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/modes/gcm.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/llex.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lmem.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/modes/modes.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/aes/aes_impl_generic.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/blkptr.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/aes/aes_impl.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/aes/aes_modes.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/edonr/edonr.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-procfs-list.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zprop_common.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lobject.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/sha1/sha1.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lopcodes.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/bplist.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/sha2/sha2.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/skein/skein.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfs_fletcher_intel.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/skein/skein_block.o
In file included from /usr/src/linux-headers-5.18.0-1-common/include/linux/string.h:253,
                 from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/strings.h:24,
                 from /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/edonr/edonr.c:32:
In function ?fortify_memcpy_chk?,
    inlined from ?EdonRInit? at /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/edonr/edonr.c:491:3:
/usr/src/linux-headers-5.18.0-1-common/include/linux/fortify-string.h:328:25: warning: call to ?__write_overflow_field? declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning]
  328 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-taskq.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-thread.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/skein/skein_iv.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lparser.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/asm-x86_64/aes/aeskey.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfs_fletcher_sse.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zfs_fletcher_avx512.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/bpobj.o
  AS [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/asm-x86_64/aes/aes_amd64.o
  AS [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/asm-x86_64/aes/aes_aesni.o
  AS [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/asm-x86_64/modes/gcm_pclmulqdq.o
  AS [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/asm-x86_64/modes/aesni-gcm-x86_64.o
  AS [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/asm-x86_64/modes/ghash-x86_64.o
  AS [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/asm-x86_64/sha1/sha1-x86_64.o
  AS [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/asm-x86_64/sha2/sha256_impl.o
  AS [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/asm-x86_64/sha2/sha512_impl.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/modes/gcm_pclmulqdq.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/aes/aes_impl_aesni.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/algs/aes/aes_impl_x86-64.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-trace.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-tsd.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/bptree.o
  LD [M]  /var/lib/dkms/zfs/2.1.4/build/module/zcommon/zcommon.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/btree.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-vmem.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-xdr.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/../os/linux/spl/spl-zlib.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/bqueue.o
  LD [M]  /var/lib/dkms/zfs/2.1.4/build/module/icp/icp.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lstate.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dataset_kstats.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dbuf.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dbuf_stats.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/ddt.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/ddt_zap.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dmu.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lstring.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dmu_diff.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lstrlib.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/ltable.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dmu_object.o
  LD [M]  /var/lib/dkms/zfs/2.1.4/build/module/spl/spl.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dmu_objset.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dmu_recv.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dmu_redact.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/ltablib.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/ltm.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dmu_send.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lvm.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/lzio.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dmu_traverse.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dmu_tx.o
  AS [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/setjmp/setjmp.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dmu_zfetch.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dnode.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zstd/zstd_sparc.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dnode_sync.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_bookmark.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_crypt.o
  LD [M]  /var/lib/dkms/zfs/2.1.4/build/module/lua/zlua.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_dataset.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_deadlist.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_deleg.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_destroy.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_dir.o
In file included from /usr/src/linux-headers-5.18.0-1-common/include/linux/string.h:253,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/bitmap.h:11,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/cpumask.h:12,
                 from /usr/src/linux-headers-5.18.0-1-common/arch/x86/include/asm/cpumask.h:5,
                 from /usr/src/linux-headers-5.18.0-1-common/arch/x86/include/asm/msr.h:11,
                 from /usr/src/linux-headers-5.18.0-1-common/arch/x86/include/asm/processor.h:22,
                 from /usr/src/linux-headers-5.18.0-1-common/arch/x86/include/asm/timex.h:5,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/timex.h:67,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/time32.h:13,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/time.h:60,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/stat.h:19,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/module.h:13,
                 from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/atomic.h:27,
                 from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:46,
                 from /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_bookmark.c:22:
In function ?fortify_memset_chk?,
    inlined from ?dsl_bookmark_set_phys? at /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_bookmark.c:384:3:
/usr/src/linux-headers-5.18.0-1-common/include/linux/fortify-string.h:242:25: warning: call to ?__write_overflow_field? declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning]
  242 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_pool.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_prop.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_scan.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_synctask.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/dsl_userhold.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/edonr_zfs.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/fm.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/gzip.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/hkdf.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/lz4.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/lzjb.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/metaslab.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/mmp.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/multilist.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/objlist.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/pathname.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/range_tree.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/refcount.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/rrwlock.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/sa.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/sha256.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/skein_zfs.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/spa.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/spa_boot.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/spa_checkpoint.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/spa_config.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/spa_errlog.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/spa_history.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/spa_log_spacemap.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/spa_misc.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/spa_stats.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/space_map.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/space_reftree.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/txg.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/uberblock.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/unique.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_cache.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_draid.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_draid_rand.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_indirect.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_indirect_births.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_indirect_mapping.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_initialize.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_label.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_mirror.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_missing.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_queue.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_raidz.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_raidz_math.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_raidz_math_scalar.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_rebuild.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_removal.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_root.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_trim.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zap.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zap_leaf.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zap_micro.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zcp.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zcp_get.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zcp_global.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zcp_iter.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zcp_set.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zcp_synctask.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfeature.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_byteswap.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_fm.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_fuid.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_ioctl.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_log.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_onexit.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_quota.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_ratelimit.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_replay.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_rlock.o
In file included from /usr/src/linux-headers-5.18.0-1-common/include/linux/string.h:253,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/bitmap.h:11,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/cpumask.h:12,
                 from /usr/src/linux-headers-5.18.0-1-common/arch/x86/include/asm/cpumask.h:5,
                 from /usr/src/linux-headers-5.18.0-1-common/arch/x86/include/asm/msr.h:11,
                 from /usr/src/linux-headers-5.18.0-1-common/arch/x86/include/asm/processor.h:22,
                 from /usr/src/linux-headers-5.18.0-1-common/arch/x86/include/asm/timex.h:5,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/timex.h:67,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/time32.h:13,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/time.h:60,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/stat.h:19,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/module.h:13,
                 from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/sysmacros.h:27,
                 from /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_log.c:29:
In function ?fortify_memset_chk?,
    inlined from ?zfs_log_xvattr? at /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_log.c:131:2:
/usr/src/linux-headers-5.18.0-1-common/include/linux/fortify-string.h:242:25: warning: call to ?__write_overflow_field? declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning]
  242 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ?fortify_memset_chk?,
    inlined from ?zfs_log_xvattr? at /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_log.c:133:2:
/usr/src/linux-headers-5.18.0-1-common/include/linux/fortify-string.h:242:25: warning: call to ?__write_overflow_field? declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning]
  242 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ?fortify_memcpy_chk?,
    inlined from ?zfs_log_xvattr? at /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_log.c:172:3:
/usr/src/linux-headers-5.18.0-1-common/include/linux/fortify-string.h:328:25: warning: call to ?__write_overflow_field? declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning]
  328 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ?fortify_memcpy_chk?,
    inlined from ?zfs_log_xvattr? at /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_log.c:178:3:
/usr/src/linux-headers-5.18.0-1-common/include/linux/fortify-string.h:328:25: warning: call to ?__write_overflow_field? declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning]
  328 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_sa.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zfs_vnops.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zil.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zio.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zio_checksum.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zio_compress.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zio_inject.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zle.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zrlock.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zthr.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/zvol.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/abd_os.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/arc_os.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/mmp_os.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/policy.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/trace.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/qat.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/qat_compress.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/qat_crypt.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/spa_misc_os.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_file.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zfs_acl.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zfs_ctldir.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zfs_debug.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zfs_dir.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zfs_file_os.o
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c: In function ?vdev_bio_set_dev?:
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:540:29: error: implicit declaration of function ?vdev_blkg_tryget? [-Werror=implicit-function-declaration]
  540 |         if (q->root_blkg && vdev_blkg_tryget(q->root_blkg))
      |                             ^~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-1-common/include/linux/umh.h:4,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/kmod.h:9,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/module.h:17,
                 from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/atomic.h:27,
                 from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:46,
                 from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c: In function ?__vdev_disk_physio?:
/usr/src/linux-headers-5.18.0-1-common/include/linux/gfp.h:344:25: warning: passing argument 1 of ?bio_alloc? makes pointer from integer without a cast [-Wint-conversion]
  344 | #define GFP_NOIO        (__GFP_RECLAIM)
      |                         ^~~~~~~~~~~~~~~
      |                         |
      |                         unsigned int
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:628:43: note: in expansion of macro ?GFP_NOIO?
  628 |                 dr->dr_bio[i] = bio_alloc(GFP_NOIO, bio_max_segs(
      |                                           ^~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-1-common/include/linux/writeback.h:209,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/memcontrol.h:22,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/swap.h:9,
                 from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/vmsystm.h:29,
                 from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:48,
                 from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/usr/src/linux-headers-5.18.0-1-common/include/linux/bio.h:423:58: note: expected ?struct block_device *? but argument is of type ?unsigned int?
  423 | static inline struct bio *bio_alloc(struct block_device *bdev,
      |                                     ~~~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:628:33: error: too few arguments to function ?bio_alloc?
  628 |                 dr->dr_bio[i] = bio_alloc(GFP_NOIO, bio_max_segs(
      |                                 ^~~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-1-common/include/linux/writeback.h:209,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/memcontrol.h:22,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/swap.h:9,
                 from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/vmsystm.h:29,
                 from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:48,
                 from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/usr/src/linux-headers-5.18.0-1-common/include/linux/bio.h:423:27: note: declared here
  423 | static inline struct bio *bio_alloc(struct block_device *bdev,
      |                           ^~~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-1-common/include/linux/umh.h:4,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/kmod.h:9,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/module.h:17,
                 from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/atomic.h:27,
                 from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:46,
                 from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c: In function ?vdev_disk_io_flush?:
/usr/src/linux-headers-5.18.0-1-common/include/linux/gfp.h:344:25: warning: passing argument 1 of ?bio_alloc? makes pointer from integer without a cast [-Wint-conversion]
  344 | #define GFP_NOIO        (__GFP_RECLAIM)
      |                         ^~~~~~~~~~~~~~~
      |                         |
      |                         unsigned int
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:707:25: note: in expansion of macro ?GFP_NOIO?
  707 |         bio = bio_alloc(GFP_NOIO, 0);
      |                         ^~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-1-common/include/linux/writeback.h:209,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/memcontrol.h:22,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/swap.h:9,
                 from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/vmsystm.h:29,
                 from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:48,
                 from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/usr/src/linux-headers-5.18.0-1-common/include/linux/bio.h:423:58: note: expected ?struct block_device *? but argument is of type ?unsigned int?
  423 | static inline struct bio *bio_alloc(struct block_device *bdev,
      |                                     ~~~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:707:15: error: too few arguments to function ?bio_alloc?
  707 |         bio = bio_alloc(GFP_NOIO, 0);
      |               ^~~~~~~~~
In file included from /usr/src/linux-headers-5.18.0-1-common/include/linux/writeback.h:209,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/memcontrol.h:22,
                 from /usr/src/linux-headers-5.18.0-1-common/include/linux/swap.h:9,
                 from /var/lib/dkms/zfs/2.1.4/build/include/os/linux/spl/sys/vmsystm.h:29,
                 from /var/lib/dkms/zfs/2.1.4/build/include/sys/zfs_context.h:48,
                 from /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.c:29:
/usr/src/linux-headers-5.18.0-1-common/include/linux/bio.h:423:27: note: declared here
  423 | static inline struct bio *bio_alloc(struct block_device *bdev,
      |                           ^~~~~~~~~
cc1: some warnings being treated as errors
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zfs_ioctl_os.o
make[5]: *** [/usr/src/linux-headers-5.18.0-1-common/scripts/Makefile.build:293: /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/vdev_disk.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [/usr/src/linux-headers-5.18.0-1-common/scripts/Makefile.build:555: /var/lib/dkms/zfs/2.1.4/build/module/zfs] Error 2
make[4]: *** Waiting for unfinished jobs....
  LD [M]  /var/lib/dkms/zfs/2.1.4/build/module/zstd/zzstd.o
make[3]: *** [/usr/src/linux-headers-5.18.0-1-common/Makefile:1858: /var/lib/dkms/zfs/2.1.4/build/module] Error 2
make[3]: Leaving directory '/usr/src/linux-headers-5.18.0-1-amd64'
make[2]: *** [Makefile:55: modules-Linux] Error 2
make[2]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build/module'
make[1]: *** [Makefile:881: all-recursive] Error 1
make[1]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build'
make: *** [Makefile:742: all] Error 2


More information about the Pkg-zfsonlinux-devel mailing list