After updating today my nvidia dkms module will not build on my 5.15.23-1-lts kernel.
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.
Thanks in advance.
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (GCC) 11.2.0
You are using: cc (GCC) 11.2.0
The version is correct, but the executable is different. Do you have some custom compiler path or override, or are using something like ccache?
Seems something is wrong with that kernel build.
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
Edit: confirm the issue is with
linux-lts. Other kernels seem unaffected.
Just installed the zen one out of curiosity. Modules build fine for that one as well here…
According to one of the pacman devs,
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
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.