Open
Description
zfs doesn't compile on arm64 with CONFIG_PREEMPT=y due to an issue mentioned here openzfs/zfs#8545 with the GPL-only symbol 'preempt_schedule_notrace'
The workaround mentioned here openzfs/zfs#8545 (comment) is to have CONFIG_PREEMPT_VOLUNTARY=y set instead.
Compiling arm64 zfs-dkms from ubuntu gives this error:
Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.4.29-v8+................................................................(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-5.4.29-v8+ is not supported
Error! Bad return status for module build on kernel: 5.4.29-v8+ (aarch64)
Consult /var/lib/dkms/zfs/0.8.3/build/make.log for more information.
...
FATAL: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'preempt_schedule_notrace'
make[4]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[3]: *** [Makefile:1607: modules] Error 2
make[3]: Leaving directory '/usr/src/rpi-linux'
make[2]: *** [Makefile:30: modules] Error 2
make[2]: Leaving directory '/var/lib/dkms/zfs/0.8.3/build/module'
make[1]: *** [Makefile:807: all-recursive] Error 1
make[1]: Leaving directory '/var/lib/dkms/zfs/0.8.3/build'
make: *** [Makefile:676: all] Error 2
Expected behaviour
The zfs module compiles successfully. (It does with the default ubuntu focal kernel.)
Metadata
Metadata
Assignees
Labels
No labels