electrified / asus-wmi-sensors

Linux HWMON (lmsensors) sensors driver for various ASUS Ryzen and Threadripper motherboards
GNU General Public License v2.0
250 stars 30 forks source link

Failed to build on kernel 5.4.2? #44

Closed denglili closed 4 years ago

denglili commented 4 years ago

I am on Ubuntu 18.04 and tried to upgraded to kernel 5.4.2 via ukuu, and asus-wmi-senors failed to build.

Currently rolled back to 5.3.15 and it works well.

KeithMyers commented 4 years ago

Thanks for the warning.

electrified commented 4 years ago

Can you paste the error message you are getting? The module builds OK on the current Arch Linux 5.4.2-arch1-1 kernel, so I don't think it is a general 5.4.2 issue.

denglili commented 4 years ago

Here is the build log: make.log

electrified commented 4 years ago

I think the version of GCC in 18.04 is too old to build the kernel (or any modules for it, hence the failure) due to changes in the header files in recent kernel versions.

Upgrading GCC to the version used to build the kernel would fix it, but I am not sure if this is possible (I'm not a debian/ubuntu expert)

See here for someone else having the same issue: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/1853090. Their fix is simply to not build the module.

denglili commented 4 years ago

@electrified you are right, my GCC is too old. 18.04 has GCC 7 by default, switching to GCC 8 fixes the build. Thanks!