sh ./scripts/modules-check.sh /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module/modules.order make -f ./scripts/Makefile.modpost scripts/mod/modpost -a -N -o /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module/Module.symvers -n -T /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module/modules.order -i Module.symvers -e ERROR: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'bio_start_io_acct' ERROR: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'bio_end_io_acct_remapped' make[4]: *** [scripts/Makefile.modpost:138: /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module/Module.symvers] Error 1 make[3]: *** [Makefile:1973: modpost] Error 2 make[2]: *** [Makefile:56: modules-Linux] Error 2 make[2]: Leaving directory '/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module' make[1]: *** [Makefile:12069: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999' make: *** [Makefile:4588: all] Error 2
Created attachment 858699 [details] full build log
Created attachment 858701 [details] emerge --info
https://github.com/openzfs/zfs/issues/14658#issue-1636760533
FYI this API breakage occurs with Linux 6.2.8 (6.2.7 works even with the latest tagged version of ZFS which is 2.1.9 at the time of writing). Could you please, try with the patch posted in bug #903117 ? This patch comes from a third-party project but seems functional, at least for sys-fs/zfs-kmod-2.1.9. (As you use the master branch, they might already have an official working solution at the time you will test it.)
upstream merged fix https://github.com/openzfs/zfs/commit/ae0b1f66c707cff09bfde54aade784a016559a34