NVIDIA DKMS not building on LTS Kernel

After updating today my nvidia dkms module will not build on my 5.15.23-1-lts kernel.

DKMS log:

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.

System info:

Thanks in advance.

1 Like
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 :thinking:

1 Like

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:

1 Like

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:grin:

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 :stuck_out_tongue:


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.