jakeday / linux-surface

Linux Kernel for Surface Devices
2.6k stars 243 forks source link

Can't upgrade from 5.1.15 to 5.2.x, 5.3.x #598

Closed hbh7 closed 4 years ago

hbh7 commented 4 years ago

Hey all, I started off here with the kernel from this repo, but later discovered qzed's more up to date one, and wanted to switch to that. Unfortunately I've run into a few issues...

Running Arch on a Surface Book 2 13"

Installing the prebuilt kernels from https://github.com/qzed/linux-surface/releases gives me errors installing every module, ex:

==> dkms install wireguard/0.0.20191012 -k 5.3.6-1-surface
Error! Bad return status for module build on kernel: 5.3.6-1-surface (x86_64)
Consult /var/lib/dkms/wireguard/0.0.20191012/build/make.log for more information.

Checking those files and the culprit seems to be cc1: error: incompatible gcc/plugin versions

I've tried a few of the various setup scripts such as https://github.com/qzed/linux-surface/blob/master/setup.sh and the one here https://github.com/dmhacker/arch-linux-surface with adjusted repo paths, but no luck still.

Not really sure what's up, or where to go from here. Happy to provide any more info. Thanks!

qzed commented 4 years ago

This issue is caused by a gcc update on Arch, basically the gcc kernel with which the kernel was built is incompatible with the gcc used when building the modules via dkms.

I've uploaded some new releases. Should be fixed.

hbh7 commented 4 years ago

Working good now, thank you! I did have to install it twice though as it seemed to be looking for modules in a 5.1 folder that didn't exist. Rebooting and then installing it again (presumably since it was then running the new one) made it find everything though so all good now.