Closed
Description
System information
Type | Version/Name |
---|---|
Distribution Name | NixOS |
Distribution Version | 19.03 (beta) |
Linux Kernel | 5.0.4 |
Architecture | aarch64-linux |
ZFS Version | 0.7.13 |
SPL Version | 0.7.13 |
Describe the problem you're observing
Kernel module build fails in MODPOST:
LD [M] /build/source/module/zfs/zfs.o
Building modules, stage 2.
MODPOST 7 modules
FATAL: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'preempt_schedule_notrace'
I'm also seeing the following warnings:
In file included from /build/source/module/zfs/vdev_raidz_math_aarch64_neon.c:30:0:
/build/source/module/zfs/vdev_raidz_math_aarch64_neon_common.h:126:0: warning: "ASM_BUG" redefined
#define ASM_BUG() ASSERT(0)
from /build/source/module/zfs/vdev_raidz_math_aarch64_neon.c:26:
/nix/store/avplvw4j265f6brz3g368sqrlzkyabas-linux-5.0.4-dev/lib/modules/5.0.4/source/arch/arm64/include/asm/asm-bug.h:52:0: note: this is the location of the previous definition
#define ASM_BUG() ASM_BUG_FLAGS(0)
In file included from /build/source/module/zfs/vdev_raidz_math_aarch64_neonx2.c:29:0:
/build/source/module/zfs/vdev_raidz_math_aarch64_neon_common.h:126:0: warning: "ASM_BUG" redefined
#define ASM_BUG() ASSERT(0)
from /build/source/module/zfs/vdev_raidz_math_aarch64_neonx2.c:29:
/nix/store/avplvw4j265f6brz3g368sqrlzkyabas-linux-5.0.4-dev/lib/modules/5.0.4/source/arch/arm64/include/asm/asm-bug.h:52:0: note: this is the location of the previous definition
#define ASM_BUG() ASM_BUG_FLAGS(0)
Describe how to reproduce the problem
Attempt to compile the module. In this particular case, if you have a machine with Nix running aarch64:
nix-build https://github.com/nixos/nixpkgs/archive/23fd1394dc6bef03a2ff010278a24403a97f0647.tar.gz --system aarch64-linux -A linuxPackages_5_0.zfs