Need help or update on current system76 module build error. Specifically seems to be system76_hwmon. Not sure if this question is specific to nixos or to system76? Is it just a mater of waiting for next module update or is there something else that should be done?
stderr from rebuild:
sudo nix-channel --update
unpacking channels...
sudo nixos-rebuild boot --upgrade
In file included from /build/source/system76.c:110:
/build/source/system76_hwmon.c:24:5: warning: this use of "defined" may not be portable [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wexpansion-to-defined-Wexpansion-to-defined8;;]
24 | #if S76_HAS_HWMON
| ^~~~~~~~~~~~~
/build/source/system76_hwmon.c:24:5: warning: this use of "defined" may not be portable [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wexpansion-to-defined-Wexpansion-to-defined8;;]
/build/source/system76_hwmon.c:24:5: warning: this use of "defined" may not be portable [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wexpansion-to-defined-Wexpansion-to-defined8;;]
/build/source/system76.c:283:19: error: initialization of 'void (*)(struct platform_device *)' from incompatible pointer type 'int (*)(struct platform_device *)' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Werror=incompatible-pointer-types8;;]
283 | .remove = s76_remove,
| ^~~~~~~~~~
/build/source/system76.c:283:19: note: (near initialization for 's76_platform_driver.<anonymous>.remove')
cc1: some warnings being treated as errors
make[3]: *** [/nix/store/d4hzyrkkp1lqy8z30k10q6za7y4gxy5i-linux-6.11-dev/lib/modules/6.11.0/source/scripts/Makefile.build:244: /build/source/system76.o] Error 1
make[2]: *** [/nix/store/d4hzyrkkp1lqy8z30k10q6za7y4gxy5i-linux-6.11-dev/lib/modules/6.11.0/source/Makefile:1926: /build/source] Error 2
make[1]: *** [/nix/store/d4hzyrkkp1lqy8z30k10q6za7y4gxy5i-linux-6.11-dev/lib/modules/6.11.0/source/Makefile:224: __sub-make] Error 2
make[1]: Leaving directory '/nix/store/d4hzyrkkp1lqy8z30k10q6za7y4gxy5i-linux-6.11-dev/lib/modules/6.11.0/build'
make: *** [Makefile:5: all] Error 2
error: builder for '/nix/store/wmpm8w91x9b6cfx61km3x0ak6ba9i314-system76-module-1.0.13-6.11.drv' failed with exit code 2
error: 1 dependencies of derivation '/nix/store/b38x8f01i7pkq8sq6r4hzhzdfj3vw14r-hwdb.bin.drv' failed to build
Meta information:
OS: NixOS 24.11pre680873.345c263f2f53 (Vicuna) x86_64
NIX VERSION: 2.18.5
Host: System76 Pangolin
Kernel: 6.10.10
DE: Plasma 6.1.5 (Wayland)
CPU: AMD Ryzen 7 6800U with Radeon Graphics (16) @ 4.768GHz
GPU: AMD ATI Radeon 680M
Thank you in advance for any help and assistance.