r/voidlinux•
abakram

Nvidia dkms build fail after update

I just finished peforming an update a while ago. Nvidia package got updated to 510.68.02.

Whenever the system tries to build the nvidia dkms module, it fails.

It says “Error! Build of nvidia.ko failed for: 5.15.36_1” (it also fails for 5.16.16/18/20)

I checked dkms make.log and cannot find anything suspicious. Tried grepping for “error” but it does not return anything.

The error that I see is when running the dkms build or performing xbps-reconfigure —force linux5.15:

/bin/dkms: line 1315: ((: < 2: syntax error: operand expected (error token is “< 2”)

Any ideas to resolve this?

UPDATE: Since I cannot seem to figure out the issue, I ended up reinstalling Void. Something must have been corrupted hence causing the issue.

Posted May 13, 2022, 11:40 AM UTC · edited

58
furryfixer•

I have not upgraded to 510.68.02 yet, but if multiple people do not report this error, I would suspect your nvidia package did not update properly or is corrupted somehow. I might try force reinstalling nvidia, nvidia-libs, nvidia-dkms, before moving on to other options

2
abakramOP•

Tried reinstalling and reconfiguring, and it still failing. I don’t think it is related to that specific version. I think something just got corrupted in my system.

2
Knoggelvi•

I had this problem with the nvidia drivers a few weeks ago. After multiple times uninstalling, rebuilding, etc and still receiving an "Error!", it dawned on me that the nvidia.ko file was never actually being rebuilt because xbps-remove did not remove the existing copy. So delete nvidia.ko and reinstall. That worked for me.

1
abakramOP•

Thanks for the tip. I checked /lib/modules/<kernel version>/kernel/drivers/video and did not find a file that has “nvidia.”

1
Knoggelvi•

find /lib/modules -name nvidia doesn't turn up anything? That's unfortunate. Sorry dude.

1
cs098•

I don't have the same error but I have problems with this nvidia update as well.

Like op the make.logs didn't give my any errors, but trying xbps-reconfigure gave the same error as this post (replace 5.4 with 5.16).

https://www.reddit.com/r/voidlinux/comments/hhjes8/problem_with_nvidiadkms_and_kernel_5449_1/.

ibkmod: kmod_module_parse_depline: ctx=0x55869b3ca080 path=/lib/modules/4.19.101_1//kernel/drivers/iommu/amd_iommu_v2.ko.gz error=No such file or directory

dracut-install: could not get modinfo from 'amdkfd': No such file or directory

libkmod: kmod_module_parse_depline: ctx=0x55869b3ca080 path=/lib/modules/4.19.101_1//kernel/drivers/iommu/amd_iommu_v2.ko.gz error=No such file or directory

libkmod: kmod_module_parse_depline: ctx=0x55869b3ca080 path=/lib/modules/4.19.101_1//kernel/drivers/hv/hv_vmbus.ko.gz error=No such file or directory

...continues for several pages...

dracut-install: could not get modinfo from 'crc32c_intel': No such file or directory

dracut-install: could not get modinfo from 'crc32c_generic': No such file or directory

dracut-install: could not get modinfo from 'crc32_pclmul': No such file or directory

dracut-install: could not get modinfo from 'crc32_generic': No such file or directory

dracut-install: Failed to find module 'nvidia_drm' /lib/modules/5.4.49_1//kernel/drivers/video/nvidia-drm.ko.gz

dracut-install: Failed to find module 'nvidia_modeset' /lib/modules/5.4.49_1//kernel/drivers/video/nvidia-modeset.ko.gz

dracut-install: Failed to find module 'nvidia' /lib/modules/5.4.49_1//kernel/drivers/video/nvidia.ko.gz

dracut-install: Failed to find module 'nvidia_uvm' /lib/modules/5.4.49_1//kernel/drivers/video/nvidia-uvm.ko.gz

nvidia-dkms: configured successfully.

While the drivers are working, I'm getting micro stutters and freezes during normal operation which I did have before the nvidia update. Reinstalling and reconfiguring isn't working for me either.

1
Then_Effect_9447•

Your /bin/sh shall be dash, not something else.

0
furryfixer•

That is not a shell command prompt.

2