Ubuntu 18.04 NVIDIA driver not loaded after GCC update

dmesg showed the nvidia driver loading fine but nvidia-smi couldn’t find it, meaning there’s something wrong with the device files.
How the device files are created is often distro/version specific. So the second system might have an additional udev rule/script running.