Linux 340.107 legacy driver fails after RedHat 7.7 patches are applied - assistance requested

After applying routine patches to RedHat 7 workstation with a Quadro FX 3700 GPU and rebooting the screen was blank and the Xorg.0.log has EE errors. Attempting to re-install NVIDIA-Linux-x86_64-340.107.run failed with “ERROR: Unable to build the NVIDIA kernel module”. The /var/log/nvidia-installer.log shows an error occurring with nv-drm.o


cc1: some warnings being treated as errors
make[3]: *** [/tmp/selfgz15770/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.o] Error 1
make[2]: *** [module/tmp/selfgz15770/NVIDIA-Linux-x86_64-340.107/kernel] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1062.4.1.el7.x86_64’
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [nvidia.ko] Error 1
-> Error.

uname -r

3.10.0-1062.4.1.el7.x86_64

When rebooted to the previous kernel the 340.107 driver works. Replacing the GPU with a Quadro 4000/390.129 driver works. Reverting to Quadro FX 3700 GPU/340.107 errors. So it appears the issue is with the NVIDIA-Linux-x86_64-340.107.run driver and the latest patches.

Anyone have a similar issue and a workaround? If not where do we start?

340.107 needs patching to build with the 7.7 kernel. These patches are not in the official run installer, which you shouldn’t be using anyway. Try to clean up the mess the official installer has created and then switch to a packaged version of the driver like this one: http://elrepo.org/tiki/kmod-nvidia-340xx