openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.31k stars 1.71k forks source link

Unable to build ZFS on Debian 12 with Kernel 6.5 #15741

Open lukiano opened 6 months ago

lukiano commented 6 months ago

I haven't been able to find any related issue so opening one, also people seem to build it just fine so probably something wrong in my setup.

This is a standard Debian 12 bookworm build that had ZFS 2.1 running. I've updated to a 6.5 Kernel and it stopped running so I'm trying to install from source.

uname -a
Linux maximal 6.5.0-0.deb12.4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.10-1~bpo12+1 (2023-11-23) x86_64 GNU/Linux

I've followed the building instructions and installed the dependencies.

I tried both the zfs-2.2.2 tag and the master branch. The following output is from the latter:

sh autogen.sh
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I config
autoreconf: configure.ac: tracing
configure.ac: warning: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION or AM_GNU_GETTEXT_REQUIRE_VERSION
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
libtoolize: copying file 'config/libtool.m4'
libtoolize: copying file 'config/ltoptions.m4'
libtoolize: copying file 'config/ltsugar.m4'
libtoolize: copying file 'config/ltversion.m4'
libtoolize: copying file 'config/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I config
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:49: installing 'config/compile'
configure.ac:43: installing 'config/missing'
Makefile.am: installing 'config/depcomp'
autoreconf: Leaving directory '.'
./configure

checking for gawk... gawk
checking metadata... git describe
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking dependency style of gcc... gcc3
checking whether to build with code coverage support... no
checking how to create a pax tar archive... gnutar
checking zfs author... OpenZFS
checking zfs license... CDDL
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking for the common suffixes of directories in the library search path... lib,lib
checking zfs config... all
checking the number of available CPUs... 16
checking whether gcc supports -Wno-clobbered... yes
checking whether gcc supports -Winfinite-recursion... yes
checking whether  supports -Winfinite-recursion... yes
checking whether gcc supports -Wimplicit-fallthrough... yes
checking whether gcc supports -Wframe-larger-than=<size>... yes
checking whether gcc supports -Wno-format-truncation... yes
checking whether gcc supports -Wno-format-zero-length... yes
checking whether gcc supports -Wformat-overflow... yes
checking whether gcc supports -fno-omit-frame-pointer... yes
checking whether gcc supports -fno-ipa-sra... yes
checking whether  supports -fno-ipa-sra... yes
checking whether to build with -fsanitize=address support... no
checking whether to build with -fsanitize=undefined support... no
checking whether host toolchain supports SSE... yes
checking whether host toolchain supports SSE2... yes
checking whether host toolchain supports SSE3... yes
checking whether host toolchain supports SSSE3... yes
checking whether host toolchain supports SSE4.1... yes
checking whether host toolchain supports SSE4.2... yes
checking whether host toolchain supports AVX... yes
checking whether host toolchain supports AVX2... yes
checking whether host toolchain supports AVX512F... yes
checking whether host toolchain supports AVX512CD... yes
checking whether host toolchain supports AVX512DQ... yes
checking whether host toolchain supports AVX512BW... yes
checking whether host toolchain supports AVX512IFMA... yes
checking whether host toolchain supports AVX512VBMI... yes
checking whether host toolchain supports AVX512PF... yes
checking whether host toolchain supports AVX512ER... yes
checking whether host toolchain supports AVX512VL... yes
checking whether host toolchain supports AES... yes
checking whether host toolchain supports PCLMULQDQ... yes
checking whether host toolchain supports MOVBE... yes
checking whether host toolchain supports XSAVE... yes
checking whether host toolchain supports XSAVEOPT... yes
checking whether host toolchain supports XSAVES... yes
checking for system type (linux-gnu)... Linux
checking for python3... python3
checking for python version... 3.11
checking for python platform... linux
checking for GNU default python prefix... ${prefix}
checking for GNU default python exec_prefix... ${exec_prefix}
checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.11/site-packages
checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.11/site-packages
checking for python3 module: packaging... yes
checking for python3.11... /home/luciano/miniconda3/bin/python3.11
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python >= '3.6.0'... yes
checking for Python include path... -I/home/luciano/miniconda3/include/python3.11
checking for Python library path... -L/home/luciano/miniconda3/lib -lpython3.11
checking for Python site-packages path... /home/luciano/miniconda3/lib/python3.11/site-packages
checking python extra libraries... -lpthread -ldl  -lutil -lm
checking python extra linking flags... -Xlinker -export-dynamic
checking consistency of all components of python development environment... yes
checking for python3.11 module: setuptools... yes
checking for python3.11 module: cffi... yes
checking whether to enable pyzfs: ... yes
checking for sed --in-place... --in-place
checking for cppcheck... cppcheck
checking for shellcheck... yes
checking for checkbashisms... yes
checking for parallel... yes
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for CFLocaleCopyPreferredLanguages... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for dracut directory... /usr/lib/dracut
checking for zlib... yes
checking for zlib.h... yes
checking for compress2 in -lz... yes
checking for uncompress in -lz... yes
checking for crc32 in -lz... yes
checking for udev directories... /lib/udev;/lib/udev/rules.d
checking for systemd support... yes
checking for libudev... yes
checking for libudev.h... yes
checking for main in -ludev... yes
checking for udev_device_get_is_initialized... yes
checking for uuid... yes
checking for uuid/uuid.h... yes
checking for uuid_generate in -luuid... yes
checking for uuid_is_null in -luuid... yes
checking for blkid... yes
checking for blkid/blkid.h... yes
checking for main in -lblkid... yes
checking for library containing xdrmem_create... no
checking for libtirpc... yes
checking for rpc/xdr.h... yes
checking for xdrmem_create in -ltirpc... yes
checking for libcrypto... yes
checking for openssl/evp.h... yes
checking for PKCS5_PBKDF2_HMAC_SHA1 in -lcrypto... yes
checking for libaio.h... yes
checking for main in -laio... yes
checking whether -latomic is required... no
checking for libfetch... libcurl
checking for aio.h... yes
checking for lio_listio in -lrt... yes
checking for clock_gettime... yes
checking for security/pam_modules.h... no
checking makedev() is declared in sys/sysmacros.h... yes
checking makedev() is declared in sys/mkdev.h... no
checking for execvpe... yes
checking for issetugid... no
checking for mlockall... yes
checking for strlcat... no
checking for strlcpy... no
checking kernel source and build directories... done
checking kernel source directory... /usr/src/linux-headers-6.5.0-0.deb12.4-common
checking kernel build directory... /usr/src/linux-headers-6.5.0-0.deb12.4-amd64
checking kernel source version... 6.5.0-0.deb12.4-amd64
checking for kernel config option compatibility... done
checking whether CONFIG_MODULES is defined... yes
checking whether CONFIG_BLOCK is defined... yes
checking whether mutex_lock() is GPL-only... no
checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... yes
checking whether CONFIG_ZLIB_DEFLATE is defined... yes
checking whether CONFIG_ZLIB_INFLATE is defined... yes
checking kernel file name for module symbols... Module.symvers
checking whether fpu headers are available... asm/fpu/api.h
checking whether objtool header is available... linux/objtool.h
checking whether wait_queue_entry_t exists... yes
checking whether /dev/zfs minor is available... 249
checking whether DECLARE_EVENT_CLASS() is available... no
checking for available kernel interfaces... done
checking whether access_ok() has 'type' parameter... no
checking whether global_node_page_state() exists... yes
checking whether global_zone_page_state() exists... yes
checking whether enum node_stat_item contains NR_FILE_PAGES... yes
checking whether enum node_stat_item contains NR_INACTIVE_ANON... yes
checking whether enum node_stat_item contains NR_INACTIVE_FILE... yes
checking whether enum zone_stat_item contains NR_FILE_PAGES... no
checking whether enum zone_stat_item contains NR_INACTIVE_ANON... no
checking whether enum zone_stat_item contains NR_INACTIVE_FILE... no
checking whether global_page_state enums are sane... yes
checking whether compile-time stack validation (objtool) is available... yes
checking whether STACK_FRAME_NON_STANDARD is defined... yes
checking whether pde_data() is lowercase... yes
checking whether fops->fallocate() exists... yes
checking whether FALLOC_FL_ZERO_RANGE exists... yes
checking whether fops->fadvise() exists... yes
checking whether generic_fadvise() is available... yes
checking whether zlib_deflate_workspacesize() wants 2 args... yes
checking whether struct rw_semaphore has member activity... no
checking whether struct rw_semaphore has atomic_long_t member count... yes
checking whether header linux/sched/rt.h exists... yes
checking whether header linux/sched/signal.h exists... yes
checking whether io_schedule_timeout() is available... yes
checking whether usleep_range() is available... yes
checking whether kmem_cache_create_usercopy() exists... yes
checking whether kvmalloc(ptr, flags) is available... yes
checking whether __vmalloc(ptr, flags, pageflags) is available... no
checking whether wait_on_bit() takes an action... no
checking whether wq_head->head and wq_entry->entry exist... yes
checking whether timestamp_truncate() exists... yes
checking whether inode->i_*time's are timespec64... yes
checking whether inode_get_ctime() exists... no
checking whether inode_set_ctime_to_ts() exists... no
checking whether inode_get_atime() exists... no
checking whether inode_set_atime_to_ts() exists... no
checking whether inode_get_mtime() exists... no
checking whether inode_set_mtime_to_ts() exists... no
checking whether inode_lock_shared() exists... yes
checking whether group_info->gid exists... yes
checking whether kernel_write() takes loff_t pointer... yes
checking whether kernel_read() takes loff_t pointer... yes
checking whether timer_setup() is available... yes
checking whether timer function expects timer_list... yes
checking whether struct timer_list has flags... yes
checking whether super_block->s_user_ns exists... yes
checking whether proc_ops structure exists... yes
checking whether bops->check_events() exists... yes
checking whether bops->release() is void and takes 2 args... no
checking whether bops->release() is void and takes 1 arg... yes
checking whether bops->revalidate_disk() exists... no
checking whether REQ_FAILFAST_MASK is defined... yes
checking whether REQ_DISCARD is defined... no
checking whether REQ_FLUSH is defined... no
checking whether REQ_PREFLUSH is defined... yes
checking whether REQ_OP_DISCARD is defined... yes
checking whether REQ_OP_SECURE_ERASE is defined... yes
checking whether REQ_OP_FLUSH is defined... yes
checking whether bio->bi_opf is defined... yes
checking whether bio_set_op_attrs is available... no
checking whether bio_set_dev() is available... yes
checking whether bio_set_dev() is GPL-only... yes
checking whether bio_set_dev() is a macro... no
checking whether bio_end_io_t wants 1 arg... yes
checking whether bio->bi_status exists... yes
checking whether bio has bi_iter... yes
checking whether submit_bio() wants 1 arg... yes
checking whether current->bio_list exists... yes
checking whether blkg_tryget() is available... no
checking whether bio->bi_bdev->bd_disk exists... yes
checking whether block_device_operations->submit_bio() returns void... yes
checking whether linux/blk-cgroup.h exists... yes
checking whether bio_alloc() wants 4 args... yes
checking whether blkdev_get_by_path() exists and takes 3 args... no
checking whether blkdev_get_by_path() exists and takes 4 args... yes
checking whether blkdev_put() exists... checking whether blkdev_put() accepts void* as arg 2... yes
checking whether blkdev_reread_part() exists... no
checking whether invalidate_bdev() exists... yes
checking whether lookup_bdev() wants dev_t arg... yes
checking whether bdev_logical_block_size() is available... yes
checking whether bdev_physical_block_size() is available... yes
checking whether check_disk_change() exists... no
checking whether bdev_check_media_change() exists... no
checking whether bdev_whole() is available... yes
checking whether bdevname() exists... no
checking whether blkdev_get_by_path() handles ERESTARTSYS... no
checking whether blkdev_issue_secure_erase() is available... yes
checking whether bdev_kobj() exists... yes
checking whether part_to_dev() exists... no
checking whether disk_check_media_change() exists... yes
checking whether BLK_STS_RESV_CONFLICT is defined... yes
checking whether blk_mode_t is defined... yes
checking whether struct blk_plug is available... yes
checking whether blk_queue bdi is dynamic... no
checking whether blk_queue_update_readahead() exists... no
checking whether disk_update_readahead() exists... yes
checking whether bdev_max_discard_sectors() is available... yes
checking whether bdev_max_secure_erase_sectors() is available... yes
checking whether blk_queue_flag_set() exists... yes
checking whether blk_queue_flag_clear() exists... yes
checking whether blk_queue_flush() is available... no
checking whether blk_queue_write_cache() exists... yes
checking whether blk_queue_write_cache() is GPL-only... yes
checking whether blk_queue_max_hw_sectors() is available... yes
checking whether blk_queue_max_segments() is available... yes
checking whether block multiqueue with blk_status_t is available... yes
checking whether GENHD_FL_EXT_DEVT flag is available... no
checking whether GENHD_FL_NO_PART flag is available... yes
checking whether revalidate_disk_size() is available... no
checking whether revalidate_disk() is available... no
checking whether get_disk_ro() is available... yes
checking whether generic_readlink is global... no
checking whether ql->discard_granularity is available... yes
checking whether inode_owner_or_capable() exists... no
checking whether inode_owner_or_capable() takes user_ns... no
checking whether inode_owner_or_capable() takes mnt_idmap... yes
checking whether super_block uses const struct xattr_handler... yes
checking whether xattr_handler has name... yes
checking whether xattr_handler->get() wants dentry and inode... yes
checking whether xattr_handler->set() wants dentry, inode, and mnt_idmap... yes
checking whether xattr_handler->list() wants simple... yes
checking whether posix_acl_from_xattr() needs user_ns... yes
checking whether generic_setxattr() exists... no
checking whether posix_acl_release() is available... yes
checking whether posix_acl_release() is GPL-only... yes
checking whether set_cached_acl() is usable... yes
checking whether __posix_acl_chmod exists... yes
checking whether posix_acl_equiv_mode() wants umode_t... yes
checking whether posix_acl_valid() wants user namespace... yes
checking whether iops->get_acl() exists... yes
checking whether iops->set_acl() exists... yes
checking whether uncached_acl_sentinel() exists... yes
checking whether posix_acl has refcount_t... yes
checking whether iops->setattr() takes mnt_idmap... yes
checking whether iops->getattr() takes mnt_idmap... yes
checking whether inode_set_flags() exists... yes
checking whether inode_set_iversion() exists... yes
checking whether sops->show_options() wants dentry... yes
checking whether file_inode() is available... yes
checking whether file_dentry() is available... yes
checking whether fops->fsync() wants no dentry... no
checking whether fops->fsync() wants range... range
checking whether fops->aio_fsync() exists... no
checking whether sops->evict_inode() exists... yes
checking whether sops->dirty_inode() wants flags... yes
checking whether super_block has s_shrink... yes
checking whether shrink_control has nid... yes
checking whether new var-arg register_shrinker() exists... yes
checking whether struct shrink_control exists... yes
checking whether iops->mkdir() takes struct mnt_idmap*... yes
checking whether iops->lookup() passes flags... yes
checking whether iops->create() takes struct mnt_idmap*... yes
checking whether iops->permission() takes struct mnt_idmap*... yes
checking whether iops->get_link() passes delayed... yes
checking whether i_op->tmpfile() exists... yes
checking whether dops->d_automount() exists... yes
checking whether eops->encode_fh() wants inode... yes
checking whether eops->commit_metadata() exists... yes
checking whether clear_inode() is available... yes
checking whether setattr_prepare() is available and accepts struct mnt_idmap*... yes
checking whether insert_inode_locked() is available... yes
checking whether d_make_root() is available... yes
checking whether d_obtain_alias() is available... yes
checking whether d_prune_aliases() is available... yes
checking whether d_set_d_op() is available... yes
checking whether dops->d_revalidate() takes struct nameidata... no
checking whether dentry uses const struct dentry_operations... yes
checking whether super_block has s_d_op... yes
checking whether dentry aliases are in d_u member... yes
checking whether truncate_setsize() is available... yes
checking whether security_inode_init_security wants callback... yes
checking whether fst->mount() exists... yes
checking whether super_setup_bdi_name() exists... yes
checking whether set_nlink() is available... yes
checking whether sget() wants 5 args... yes
checking whether lseek_execute() is available... no
checking whether filemap_dirty_folio exists... yes
checking whether read_folio exists... yes
checking whether vfs_getattr() wants 4 args... yes
checking whether vfs_getattr() wants 2 args... no
checking whether vfs_getattr() wants 3 args... no
checking whether vfs_fsync() wants 2 args... yes
checking whether fops->iterate_shared() is available... yes
checking whether aops->direct_IO() uses iov_iter... yes
checking whether aops->readpages exists... no
checking whether __set_page_dirty_nobuffers exists... no
checking whether fops->read/write_iter() are available... yes
checking whether new_sync_read/write() are available... no
checking whether generic_write_checks() takes kiocb... yes
checking whether iov_iter types are available... yes
checking whether iov_iter_advance() is available... yes
checking whether iov_iter_revert() is available... yes
checking whether iov_iter_fault_in_readable() is available... no
checking whether fault_in_iov_iter_readable() is available... yes
checking whether iov_iter_count() is available... yes
checking whether copy_to_iter() is available... yes
checking whether copy_from_iter() is available... yes
checking whether iov_iter_type() is available... yes
checking whether iter_iov() is available... yes
checking whether fops->copy_file_range() is available... yes
checking whether generic_copy_file_range() is available... yes
checking whether fops->remap_file_range() is available... yes
checking whether fops->clone_file_range() is available... no
checking whether fops->dedupe_file_range() is available... no
checking whether file_operations_extend takes .copy_file_range() and .clone_file_range()... no
checking whether kmap_atomic wants 1 args... yes
checking whether follow_down_one() is available... yes
checking whether submit_bio is member of struct block_device_operations... yes
checking whether blk_alloc_disk() exists... yes
checking whether blk_cleanup_disk() exists... no
checking whether 6.3+ bdev_*_io_acct() are available... yes
checking whether kernel fpu is available... internal
checking whether kernel defines fmode_t... yes
checking whether kuid_t/kgid_t is available... yes
checking whether i_(uid|gid)_(read|write) exist... yes
checking whether iops->rename() takes struct mnt_idmap*... yes
checking whether current_time() exists... yes
checking whether ns_capable exists... yes
checking whether has_capability() is available... yes
checking whether cred_t->user_ns exists... yes
checking whether kuid_has_mapping/kgid_has_mapping exist... yes
checking whether in_compat_syscall() is available... yes
checking whether ktime_get_coarse_real_ts64() exists... yes
checking whether ktime_get_raw_ts64() exists... yes
checking whether totalram_pages() exists... yes
checking whether totalhigh_pages() exists... yes
checking whether kstrtoul() exists... yes
checking whether percpu_counter_init() wants gfp_t... yes
checking whether percpu_counter_add_batch() is defined... yes
checking whether is inside percpu_ref.data... yes
checking whether CPU hotplug APIs exist... yes
checking whether generic_fillattr requires struct mnt_idmap* and request_mask... checking whether generic_fillattr requires struct mnt_idmap*... yes
checking whether iops->mknod() takes struct mnt_idmap*... yes
checking whether iops->symlink() takes struct mnt_idmap*... yes
checking whether bio_max_segs() exists... yes
checking whether signal_stop() exists... yes
checking whether kernel_siginfo_t tyepedef exists... yes
checking whether struct kobj_type.default_groups exists... yes
checking whether set_special_state() exists... yes
checking whether standalone <linux/stdarg.h> exists... yes
checking whether folio_wait_bit() exists... yes
checking whether add_disk() returns int... yes
checking whether kthread_complete_and_exit() is available... yes
checking whether dequeue_signal() takes 4 arguments... yes
checking whether ZERO_PAGE() is GPL-only... no
checking whether __copy_from_user_inatomic is available... yes
checking whether user_namespace->ns.inum exists... yes
checking whether APIs for idmapped mount are present... yes
checking whether iattr->ia_vfsuid and iattr->ia_vfsgid exist... yes
checking whether filemap_range_has_page() is available... no
checking whether int (*writepage_t)() takes struct folio*... yes
checking whether struct reclaim_state has reclaimed field... yes
checking whether register_sysctl_table exists... no
checking whether copy_splice_read() exists... yes
checking whether fsync_bdev() exists... yes
checking os distribution... debian
checking default package type... deb
checking default init directory... ${prefix}/etc/init.d
checking default shell... /bin/sh
checking default nfs server init script... nfs-kernel-server
checking default init config directory... /etc/default
checking whether initramfs-tools is available... yes
checking default bash completion directory... /usr/share/bash-completion/completions
checking whether rpm is available... yes (4.18.0)
checking whether rpmbuild is available... yes (4.18.0)
checking whether spec files are available... yes (rpm/generic/*.spec.in)
checking whether dpkg is available... yes (1.21.22)
checking whether dpkg-buildpackage is available... yes (1.21.22.)
checking whether alien is available... yes (8.95.6)
checking whether assertion support will be enabled... no
checking whether debuginfo support will be forced... no
checking whether basic kmem accounting is enabled... no
checking whether detailed kmem tracking is enabled... no
checking whether FreeBSD kernel INVARIANTS checks are enabled... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating contrib/debian/rules
config.status: creating contrib/debian/changelog
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating lib/libzfs/libzfs.pc
config.status: creating lib/libzfs_core/libzfs_core.pc
config.status: creating lib/libzfsbootenv/libzfsbootenv.pc
config.status: creating module/Kbuild
config.status: creating module/Makefile
config.status: creating rpm/generic/zfs-dkms.spec
config.status: creating rpm/generic/zfs-kmod.spec
config.status: creating rpm/generic/zfs.spec
config.status: creating rpm/redhat/zfs-dkms.spec
config.status: creating rpm/redhat/zfs-kmod.spec
config.status: creating rpm/redhat/zfs.spec
config.status: creating tests/zfs-tests/tests/Makefile
config.status: creating zfs.release
config.status: creating zfs_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands

For make I'm using -j1 in case it was a concurrency issue but it doesn't seem to be.

make -s -j1

  GEN      gitrev
Making all in include
Making all in tests/zfs-tests/tests
  GEN      functional/pyzfs/pyzfs_unittest.ksh
  GEN      functional/pam/utilities.kshlib
Making all in module
/home/luciano/git/zfs/module/spl.o: warning: objtool: spl_kmem_cache_create+0x5e0: spl_panic() is missing a __noreturn annotation
/home/luciano/git/zfs/module/spl.o: warning: objtool: spl_kmem_cache_destroy+0x213: spl_panic() is missing a __noreturn annotation
/home/luciano/git/zfs/module/spl.o: warning: objtool: kstat_seq_data_addr+0xa1: spl_panic() is missing a __noreturn annotation
/home/luciano/git/zfs/module/spl.o: warning: objtool: __kstat_create+0x350: spl_panic() is missing a __noreturn annotation
/home/luciano/git/zfs/module/spl.o: warning: objtool: kstat_seq_show+0x2a0: spl_panic() is missing a __noreturn annotation
/home/luciano/git/zfs/module/spl.o: warning: objtool: kstat_seq_start+0x36d: spl_panic() is missing a __noreturn annotation
/home/luciano/git/zfs/module/spl.o: warning: objtool: __kstat_delete+0x7e: spl_panic() is missing a __noreturn annotation
/home/luciano/git/zfs/module/spl.o: warning: objtool: taskq_destroy+0x1cf: spl_panic() is missing a __noreturn annotation
/home/luciano/git/zfs/module/spl.o: warning: objtool: taskq_create_synced+0xcb: spl_panic() is missing a __noreturn annotation
/home/luciano/git/zfs/module/zfs.o: warning: objtool: luaD_throw() falls through to next function resume_error()
/home/luciano/git/zfs/module/zfs.o: warning: objtool: zfs_sha256_transform_x64+0x1d: unsupported stack pointer realignment
/home/luciano/git/zfs/module/zfs.o: warning: objtool: zfs_sha256_transform_ssse3+0x1d: unsupported stack pointer realignment
/home/luciano/git/zfs/module/zfs.o: warning: objtool: zfs_sha256_transform_avx+0x1d: unsupported stack pointer realignment
/home/luciano/git/zfs/module/zfs.o: warning: objtool: zfs_sha256_transform_avx2+0x1c: unsupported stack pointer realignment
/home/luciano/git/zfs/module/zfs.o: warning: objtool: zfs_sha512_transform_x64+0x20: unsupported stack pointer realignment
/home/luciano/git/zfs/module/zfs.o: warning: objtool: zfs_sha512_transform_avx+0x20: unsupported stack pointer realignment
/home/luciano/git/zfs/module/zfs.o: warning: objtool: zfs_sha512_transform_avx2+0x1c: unsupported stack pointer realignment
/home/luciano/git/zfs/module/zfs.o: warning: objtool: _aesni_ctr32_ghash_6x+0x57a: return with modified stack frame
/home/luciano/git/zfs/module/zfs.o: warning: objtool: _aesni_ctr32_ghash_no_movbe_6x+0x59a: return with modified stack frame
/home/luciano/git/zfs/module/zfs.o: warning: objtool: aesni_gcm_decrypt+0x48: unsupported stack pointer realignment
/home/luciano/git/zfs/module/zfs.o: warning: objtool: aesni_gcm_encrypt+0x52: unsupported stack pointer realignment
Skipping BTF generation for /home/luciano/git/zfs/module/spl.ko due to unavailability of vmlinux
Skipping BTF generation for /home/luciano/git/zfs/module/zfs.ko due to unavailability of vmlinux
  CC       cmd/raidz_test/raidz_test-raidz_bench.o
  CC       cmd/raidz_test/raidz_test-raidz_test.o
  CC       lib/libzpool/libzpool_la-kernel.lo
  CC       lib/libzpool/libzpool_la-taskq.lo
  CC       lib/libzpool/libzpool_la-util.lo
  CC       module/lua/libzpool_la-lapi.lo
  CC       module/lua/libzpool_la-lauxlib.lo
  CC       module/lua/libzpool_la-lbaselib.lo
  CC       module/lua/libzpool_la-lcode.lo
  CC       module/lua/libzpool_la-lcompat.lo
  CC       module/lua/libzpool_la-lcorolib.lo
  CC       module/lua/libzpool_la-lctype.lo
  CC       module/lua/libzpool_la-ldebug.lo
  CC       module/lua/libzpool_la-ldo.lo
  CC       module/lua/libzpool_la-lfunc.lo
  CC       module/lua/libzpool_la-lgc.lo
  CC       module/lua/libzpool_la-llex.lo
  CC       module/lua/libzpool_la-lmem.lo
  CC       module/lua/libzpool_la-lobject.lo
  CC       module/lua/libzpool_la-lopcodes.lo
  CC       module/lua/libzpool_la-lparser.lo
  CC       module/lua/libzpool_la-lstate.lo
  CC       module/lua/libzpool_la-lstring.lo
  CC       module/lua/libzpool_la-lstrlib.lo
  CC       module/lua/libzpool_la-ltable.lo
  CC       module/lua/libzpool_la-ltablib.lo
  CC       module/lua/libzpool_la-ltm.lo
  CC       module/lua/libzpool_la-lvm.lo
  CC       module/lua/libzpool_la-lzio.lo
  CC       module/os/linux/zfs/libzpool_la-abd_os.lo
  CC       module/os/linux/zfs/libzpool_la-arc_os.lo
  CC       module/os/linux/zfs/libzpool_la-trace.lo
  CC       module/os/linux/zfs/libzpool_la-vdev_file.lo
  CC       module/os/linux/zfs/libzpool_la-vdev_label_os.lo
  CC       module/os/linux/zfs/libzpool_la-zfs_debug.lo
  CC       module/os/linux/zfs/libzpool_la-zfs_racct.lo
  CC       module/os/linux/zfs/libzpool_la-zfs_znode.lo
  CC       module/os/linux/zfs/libzpool_la-zio_crypt.lo
  CC       module/zcommon/libzpool_la-cityhash.lo
  CC       module/zcommon/libzpool_la-zfeature_common.lo
  CC       module/zcommon/libzpool_la-zfs_comutil.lo
  CC       module/zcommon/libzpool_la-zfs_deleg.lo
  CC       module/zcommon/libzpool_la-zfs_fletcher.lo
  CC       module/zcommon/libzpool_la-zfs_fletcher_aarch64_neon.lo
  CC       module/zcommon/libzpool_la-zfs_fletcher_avx512.lo
  CC       module/zcommon/libzpool_la-zfs_fletcher_intel.lo
  CC       module/zcommon/libzpool_la-zfs_fletcher_sse.lo
  CC       module/zcommon/libzpool_la-zfs_fletcher_superscalar.lo
  CC       module/zcommon/libzpool_la-zfs_fletcher_superscalar4.lo
  CC       module/zcommon/libzpool_la-zfs_namecheck.lo
  CC       module/zcommon/libzpool_la-zfs_prop.lo
  CC       module/zcommon/libzpool_la-zpool_prop.lo
  CC       module/zcommon/libzpool_la-zprop_common.lo
  CC       module/zfs/libzpool_la-abd.lo
  CC       module/zfs/libzpool_la-aggsum.lo
  CC       module/zfs/libzpool_la-arc.lo
  CC       module/zfs/libzpool_la-blake3_zfs.lo
  CC       module/zfs/libzpool_la-blkptr.lo
  CC       module/zfs/libzpool_la-bplist.lo
  CC       module/zfs/libzpool_la-bpobj.lo
  CC       module/zfs/libzpool_la-bptree.lo
  CC       module/zfs/libzpool_la-bqueue.lo
  CC       module/zfs/libzpool_la-btree.lo
  CC       module/zfs/libzpool_la-brt.lo
  CC       module/zfs/libzpool_la-dbuf.lo
  CC       module/zfs/libzpool_la-dbuf_stats.lo
  CC       module/zfs/libzpool_la-ddt.lo
  CC       module/zfs/libzpool_la-ddt_zap.lo
  CC       module/zfs/libzpool_la-dmu.lo
  CC       module/zfs/libzpool_la-dmu_diff.lo
  CC       module/zfs/libzpool_la-dmu_object.lo
  CC       module/zfs/libzpool_la-dmu_objset.lo
  CC       module/zfs/libzpool_la-dmu_recv.lo
  CC       module/zfs/libzpool_la-dmu_redact.lo
  CC       module/zfs/libzpool_la-dmu_send.lo
  CC       module/zfs/libzpool_la-dmu_traverse.lo
  CC       module/zfs/libzpool_la-dmu_tx.lo
  CC       module/zfs/libzpool_la-dmu_zfetch.lo
  CC       module/zfs/libzpool_la-dnode.lo
  CC       module/zfs/libzpool_la-dnode_sync.lo
  CC       module/zfs/libzpool_la-dsl_bookmark.lo
  CC       module/zfs/libzpool_la-dsl_crypt.lo
  CC       module/zfs/libzpool_la-dsl_dataset.lo
  CC       module/zfs/libzpool_la-dsl_deadlist.lo
  CC       module/zfs/libzpool_la-dsl_deleg.lo
  CC       module/zfs/libzpool_la-dsl_destroy.lo
  CC       module/zfs/libzpool_la-dsl_dir.lo
  CC       module/zfs/libzpool_la-dsl_pool.lo
  CC       module/zfs/libzpool_la-dsl_prop.lo
  CC       module/zfs/libzpool_la-dsl_scan.lo
  CC       module/zfs/libzpool_la-dsl_synctask.lo
  CC       module/zfs/libzpool_la-dsl_userhold.lo
  CC       module/zfs/libzpool_la-edonr_zfs.lo
  CC       module/zfs/libzpool_la-fm.lo
  CC       module/zfs/libzpool_la-gzip.lo
  CC       module/zfs/libzpool_la-hkdf.lo
  CC       module/zfs/libzpool_la-lz4.lo
  CC       module/zfs/libzpool_la-lz4_zfs.lo
  CC       module/zfs/libzpool_la-lzjb.lo
  CC       module/zfs/libzpool_la-metaslab.lo
  CC       module/zfs/libzpool_la-mmp.lo
  CC       module/zfs/libzpool_la-multilist.lo
  CC       module/zfs/libzpool_la-objlist.lo
  CC       module/zfs/libzpool_la-pathname.lo
  CC       module/zfs/libzpool_la-range_tree.lo
  CC       module/zfs/libzpool_la-refcount.lo
  CC       module/zfs/libzpool_la-rrwlock.lo
  CC       module/zfs/libzpool_la-sa.lo
  CC       module/zfs/libzpool_la-sha2_zfs.lo
  CC       module/zfs/libzpool_la-skein_zfs.lo
  CC       module/zfs/libzpool_la-spa.lo
  CC       module/zfs/libzpool_la-spa_checkpoint.lo
  CC       module/zfs/libzpool_la-spa_config.lo
  CC       module/zfs/libzpool_la-spa_errlog.lo
  CC       module/zfs/libzpool_la-spa_history.lo
  CC       module/zfs/libzpool_la-spa_log_spacemap.lo
  CC       module/zfs/libzpool_la-spa_misc.lo
  CC       module/zfs/libzpool_la-spa_stats.lo
  CC       module/zfs/libzpool_la-space_map.lo
  CC       module/zfs/libzpool_la-space_reftree.lo
  CC       module/zfs/libzpool_la-txg.lo
  CC       module/zfs/libzpool_la-uberblock.lo
  CC       module/zfs/libzpool_la-unique.lo
  CC       module/zfs/libzpool_la-vdev.lo
  CC       module/zfs/libzpool_la-vdev_draid.lo
  CC       module/zfs/libzpool_la-vdev_draid_rand.lo
  CC       module/zfs/libzpool_la-vdev_indirect.lo
  CC       module/zfs/libzpool_la-vdev_indirect_births.lo
  CC       module/zfs/libzpool_la-vdev_indirect_mapping.lo
  CC       module/zfs/libzpool_la-vdev_initialize.lo
  CC       module/zfs/libzpool_la-vdev_label.lo
  CC       module/zfs/libzpool_la-vdev_mirror.lo
  CC       module/zfs/libzpool_la-vdev_missing.lo
  CC       module/zfs/libzpool_la-vdev_queue.lo
  CC       module/zfs/libzpool_la-vdev_raidz.lo
  CC       module/zfs/libzpool_la-vdev_raidz_math.lo
  CC       module/zfs/libzpool_la-vdev_raidz_math_aarch64_neon.lo
  CC       module/zfs/libzpool_la-vdev_raidz_math_aarch64_neonx2.lo
  CC       module/zfs/libzpool_la-vdev_raidz_math_avx2.lo
  CC       module/zfs/libzpool_la-vdev_raidz_math_avx512bw.lo
  CC       module/zfs/libzpool_la-vdev_raidz_math_avx512f.lo
  CC       module/zfs/libzpool_la-vdev_raidz_math_powerpc_altivec.lo
  CC       module/zfs/libzpool_la-vdev_raidz_math_scalar.lo
  CC       module/zfs/libzpool_la-vdev_raidz_math_sse2.lo
  CC       module/zfs/libzpool_la-vdev_raidz_math_ssse3.lo
  CC       module/zfs/libzpool_la-vdev_rebuild.lo
  CC       module/zfs/libzpool_la-vdev_removal.lo
  CC       module/zfs/libzpool_la-vdev_root.lo
  CC       module/zfs/libzpool_la-vdev_trim.lo
  CC       module/zfs/libzpool_la-zap.lo
  CC       module/zfs/libzpool_la-zap_leaf.lo
  CC       module/zfs/libzpool_la-zap_micro.lo
  CC       module/zfs/libzpool_la-zcp.lo
  CC       module/zfs/libzpool_la-zcp_get.lo
  CC       module/zfs/libzpool_la-zcp_global.lo
  CC       module/zfs/libzpool_la-zcp_iter.lo
  CC       module/zfs/libzpool_la-zcp_set.lo
  CC       module/zfs/libzpool_la-zcp_synctask.lo
  CC       module/zfs/libzpool_la-zfeature.lo
  CC       module/zfs/libzpool_la-zfs_byteswap.lo
  CC       module/zfs/libzpool_la-zfs_chksum.lo
  CC       module/zfs/libzpool_la-zfs_fm.lo
  CC       module/zfs/libzpool_la-zfs_fuid.lo
  CC       module/zfs/libzpool_la-zfs_ratelimit.lo
  CC       module/zfs/libzpool_la-zfs_rlock.lo
  CC       module/zfs/libzpool_la-zfs_sa.lo
  CC       module/zfs/libzpool_la-zil.lo
  CC       module/zfs/libzpool_la-zio.lo
  CC       module/zfs/libzpool_la-zio_checksum.lo
  CC       module/zfs/libzpool_la-zio_compress.lo
  CC       module/zfs/libzpool_la-zio_inject.lo
  CC       module/zfs/libzpool_la-zle.lo
  CC       module/zfs/libzpool_la-zrlock.lo
  CC       module/zfs/libzpool_la-zthr.lo
  CC       module/icp/spi/libicp_la-kcf_spi.lo
  CC       module/icp/api/libicp_la-kcf_ctxops.lo
  CC       module/icp/api/libicp_la-kcf_cipher.lo
  CC       module/icp/api/libicp_la-kcf_mac.lo
  CC       module/icp/algs/aes/libicp_la-aes_impl_aesni.lo
  CC       module/icp/algs/aes/libicp_la-aes_impl_generic.lo
  CC       module/icp/algs/aes/libicp_la-aes_impl_x86-64.lo
  CC       module/icp/algs/aes/libicp_la-aes_impl.lo
  CC       module/icp/algs/aes/libicp_la-aes_modes.lo
  CC       module/icp/algs/blake3/libicp_la-blake3.lo
  CC       module/icp/algs/blake3/libicp_la-blake3_generic.lo
  CC       module/icp/algs/blake3/libicp_la-blake3_impl.lo
  CC       module/icp/algs/edonr/libicp_la-edonr.lo
  CC       module/icp/algs/modes/libicp_la-modes.lo
  CC       module/icp/algs/modes/libicp_la-cbc.lo
  CC       module/icp/algs/modes/libicp_la-gcm_generic.lo
  CC       module/icp/algs/modes/libicp_la-gcm_pclmulqdq.lo
  CC       module/icp/algs/modes/libicp_la-gcm.lo
  CC       module/icp/algs/modes/libicp_la-ctr.lo
  CC       module/icp/algs/modes/libicp_la-ccm.lo
  CC       module/icp/algs/modes/libicp_la-ecb.lo
  CC       module/icp/algs/sha2/libicp_la-sha2_generic.lo
  CC       module/icp/algs/sha2/libicp_la-sha256_impl.lo
  CC       module/icp/algs/sha2/libicp_la-sha512_impl.lo
  CC       module/icp/algs/skein/libicp_la-skein.lo
  CC       module/icp/algs/skein/libicp_la-skein_block.lo
  CC       module/icp/algs/skein/libicp_la-skein_iv.lo
  CC       module/icp/libicp_la-illumos-crypto.lo
  CC       module/icp/io/libicp_la-aes.lo
  CC       module/icp/io/libicp_la-sha2_mod.lo
  CC       module/icp/io/libicp_la-skein_mod.lo
  CC       module/icp/core/libicp_la-kcf_sched.lo
  CC       module/icp/core/libicp_la-kcf_prov_lib.lo
  CC       module/icp/core/libicp_la-kcf_callprov.lo
  CC       module/icp/core/libicp_la-kcf_mech_tabs.lo
  CC       module/icp/core/libicp_la-kcf_prov_tabs.lo
  CC       module/zfs/libicp_la-zfs_impl.lo
  CC       module/icp/asm-x86_64/aes/libicp_la-aeskey.lo
  CPPAS    module/icp/asm-x86_64/aes/libicp_la-aes_amd64.lo
  CPPAS    module/icp/asm-x86_64/aes/libicp_la-aes_aesni.lo
  CPPAS    module/icp/asm-x86_64/modes/libicp_la-gcm_pclmulqdq.lo
  CPPAS    module/icp/asm-x86_64/modes/libicp_la-aesni-gcm-x86_64.lo
  CPPAS    module/icp/asm-x86_64/modes/libicp_la-ghash-x86_64.lo
  CPPAS    module/icp/asm-x86_64/sha2/libicp_la-sha256-x86_64.lo
  CPPAS    module/icp/asm-x86_64/sha2/libicp_la-sha512-x86_64.lo
  CPPAS    module/icp/asm-x86_64/blake3/libicp_la-blake3_avx2.lo
  CPPAS    module/icp/asm-x86_64/blake3/libicp_la-blake3_avx512.lo
  CPPAS    module/icp/asm-x86_64/blake3/libicp_la-blake3_sse2.lo
  CPPAS    module/icp/asm-x86_64/blake3/libicp_la-blake3_sse41.lo
  CCLD     libicp.la
copying selected object files to avoid basename conflicts...
  CC       module/unicode/libunicode_la-u8_textprep.lo
  CC       module/unicode/libunicode_la-uconv.lo
  CCLD     libunicode.la
  CC       lib/libnvpair/libnvpair_la-libnvpair.lo
  CC       lib/libnvpair/libnvpair_la-libnvpair_json.lo
  CC       lib/libnvpair/libnvpair_la-nvpair_alloc_system.lo
  CC       module/nvpair/libnvpair_la-nvpair_alloc_fixed.lo
  CC       module/nvpair/libnvpair_la-nvpair.lo
  CC       module/nvpair/libnvpair_la-fnvpair.lo
  CC       lib/libspl/libspl_assert_la-assert.lo
  CCLD     libspl_assert.la
  CCLD     libnvpair.la
  CC       module/zstd/lib/common/libzstd_la-entropy_common.lo
  CC       module/zstd/lib/common/libzstd_la-error_private.lo
  CC       module/zstd/lib/common/libzstd_la-fse_decompress.lo
  CC       module/zstd/lib/common/libzstd_la-pool.lo
  CC       module/zstd/lib/common/libzstd_la-zstd_common.lo
  CC       module/zstd/lib/compress/libzstd_la-fse_compress.lo
  CC       module/zstd/lib/compress/libzstd_la-hist.lo
  CC       module/zstd/lib/compress/libzstd_la-huf_compress.lo
  CC       module/zstd/lib/compress/libzstd_la-zstd_compress_literals.lo
  CC       module/zstd/lib/compress/libzstd_la-zstd_compress_sequences.lo
  CC       module/zstd/lib/compress/libzstd_la-zstd_compress_superblock.lo
  CC       module/zstd/lib/compress/libzstd_la-zstd_compress.lo
  CC       module/zstd/lib/compress/libzstd_la-zstd_double_fast.lo
  CC       module/zstd/lib/compress/libzstd_la-zstd_fast.lo
  CC       module/zstd/lib/compress/libzstd_la-zstd_lazy.lo
  CC       module/zstd/lib/compress/libzstd_la-zstd_ldm.lo
  CC       module/zstd/lib/compress/libzstd_la-zstd_opt.lo
  CC       module/zstd/lib/decompress/libzstd_la-huf_decompress.lo
  CC       module/zstd/lib/decompress/libzstd_la-zstd_ddict.lo
  CC       module/zstd/lib/decompress/libzstd_la-zstd_decompress.lo
  CC       module/zstd/lib/decompress/libzstd_la-zstd_decompress_block.lo
  CC       module/zstd/libzstd_la-zfs_zstd.lo
  CCLD     libzstd.la
  CC       lib/libzutil/libzutil_la-zutil_device_path.lo
  CC       lib/libzutil/libzutil_la-zutil_import.lo
  CC       lib/libzutil/libzutil_la-zutil_nicenum.lo
  CC       lib/libzutil/libzutil_la-zutil_pool.lo
  CC       lib/libzutil/os/linux/libzutil_la-zutil_setproctitle.lo
  CC       lib/libzutil/os/linux/libzutil_la-zutil_device_path_os.lo
  CC       lib/libzutil/os/linux/libzutil_la-zutil_import_os.lo
  CC       module/avl/libavl_la-avl.lo
  CCLD     libavl.la
  CC       lib/libtpool/libtpool_la-thread_pool.lo
  CCLD     libtpool.la
  CC       lib/libspl/libspl_la-atomic.lo
  CC       lib/libspl/libspl_la-getexecname.lo
  CC       lib/libspl/libspl_la-list.lo
  CC       lib/libspl/libspl_la-mkdirp.lo
  CC       lib/libspl/libspl_la-page.lo
  CC       lib/libspl/libspl_la-strlcat.lo
  CC       lib/libspl/libspl_la-strlcpy.lo
  CC       lib/libspl/libspl_la-timestamp.lo
  CC       lib/libspl/os/linux/libspl_la-getexecname.lo
  CC       lib/libspl/os/linux/libspl_la-gethostid.lo
  CC       lib/libspl/os/linux/libspl_la-getmntany.lo
  CC       lib/libspl/os/linux/libspl_la-zone.lo
  CCLD     libspl.la
copying selected object files to avoid basename conflicts...
  CC       lib/libefi/libefi_la-rdwr_efi.lo
  CCLD     libefi.la
  CCLD     libzutil.la
  CCLD     libzpool.la
  CC       lib/libzfs_core/libzfs_core_la-libzfs_core.lo
  CC       lib/libzfs_core/os/linux/libzfs_core_la-libzfs_core_ioctl.lo
  CCLD     libzfs_core.la
  CCLD     raidz_test
  CC       cmd/mount_zfs.o
  CC       lib/libzfs/libzfs_la-libzfs_changelist.lo
  CC       lib/libzfs/libzfs_la-libzfs_config.lo
  CC       lib/libzfs/libzfs_la-libzfs_crypto.lo
  CC       lib/libzfs/libzfs_la-libzfs_dataset.lo
  CC       lib/libzfs/libzfs_la-libzfs_diff.lo
  CC       lib/libzfs/libzfs_la-libzfs_import.lo
  CC       lib/libzfs/libzfs_la-libzfs_iter.lo
  CC       lib/libzfs/libzfs_la-libzfs_mount.lo
  CC       lib/libzfs/libzfs_la-libzfs_pool.lo
  CC       lib/libzfs/libzfs_la-libzfs_sendrecv.lo
  CC       lib/libzfs/libzfs_la-libzfs_status.lo
  CC       lib/libzfs/libzfs_la-libzfs_util.lo
  CC       lib/libzfs/os/linux/libzfs_la-libzfs_mount_os.lo
  CC       lib/libzfs/os/linux/libzfs_la-libzfs_pool_os.lo
  CC       lib/libzfs/os/linux/libzfs_la-libzfs_util_os.lo
  CC       module/zcommon/libzfs_la-cityhash.lo
  CC       module/zcommon/libzfs_la-zfeature_common.lo
  CC       module/zcommon/libzfs_la-zfs_comutil.lo
  CC       module/zcommon/libzfs_la-zfs_deleg.lo
  CC       module/zcommon/libzfs_la-zfs_fletcher.lo
  CC       module/zcommon/libzfs_la-zfs_fletcher_aarch64_neon.lo
  CC       module/zcommon/libzfs_la-zfs_fletcher_avx512.lo
  CC       module/zcommon/libzfs_la-zfs_fletcher_intel.lo
  CC       module/zcommon/libzfs_la-zfs_fletcher_sse.lo
  CC       module/zcommon/libzfs_la-zfs_fletcher_superscalar.lo
  CC       module/zcommon/libzfs_la-zfs_fletcher_superscalar4.lo
  CC       module/zcommon/libzfs_la-zfs_namecheck.lo
  CC       module/zcommon/libzfs_la-zfs_prop.lo
  CC       module/zcommon/libzfs_la-zpool_prop.lo
  CC       module/zcommon/libzfs_la-zprop_common.lo
  CC       lib/libshare/libshare_la-libshare.lo
  CC       lib/libshare/libshare_la-nfs.lo
  CC       lib/libshare/os/linux/libshare_la-nfs.lo
  CC       lib/libshare/os/linux/libshare_la-smb.lo
  CCLD     libshare.la
copying selected object files to avoid basename conflicts...
  CC       lib/libuutil/libuutil_la-uu_alloc.lo
  CC       lib/libuutil/libuutil_la-uu_avl.lo
  CC       lib/libuutil/libuutil_la-uu_ident.lo
  CC       lib/libuutil/libuutil_la-uu_list.lo
  CC       lib/libuutil/libuutil_la-uu_misc.lo
  CC       lib/libuutil/libuutil_la-uu_string.lo
  CCLD     libuutil.la
  CCLD     libzfs.la
  CCLD     mount.zfs
  CC       cmd/zfs_ids_to_path.o
  CCLD     zfs_ids_to_path
/usr/bin/ld: ./.libs/libzfs.so: undefined reference to `lzc_get_vdev_prop'
/usr/bin/ld: ./.libs/libzfs.so: undefined reference to `lzc_receive_with_heal'
/usr/bin/ld: ./.libs/libzfs.so: undefined reference to `lzc_scrub'
/usr/bin/ld: ./.libs/libzfs.so: undefined reference to `lzc_set_vdev_prop'
/usr/bin/ld: ./.libs/libzfs.so: undefined reference to `lzc_send_wrapper'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:7146: zfs_ids_to_path] Error 1
make[1]: *** [Makefile:12207: all-recursive] Error 1
make: *** [Makefile:4615: all] Error 2

My idea is to make the Debian-compatible packages and install them on my system to get back ZFS support. The alternative option would be to downgrade back to a 6.1 kernel and the ZFS library in the Debian repository, but I'm also using this as a learning experience.

Any help would be appreciated. Many thanks.

rincebrain commented 6 months ago

Debian is shipping 2.2.2 packages in backports and testing, if you just wanted to use those.

If those also don't work, you should probably report a bug there, not just here.

(I'm not saying this isn't a bug to be investigated here, just that I suspect the people who maintain the ZoL packages would be surprised to learn they don't work on 6.5, since testing is also shipping 6.5, and I don't see it as marked FTBFS there...)

Those errors also seem like it might be trying to link against the installed copy of libzfs, somehow, and naturally that has missing symbols compared to a different version. I'm not sure why that would be happening, but that is what it looks like from just the symbol errors.

You might want to try cloning a clean copy of 2.2.2 and building that, in a new directory. This seems like the kind of error that happens when you have half a tree of built things from a different version.

Harry-Chen commented 5 months ago

Please install zfs from bookworm-backports in the same way as you install your backported 6.5 kernel. The stable kernel won't break the build of stable zfs.