Control: close -1 On Sat, 09 Jun 2018 23:45:51 -0700 peterbecich <[email protected]> wrote: > Package: nvidia-driver > Version: 390.48-2~bpo9+3 > Severity: serious > Justification: fails to build from source (but built successfully in the past) > > Hello, > > I am attempting to install the Nvidia drivers (390.48-2~bpo9+3) from Stretch > Backports. The package seems unhappy with the version of GCC I have installed. > > ``` > # apt-get install -t stretch-backports nvidia-driver. > ``` > > An error occurs: > > ``` > Building for 4.16.0-0.bpo.1-amd64 > Building initial module for 4.16.0-0.bpo.1-amd64 > Error! Bad return status for module build on kernel: 4.16.0-0.bpo.1- amd64 > (x86_64) > Consult /var/lib/dkms/nvidia-current/390.48/build/make.log for more > information. > > In /var/lib/dkms/nvidia-current/390.48/build/make.log I find: > > Compiler version check failed: > > The major and minor number of the compiler used to > compile the kernel: > > gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) > > does not match the compiler used here: > > gcc-6 (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 > Copyright (C) 2016 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > It is recommended to set the CC environment variable > to the compiler that was used to compile the kernel. > > This should be the same version of gcc used to compile the kernel: > > cat /proc/version > Linux version 4.16.0-0.bpo.1-amd64 ([email protected]) (gcc > version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 SMP Debian 4.16.5-1~bpo9+1 > (2018-05-06) > ``` > > I remove the Nvidia packages: ```# apt-get remove --purge .*nvidia.*``` > > And try again: ```# IGNORE_CC_MISMATCH=1 apt-get install -t stretch- backports > nvidia-driver``` > > A different error in make.log: > > ```
This has nothing to do with nvidia-driver. You need to have the same compiler that was used to build the kernel, to build the modules. If you install the headers with apt install -t stretch-backports linux- headers-amd64 you should get everything you need. -- Kind regards, Luca Boccassi
signature.asc
Description: This is a digitally signed message part

