It seems like there is something wrong with my installed version of GCC, but I am not sure how to proceed. The same process worked fine with 5.16.9-arch1-1 so it seems isolated to the LTS kernel.
Same error here (not NVIDIA, but all my dkms modules fail to build with the same error).
The funny thing is that I can still build modules for my custom compiled kernel which was built with gc 11.1 and does not match the currently installed gcc 11.2
You got a bunch of Arch users reporting a similar issue here with the recent toolchain update, though I’m not sure what to make of it all yet at the moment, I’m just reading along:
It’s strange, but I don’t see any problem with the toolchain. For me with GCC 11.2 installed, DKMS modules didn’t build for linux-mainline built against GCC 11.1, but built fine with linux-mainline compiled against GCC 11.2 - which is what you’d expect.
All DKMS modules built fine against linux-zen 5.16.9.zen1-1 (which is also built with GCC 11.2).
This might imply a partial upgrade situation on those systems having problems (e.g. out-of-sync mirror)…
I guess I should test linux-lts…
Edit: confirm the issue is with linux-lts. Other kernels seem unaffected.
Edit: it appears there was a change in gcc before release and only main linux package was rebuilt. The rest are on the way.
So be on the lookout for another kernel update for main/zen/lts in the very near future as well. I’ll probably be itching to update first thing in the morning tomorrow, I don’t think I’ll be able to patiently wait till Friday anymore heh heh