@Menelkir Thanks for reply, I scrubbed my caches and found some CFLAGS/CXXFLAGS and unset them and then reinstalled kernel+headers and nvidia-470xx-dkms but unfortunately I'm still getting the same error:
...
==> dkms install --no-depmod nvidia/470.161.03 -k 6.2.7-zen1-1-zen
Error! Bad return status for module build on kernel: 6.2.7-zen1-1-zen (x86_64)
Consult /var/lib/dkms/nvidia/470.161.03/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/470.161.03 -k 6.2.7-zen1-1-zen' exited 10
❯ less /var/lib/dkms/nvidia/470.161.03/build/make.log
KMS make.log for nvidia-470.161.03 for kernel 6.2.7-zen1-1-zen (x86_64)
...
/var/lib/dkms/nvidia/470.161.03/build/nvidia/nv-acpi.c:84:19: error: initialization of ‘void (*)(struct acpi_device *)’ from incompatible pointer type ‘int (*)(struct acpi_device *, int)’ [-Werror=incompatible-pointer-types]
84 | .remove = nv_acpi_remove_two_args,
| ^~~~~~~~~~~~~~~~~~~~~~~
I will try removing then reinstalling involved packages as a last effort and see if this will change anything. If not I'm out of ideas and stay on lts kernel for now I guess.
edit: removing before reinstalling didn't change anything
edit: I just got 6.2.8-zen1-1-zen kernel and nvidia-470xx-dkms from chaotic-aur to work. But this aur package still fails to build the module for me. I'm getting a different error, but now for the lts kernel as well. So the problem is most likely on my side. Might be mixing aur with chaotic-aur packages or just something about my very old arch installation. Since chatotic-aur does the trick for me I won't investigate further. Thanks for hearing me out and looking into it @Menelkir.
Pinned Comments
SoftExpert commented on 2025-02-09 10:20 (UTC)
For the beginners in need of assistance, first take a look at this recommended guide https://github.com/korvahannu/arch-nvidia-drivers-installation-guide - maybe it helps to solve the issues your are having with this version of the driver.