Hello guys, this is my first post here so sorry if I post it in the wrong spot.
I'll describe my problem in a short way: NVIDIA driver always says "CC version check failed".

I did the following things for installing the driver:
  1. Installed the right Kernel Headers
  2. Disabled Nouveau driver
  3. Logged out by doing Ctrl+Shift+F1 and ran a shell of init 3.
  4. In the shell of init 3, I went to the directory where the driver .run file is located, here I did
    Code:
    export CC=/usr/bin/gcc-10
  5. Then, I did
    Code:
    sudo bash NVIDIA.....run
    but it always says "CC version check failed" and if I do "Ignore CC check" the installation will fail


I'm currently running Kali Linux 2020.3 (latest release right now). Hope you'll be able to help me. Thanks in advance!

I'll attach the log. (https://paste2.org/tHnHenMN)