Wrong compiler version when installing nvidia modules
gelabs
Status: Interested
Joined: 02 May 2017
Posts: 16
Reply Quote
Hello,

When trying to install latest nvidia modules for Liquorix Kernel I encounter this error :

"Compiler version check failed:

The major and minor number of the compiler used to
compile the kernel:

gcc version 7.3.0 (Debian 7.3.0-24)

does not match the compiler used here:

gcc (Debian 8.1.0-12) 8.1.0
"

This is on Debian Sid, and using official Liquorix repositories.
I know that dkms is controversial ...

Regards
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1143
Reply Quote
Hmm, it looks like Debian should update their DKMS package to use their regular GCC package. I specifically updated the Debian package to use the native gcc package to solve problems like this on other Ubuntu distributions.

One option you can use is to temporarily modify the gcc-7 binary to symlink to your native gcc binary. This will only work for as long as gcc-7 isn't updated, however, so as long as you remember the tweak you made to your system, the nvidia dkms package should be easy to maintain.

EDIT: If you don't depend on the cuda packages, you can always use 'sgfxi' to install the driver directly from nvidia's site: github.com/smxi/sgfxi
Back to top
gelabs
Status: Interested
Joined: 02 May 2017
Posts: 16
Reply Quote
I bypassed the version-check (IGNORE_CC_MISMATCH) and it compiled OK.
I will try sgfxi, thanks Damentz :)

Regards
Back to top
Display posts from previous:   

All times are GMT - 8 Hours