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.
3.10.0-1062.el7.x86_64
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?

thanks
kas
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
ffer’:
/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
ptor_handle’:
/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]
drm_gem_object_unreference_unlocked(&nv_obj->base);
^
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: left KBUILD.
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 www.nvidia.com.

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

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.

Phil

A patch to try was already posted here: https://devtalk.nvidia.com/default/topic/1047179/linux/-solved-nvidia-340-107-linux-5-0-rc5-failed-to-build-kernel-module/

Thanks, I will take a look at that patch.