It's not just gcc that has mismatching versions. It's the whole toolchain. The installed gcc package (according to dpkg) has version 4:5.3.1-1ubuntu1 while the /usr/bin/gcc symlink contained within is pointing to gcc-5.4.0. There is no trace of 5.3.1 binaries on the system, nor are there any available from the repos.
The bug will affect anyone who try to compile and/or link any kernel modules. -- 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/ubuntu/+source/dkms/+bug/1608753/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs