this is not a compiler issue. Apparently you have to build the modules and the kernel with the same version of the compiler, which is now 5.4.x. We usually don't update the dependencies packages, the symlinks stay the same.
** Changed in: gcc-defaults (Ubuntu) Status: Triaged => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1608753 Title: Cannot build nvidia driver via dkms because compiler doesn't match kernel To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/1608753/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs