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.