I can't install NVIDIA driver. An error occurred while performing the step: "Building kernel modules".

The computer is logging me out after this error: The error "System program problem detected"comes up when I log in to my computer.

The system is running in low-graphics mode
Your screen, graphics cards, and input device settings could not be detected correctly.You will need to configure these yourself.

I tried reinstall my NVIDIA driver, but I can’t.
sh NVIDIA-Linux-x86_64-384.69.run

ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details.

ERROR: An error occurred while performing the step: "Checking to see whether the nvidia kernel module was successfully built".
See /var/log/nvidia-installer.log for details.

ERROR: The nvidia kernel module was not created.

ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on
fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

gcc --version:
5.4.0 20160696

The driver you’re using is outdated.
Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.
https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/