Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902821 - 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')
Summary: sys-fs/zfs-kmod-9999: fails to build with linux-6.2 (ERROR: modpost: GPL-inco...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-23 14:38 UTC by HougeLangley
Modified: 2023-03-27 21:22 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
full build log (zfs-kmod-9999-full-build.log,890.68 KB, text/plain)
2023-03-23 14:39 UTC, HougeLangley
Details
emerge --info (emerge --info.log,7.87 KB, text/plain)
2023-03-23 14:41 UTC, HougeLangley
Details

Note You need to log in before you can comment on or make changes to this bug.
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