'gcc-6' e drivers Nvidia no Debian Stretch

0

Eu estou tentando instalar os drivers Nvidia não-livres ( 390.48-2~bpo9+3 ) do Stretch Backports: link

# apt-get install -t stretch-backports nvidia-driver .

Ocorre um erro:

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.

Em /var/lib/dkms/nvidia-current/390.48/build/make.log eu acho:

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.

Esta deve ser a mesma versão do gcc usada para compilar o 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)

Eu removi os pacotes da Nvidia: # apt-get remove --purge .*nvidia.*

E tente novamente: # IGNORE_CC_MISMATCH=1 apt-get install -t stretch-backports nvidia-driver

Um erro diferente em make.log :

The C compiler ' gcc-6' does not appear to be able to
create object files.  Please make sure you have 
your Linux distribution's libc development package
installed and that ' gcc-6' is a valid C compiler
name.

*** Failed CC sanity check. Bailing out! ***

A configuração de update-alternatives para o ponto gcc e cc at gcc-4.9 não tem efeito.

# CC=/usr/bin/gcc-6 IGNORE_CC_MISMATCH=1 apt-get install -t stretch-backports nvidia-driver

não é útil.

# CC=/usr/bin/gcc-4.9 IGNORE_CC_MISMATCH=1 apt-get install -t stretch-backports nvidia-driver

ainda produz o erro The C compiler ' gcc-6' does not appear to be able to create object files.

Com outras tentativas, produzi um erro que menciona no-pie . Esses sinalizadores tiveram um efeito, mas produziram outros erros: link

    
por Peter Becich 03.06.2018 / 05:49

0 respostas

Tags