RED HAT 8 Problem Compile Driver For 330M NVIDIA-Linux-x86_64-340.108.run Help Me! Plese!

RED HAT Problem Compile Driver For 330M NVIDIA-Linux-x86_64-340.108.run

my Log Error:

nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Wed Dec 9 14:05:24 2020
installer version: 340.108

PATH: /usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/ro$

nvidia-installer command line:
./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> License accepted.
-> Installing NVIDIA driver version 340.108.
-> Performing CC sanity check with CC="/bin/cc".
-> Kernel source path: ‘/lib/modules/4.18.0-240.1.1.el8_3.x86_64/source’
-> Kernel output path: ‘/lib/modules/4.18.0-240.1.1.el8_3.x86_64/build’
-> Performing rivafb check.
-> Performing nvidiafb check.-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
executing: ‘cd ./kernel; /bin/make clean’…
-> Building NVIDIA kernel module:
executing: 'cd ./kernel; /bin/make module SYSSRC=/lib/modules/4.18.0-240.1.1$
NVIDIA: calling KBUILD…
make[1]: Entering directory ‘/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64’
/bin/make -C /lib/modules/4.18.0-240.1.1.el8_3.x86_64/build KBUILD_SRC=/usr/$
-f /usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64/Makefile modules
make[2]: Entering directory ‘/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64’

-> Performing Xen check.

make[1]: Entering directory ‘/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64’
/bin/make -C /lib/modules/4.18.0-240.1.1.el8_3.x86_64/build KBUILD_SRC=/usr/ -f /usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64/Makefile modules make[2]: Entering directory '/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64' test -e include/generated/autoconf.h -a -e include/config/auto.conf || (
echo >&2;
echo >&2 " ERROR: Kernel configuration is invalid.";
echo >&2 " include/generated/autoconf.h or include/config/auto.conf echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix
echo >&2 ;
/bin/false)
mkdir -p /tmp/selfgz29978/NVIDIA-Linux-x86_64-340.108/kernel/.tmp_versions ; /bin/make -f /usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64/scripts/Makefile.b
(cat /dev/null; echo kernel//tmp/selfgz29978/NVIDIA-Linux-x86_64-340.108/k$


final log
nv_drm_pci_exit(&nv_drm_driver, pci_driver);
^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64/scripts/Makefile. make[2]: *** [/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64/Makefile:1544: _m
make[2]: Leaving directory ‘/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64’
make[1]: *** [Makefile:157: sub-make] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64’
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:197: 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$

a use this istruction.

precompilated driver for 330M a Not Find Kernel uname -r = 4.18.0-240.1.1.el8_3.x86_64

dkms installed and error compile.
… Part de log.
: comparaison d’expressions entières de types signés différents: « long int » et « long unsigned int » [-Wsign-compare]
if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) {
^
/var/lib/dkms/nvidia/340.108/build/nv-drm.c: Dans la fonction « nv_drm_init »:
/var/lib/dkms/nvidia/340.108/build/nv-drm.c:54:25: error: déclaration implicite de la fonction « drm_pci_init »; vouliez-vous utiliser « drm_mm_init » ? [-Werror=implicit-function-declaration]
#define nv_drm_pci_init drm_pci_init
^~~~~~~~~~~~
/var/lib/dkms/nvidia/340.108/build/nv-drm.c:214:11: note: dans l’expansion de la macro « nv_drm_pci_init »
ret = nv_drm_pci_init(&nv_drm_driver, pci_driver);
^~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/340.108/build/nv-drm.c: Dans la fonction « nv_drm_exit »:
/var/lib/dkms/nvidia/340.108/build/nv-drm.c:55:25: error: déclaration implicite de la fonction « drm_pci_exit »; vouliez-vous utiliser « drm_dev_exit » ? [-Werror=implicit-function-declaration]
#define nv_drm_pci_exit drm_pci_exit
^~~~~~~~~~~~
/var/lib/dkms/nvidia/340.108/build/nv-drm.c:224:5: note: dans l’expansion de la macro « nv_drm_pci_exit »
nv_drm_pci_exit(&nv_drm_driver, pci_driver);
^~~~~~~~~~~~~~~
cc1 : certains avertissements sont traités comme des erreurs
make[3]: *** [/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64/scripts/Makefile.build:316: /var/lib/dkms/nvidia/340.108/build/nv-drm.o] Error 1
make[2]: *** [/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64/Makefile:1544: module/var/lib/dkms/nvidia/340.108/build] Error 2
make[2] : on quitte le répertoire « /usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64 »
make[1]: *** [Makefile:157: sub-make] Error 2
make[1] : on quitte le répertoire « /usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64 »
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:197: nvidia.ko] Error 1


or=implicit-function-declaration]
#define nv_drm_pci_exit drm_pci_exit
^~~~~~~~~~~~
/var/lib/dkms/nvidia/340.108/build/nv-drm.c:224:5: note: dans l’expansion de la macro « nv_drm_pci_exit »
nv_drm_pci_exit(&nv_drm_driver, pci_driver);
^~~~~~~~~~~~~~~
cc1 : certains avertissements sont traités comme des erreurs
make[3]: *** [/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64/scripts/Makefile.build:316: /var/lib/dkms/nvidia/340.108/build/nv-drm.o] Error 1
make[2]: *** [/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64/Makefile:1544: module/var/lib/dkms/nvidia/340.108/build] Error 2
make[2] : on quitte le répertoire « /usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64 »
make[1]: *** [Makefile:157: sub-make] Error 2
make[1] : on quitte le répertoire « /usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64 »
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:197: nvidia.ko] Error 1
GNU nano 2.9.8 /var/log/nvidia-installer.log

Help Me For Compile A Driver Plese…

in this mode not found my video card…, nvidia-settings no load my video card… in the official site the driver last
no my card in the list Gforce GT 330M ( a old Notebook Toshiba i7 8 Gb RAM )
a use

Installing using the package manager

Here’s how to get started with using the new driver packages on RHEL 8. First, ensure that the Red Hat repositories are enabled, including RHEL8 AppStream, RHEL8 BaseOS and RHEL8 CRB:

subscription-manager repos --enable=rhel-8-for-x86_64-appstream-rpms subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms $ subscription-manager repos --enable=codeready-builder-for-rhel-8-x86_64-rpms

Add the CUDA network repository:

$ sudo dnf config-manager --add-repo=https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo

Install the latest stream to opt into precompiled packages:

$ sudo dnf module install nvidia-driver:latest

Manual compiled not work 330M NVIDIA-Linux-x86_64-340.108.run ( in this driver my card in the list , problem install it, problem of compiled )

Unfortunately, the legacy 340 driver series is no longer supported. Please see Support timeframes for Unix legacy GPU releases for more information.

1 Like

hello
tanks for you message,

aplattner

My Card in the list legacy , https://www.nvidia.com/en-us/drivers/unix/legacy-gpu/ ( 2022 years support ) Download the NVIDIA-Linux-x86_64-340.108.run , my problem compile a official nvidia driver…

how to compile correct official driver ? without error ?

RED HAT 8.3 ( kernel uname -r = 4.18.0-240.1.1.el8_3.x86_64 = Dev Version License not have official support,

i have installed Legacy GeForce 8/9/200/300 from rpmfusion

my problem a cuda or librery error [ how to fix this or compileofficial driver for fix this problem ?

libOpenCL.so.1: no version information available

]
Example obs Start Error this Terminal

[user@pc ~]$ obs obs: /usr/lib64/nvidia-340xx/libOpenCL.so.1: no version information available (required by /lib64/libavutil.so.56) obs: /usr/lib64/nvidia-340xx/libOpenCL.so.1: no version information available (required by /lib64/libavutil.so.56) obs: symbol lookup error: /lib64/libavutil.so.56: undefined symbol: clGetExtensionFunctionAddressForPlatform, version OPENCL_1.2

it posible install official driver NVIDIA-Linux-x86_64-340.108.run this error a not have ?

How To Install or Complile NVIDIA-Linux-x86_64-340.108.run ? Red Hat Enterprise Linux For x86_64 ( 8.3 )

thanks for advance help to me!..