Problem installing 340.107 on Quadro FX4800 under RHEL 7.7

I tried to use the run script in driver 340.107 that works on RHEL7.6, but it fails to install.
There was a similar problem with 7.6 and the 340.106 driver. A patch was used to fix it. Has anyone else has the same problem?

Here are the last few lines of the attempted install:

/usr/src/kernels/3.10.0-1062.el7.x86_64/include/linux/fb.h: In function ‘__fb_pad_aligned_bu
/usr/src/kernels/3.10.0-1062.el7.x86_64/include/linux/fb.h:651:17: warning: comparison betwe
en signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j < s_pitch; j++)
/tmp/selfgz7275/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c: In function ‘nv_alloc_os_descri
/tmp/selfgz7275/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:255:5: error: implicit declarati
on of function ‘drm_gem_object_unreference_unlocked’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [/tmp/selfgz7275/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.o] Error 1
make[2]: *** [module/tmp/selfgz7275/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.el7.x86_64’
nvidia.ko failed to build!
make: *** [nvidia.ko] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for detail
s. You may find suggestions on fixing installation problems in the README available on the Lin
ux driver download page at

Correction, 340.107 fails to install in RHEL7.7 not RHEL7.6. 340.107 does install on RHEL7.6.

nvidia-installer.log.gz (3.91 KB)

Confirmed. The driver source will need to be patched to compile on RHEL7.7. Hopefully NVIDIA will fix this as the 340.xx legacy driver release is still supported until the end of this year.


A patch to try was already posted here:

Thanks, I will take a look at that patch.