Skip to main content
Topic: DKMS modules fail to install (Read 2041 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

DKMS modules fail to install

linux & linux-headers version: 4.15.7-1
dkms version: 2.5-1
Laptop Model: Dell Inspirion 5566

I have attempted to install several dkms packages, both of which result in a "Bad return status" error. The make.log contents for both of these packages is shown below.

openrazer-driver-dkms:
Code: [Select]
::^[[32m Compiling OpenRazer kernel modules^[[0m
========================================
make -C /lib/modules/4.15.5-1-ARTIX/build SUBDIRS=/var/lib/dkms/openrazer-driver/1.0.0/build/driver modules
make[1]: Entering directory '/usr/lib/modules/4.15.5-1-ARTIX/build'
gcc: error trying to exec 'cc1': execvp: No such file or directory
gcc: error trying to exec 'cc1': execvp: No such file or directory
Makefile:934: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_OR/var/lib/dkms/openrazer-driver/1.0.0/build/make.logC=y,
please install libelf-dev, libelf-devel or elfutils-libelf-devel".  Stop.
make[1]: Leaving directory '/usr/lib/modules/4.15.5-1-ARTIX/build'
make: *** [Makefile:27: driver] Error 2

virtualbox-host-dkms:
Code: [Select]
DKMS make.log for vboxhost-5.2.8_OSE for kernel 4.15.7-1-ARTIX (x86_64)
Tue Mar  6 16:20:57 EST 2018
make: Entering directory '/usr/lib/modules/4.15.7-1-ARTIX/build'
gcc: error trying to exec 'cc1': execvp: No such file or directory
gcc: error trying to exec 'cc1': execvp: No such file or directory
Makefile:934: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-$
make: Leaving directory '/usr/lib/modules/4.15.7-1-ARTIX/build


Re: DKMS modules fail to install

Reply #2
You might care to check "base-devel" package list as this should have all the build packages needed.

Re: DKMS modules fail to install

Reply #3
Quote
Try updating the repositories and re-installing gcc, perhaps libelf too:

% sudo pacman -Syy gcc libelf

Quote
You might care to check "base-devel" package list as this should have all the build packages needed.

Nope. The modules still don't install. I have all base-devel packages installed.

Re: DKMS modules fail to install

Reply #4
Does compilation under normal user works just fine ?
If yes, check the paths which is gcc using under root and your user and compare them.
Try to compile some hello world program with gcc with '-v' option.

There was also mentioned to check if the 'cc1' file exist and if it is not empty.

I have this idea from network, I don't remember exact page.

 

Re: DKMS modules fail to install

Reply #5
Does compilation under normal user works just fine ?
If yes, check the paths which is gcc using under root and your user and compare them.
Try to compile some hello world program with gcc with '-v' option.

There was also mentioned to check if the 'cc1' file exist and if it is not empty.

I have this idea from network, I don't remember exact page.


I reported the issue here thinking it was openrazer specific. gcc does appear to be installed correctly since I was able to create a "hello world" program. There was an MPFR warning from cc1 output, but I don't know what to make of it.