You are not logged in.

#1 2020-03-22 02:51:31

noyouaretheman
Member
Registered: 2020-03-22
Posts: 1

nvidia-dkms fails to build

Some time within the last couple of months, nvidia-dkms stopped building successfully on my machine. I suspect something is wrong with my environment, but I'm not sure what.

When I install nvidia-dkms with pacman, I get the following output:

==> dkms install nvidia/440.64 -k 5.5.10-1-ck-haswell
Error! Bad return status for module build on kernel: 5.5.10-1-ck-haswell (x86_64)
Consult /var/lib/dkms/nvidia/440.64/build/make.log for more information.
==> dkms install nvidia/440.64 -k 5.4.26-1-lts
Error! Bad return status for module build on kernel: 5.4.26-1-lts (x86_64)
Consult /var/lib/dkms/nvidia/440.64/build/make.log for more information.
==> dkms install nvidia/440.64 -k 5.5.10-arch1-1
Error! Bad return status for module build on kernel: 5.5.10-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/440.64/build/make.log for more information.

Looking at /var/lib/dkms/nvidia/440.64/biuld/make.log, I see

DKMS make.log for nvidia-440.64 for kernel 5.5.10-arch1-1 (x86_64)
Sat Mar 21 20:34:10 MDT 2020
make[1]: Entering directory '/usr/lib/modules/5.5.10-arch1-1/build'
make[1]: cc: No such file or directory
make[1]: make: No such file or directory
make[1]: *** [Makefile:1693: /var/lib/dkms/nvidia/440.64/build] Error 127
make[1]: Leaving directory '/usr/lib/modules/5.5.10-arch1-1/build'
make: *** [Makefile:81: modules] Error 2

Going into /var/lib/dkms/nvidia/440.64/build and compiling with

sudo make

works just fine, however. After compiling, I can install the modules with

sudo dkms install nvidia/440.64

Any ideas as to what could be different in the way the official PKGBUILD is building the package versus how I'm manually compiling it? This isn't a big deal since I just use the precompiled versions for the mainline and LTS kernels, but this has made it so I can't use the linux-ck-haswell kernel.

Offline

#2 2020-03-22 03:30:15

loqs
Member
Registered: 2014-03-06
Posts: 10,093

Re: nvidia-dkms fails to build

What is the output of the following

/usr/bin/which cc make
/usr/bin/printenv PATH

Last edited by loqs (2020-03-22 03:30:51)

Offline

Board footer

Powered by FluxBB