Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 902821

Summary: sys-fs/zfs-kmod-9999: fails to build with linux-6.2 (ERROR: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'bio_start_io_acct')
Product: Gentoo Linux Reporter: HougeLangley <hougelangley1987>
Component: Current packagesAssignee: Georgy Yakovlev <gyakovlev>
Status: RESOLVED UPSTREAM    
Severity: normal CC: admnd, alexey.ugnichev, c2778148787, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/openzfs/zfs/issues/14658
https://bugs.gentoo.org/show_bug.cgi?id=903117
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: full build log
emerge --info

Description HougeLangley 2023-03-23 14:38:29 UTC
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
Comment 1 HougeLangley 2023-03-23 14:39:35 UTC
Created attachment 858699 [details]
full build log
Comment 2 HougeLangley 2023-03-23 14:41:04 UTC
Created attachment 858701 [details]
emerge --info
Comment 4 Adrien Dessemond 2023-03-26 15:07:15 UTC
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.)
Comment 5 Georgy Yakovlev archtester gentoo-dev 2023-03-27 21:22:02 UTC
upstream merged fix 
https://github.com/openzfs/zfs/commit/ae0b1f66c707cff09bfde54aade784a016559a34