cancel
Showing results for 
Search instead for 
Did you mean: 

Server Gurus Discussions

mah
Adept I

recipe for target 'dkms' failed

Hi,

I asked my question here and came to this place!

I tried to install uprof 2.0 on Ubuntu 18.04 with 4.18.0-21-generic kernel and it failed with

Installing AMDPowerProfiler Linux kernel module version 7.02.
Makefile:76: recipe for target 'dkms' failed

Then I digged more and found that by removing -q switch in front of dkms and @ before dkms command, I can get more information about the error.

I make the changes and recreate AMDPowerProfilerDriverSource.tar.gz and see these information

echo "Installing AMDPowerProfiler Linux kernel module version 7.02."
Installing AMDPowerProfiler Linux kernel module version 7.02.
sed -i -e '/^PACKAGE_VERSION=/ s/=.*/=\"7.02\"/' dkms.conf
dkms add -m AMDPowerProfiler -v 7.02

Creating symlink /var/lib/dkms/AMDPowerProfiler/7.02/source ->
                 /usr/src/AMDPowerProfiler-7.02

DKMS: add completed.
dkms build -m AMDPowerProfiler -v 7.02

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=4.18.0-21-generic -C /lib/modules/4.18.0-21-generic/build M=/var/lib/dkms/AMDPowerProfiler/7.02/build...(bad exit status: 2)
ERROR (dkms apport): binary package for AMDPowerProfiler: 7.02 not found
Error! Bad return status for module build on kernel: 4.18.0-21-generic (x86_64)
Consult /var/lib/dkms/AMDPowerProfiler/7.02/build/make.log for more information.
Makefile:76: recipe for target 'dkms' failed
make: *** [dkms] Error 10

I do appreciate any feedback to fix the problem.

0 Kudos
1 Reply
aalok
Staff
Staff

Re: recipe for target 'dkms' failed

Hi,

Thanks for using uProf and apologies for the delay in response.
This failure is observed as uProf-2.0 failed to build a linux device driver with Kernel header (version 4.18.0-21-generic). In uProf v3.1 we have added the support to accommodate changes made for kernel v 4.18. Please use the latest binaries located at https://developer.amd.com/amd-uprof/ .

Please let us know if you face any issues.

Regards, 

Aalok Agarwal

AMDuProf Team

0 Kudos