I'm trying to compile zfs on my raspberry pi4, running CentOS 7.7 (64bit). I followed the instructions provided here: https://github.com/zfsonlinux/zfs/wiki/Building-ZFS but can't get past the following error:
checking kernel source version... 4.19.86-v8+ checking kernel file name for module symbols... Module.symvers checking whether modules can be built... no configure: error: *** Unable to build an empty module.
Here is the link to the entire config.log - I couldn't really make sense of it: https://pastebin.com/Whmg6hFw
And here's some background information on my system:
# uname -a Linux localhost 4.19.86-v8+ #1 SMP PREEMPT Sat Dec 7 12:40:40 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux # rpm -qa | grep kernel kernel-4.19.86_v8+-1.aarch64 kernel-devel-4.19.86_v8+-1.aarch64 kernel-headers-4.19.86_v8+-1.aarch64 # cat /etc/system-release CentOS Linux release 7.7.1908 (AltArch)
I compiled the kernel and their rpms myself from the official GitHub repo; no issues or whatsoever with those (just in case that's part of the error - although I don't think so). https://github.com/raspberrypi/linux
Any help appreciated - thanks in advance😉!