DKMS error when installing amd drivers

Solution 1:

You should have linux-headers installed for every kernel version you have installed (and can see in grub-advanced menu while booting). Although check that you have build-essential package and that gcc -v runs well.

Finally, it can be an error in this package, for example it can disagree with gcc version and settings.