Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

exact version of gcc and binutils to build nvidia dkms

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
JSJB
Posts: 27
Joined: 2011-08-19 13:47
Has thanked: 1 time

exact version of gcc and binutils to build nvidia dkms

#1 Post by JSJB »

I installed linux-image-amd64 version 5.10.9-1 and nvidia-driver version 460.39-1 early Feb 2021.

This is the gcc and binutils used to build that kernel (gcc version 10.2.1-6 and binutils version 2.35.1):

Code: Select all

=> cat /proc/version
Linux version 5.10.0-2-amd64 (debian-kernel@lists.debian.org)
 (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1) #1 SMP Debian 5.10.9-1 (2021-01-20)
Since then, gcc-10 and binutils have been upgraded to higher versions (gcc-10 version 10.3.0-9 and binutils version 2.37-5).

Question: are these higher versions still good to build a dkms module for a newer nvidia-driver, or do gcc and binutils have to be the exact version listed in /proc/version

thanks!

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: exact version of gcc and binutils to build nvidia dkms

#2 Post by Aki »

JSJB wrote: 2021-09-06 13:02 Question: are these higher versions still good to build a dkms module for a newer nvidia-driver, or do gcc and binutils have to be the exact version listed in /proc/version
Nvidia proprietary kernel module behavior (about gcc version check) has been discussed in this bug report [1]. If I correctly read it, the nvidia installer (used by dkms) checks if major and minor version of gcc is the same used for kernel compilation: the installer aborts compilation if the check fails. This is a specific behavior of nvidia proprietary kernel module (driver) and it can be worked around, as showed in the bug report [2].

Hope that helps.

[1] https://bugs.debian.org/cgi-bin/bugrepo ... bug=908568
[2] https://bugs.debian.org/cgi-bin/bugrepo ... =908568#60
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

JSJB
Posts: 27
Joined: 2011-08-19 13:47
Has thanked: 1 time

Re: exact version of gcc and binutils to build nvidia dkms

#3 Post by JSJB »

Thanks.

Message #70 and #75 in the second reference actually indicate there can be a problem using different versions of binutils. The module may build but will not work.

It seems the best approach will be not to upgrade nvidia-driver until the kernel is upgraded too, so binutils will match the kernel again.

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: exact version of gcc and binutils to build nvidia dkms

#4 Post by Aki »

Hi,
I’m glad I helped you to sort it out.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply