[SOLVED] Fedora 28 Error compiling kernel with ACS patch and DKMS

Hello!
First of all, I’m quite new to compiling and have never tried to compile a kernel before, I almost got not idea what I’m doing.

I’ve been using the pre-patched kernel from copr jlay/kernel-acspatch with great success for passtrough of my second GPU to my windows guest

However, now i want to start using zfsonlinux which uses DKMS and I’m getting errors:

# dkms autoinstall
Error! echo
Your kernel headers for kernel 4.17.2-201.acspatch.fc28.x86_64 cannot be found at
/lib/modules/4.17.2-201.acspatch.fc28.x86_64/build or /lib/modules/4.17.2-201.acspatch.fc28.x86_64/source.
Error! echo
Your kernel headers for kernel 4.17.2-201.acspatch.fc28.x86_64 cannot be found at
/lib/modules/4.17.2-201.acspatch.fc28.x86_64/build or /lib/modules/4.17.2-201.acspatch.fc28.x86_64/source.

Obviously i need the kernel-headers which the copr repo doesnt provide.
So I figured i could patch and compile my own kernel, so i followed This guide

Using This patch

cat ~/testpatch.diff | patch -p1
$ make oldconfig
$ make bzImage
$ make modules
# make modules_install 

all works just fine, However when i get to the last step, make install im getting errors:

# make install
scripts/kconfig/conf  --syncconfig Kconfig
sh ./arch/x86/boot/install.sh 4.18.0-rc4-acspatch+ arch/x86/boot/bzImage \
	System.map "/boot"
Error! Bad return status for module build on kernel: 4.18.0-rc4-acspatch+ (x86_64)
Consult /var/lib/dkms/spl/0.7.9/build/make.log for more information.
configure: error: 
	*** Please make sure the kmod spl devel <kernel> package for your
	*** distribution is installed then try again.  If that fails you
	*** can specify the location of the spl objects with the
	*** '--with-spl-obj=PATH' option.  Failed to find spl_config.h in
	*** any of the following:
	/usr/src/spl-0.7.9/4.18.0-rc4-acspatch+
	/usr/src/spl-0.7.9
Error! Bad return status for module build on kernel: 4.18.0-rc4-acspatch+ (x86_64)
Consult /var/lib/dkms/zfs/0.7.9/build/make.log for more information.

Contents of /var/lib/dkms/spl/0.7.9/build/make.log
Contents of /var/lib/dkms/zfs/0.7.9/build/make.log

What am i doing wrong?

https://copr.fedorainfracloud.org/coprs/jlay/kernel-acspatch/build/770414/

Yes it does.

kernel-headers 4.17.2

That copr repo provides every package the fedora team provides related to kernel builds.

Also, you’re not following the best guide. Let me see if I can find a better one for ya.

3 Likes

Well would you look at that! I only looked under the Packages tab :flushed:

Thank you! That worked perfectly :smiley:

4 Likes

Glad I can help. I’ve got a fair bit of experience with Fedora, although I’m not using it on a daily basis anymore.

3 Likes

Guess I should take the [OBSOLETE] out of the title then.

1 Like

Haha, it’s a good guide for patching the kernel, regardless of if NPT has been mainlined.

1 Like