Install Driver FAILED ,HELP!

Well,I’m going to install the driver.But it is not work.

My GPU : telsa P40

The driver: NVIDIA-Linux-x86_64-384.145.run

My linux:Linux mylinux 3.10.0-693.25.4.el7.x86_64 #1 SMP Sat Apr 28 14:04:53 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

And Some log are as follows:

-> Building kernel modules
executing: ‘cd ./kernel; /bin/make -k -j32 NV_EXCLUDE_KERNEL_MODULES="" SYSS RC="/lib/modules/3.10.0-693.25.4.el7.x86_64/source" SYSOUT="/lib/modules/3.10.0- 693.25.4.el7.x86_64/build"’…
/bin/make “CC=cc” KBUILD_OUTPUT=/lib/modules/3.10.0-693.25.4.el7.x86_64/build KBUILD_VERBOSE= -C /lib/modules/3.10.0-693.25.4.el7.x86_64/source M=/tmp/selfgz 35142/NVIDIA-Linux-x86_64-384.145/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modu les/3.10.0-693.25.4.el7.x86_64/source NV_KERNEL_OUTPUT=/lib/modules/3.10.0-693.2 5.4.el7.x86_64/build NV_KERNEL_MODULES=“nvidia nvidia-uvm nvidia-modeset nvidia- drm” INSTALL_MOD_DIR=kernel/drivers/video modules
make[1]: Entering directory /usr/src/kernels/3.10.0-693.25.4.el7.x86_64' /bin/make -C /lib/modules/3.10.0-693.25.4.el7.x86_64/build \ KBUILD_SRC=/usr/src/kernels/3.10.0-693.25.4.el7.x86_64 \ KBUILD_EXTMOD="/tmp/selfgz35142/NVIDIA-Linux-x86_64-384.145/kernel" -f /usr/s rc/kernels/3.10.0-693.25.4.el7.x86_64/Makefile \ modules /usr/src/kernels/3.10.0-693.25.4.el7.x86_64/arch/x86/Makefile:166: *** CONFIG _RETPOLINE=y, but not supported by the compiler. Compiler update recommended.. Stop. make[1]: *** [sub-make] Error 2 make[1]: Target modules’ not remade because of errors.
make[1]: Leaving directory /usr/src/kernels/3.10.0-693.25.4.el7.x86_64' make: *** [modules] Error 2 -> Error. ERROR: An error occurred while performing the step: "Building kernel modules". S ee /var/log/nvidia-installer.log for details. -> The command cd ./kernel; /bin/make -k -j32 NV_EXCLUDE_KERNEL_MODULES="" SYS SRC="/lib/modules/3.10.0-693.25.4.el7.x86_64/source" SYSOUT="/lib/modules/3.10.0 -693.25.4.el7.x86_64/build"` failed with the following output:

Help me,Thanks.

Your gcc is not matching the gcc the kernel was compiled with, please properly update your system.