Package: build-essential
Version: 12.8
Severity: important

Dear Maintainer,

I use a Debian Bullseye up-to-date. I try to install the latest Nvidia driver 
as xserver-xorg-video-{nouveau,nvidia} does not work properly by using 
NVIDIA-Linux-x86_64-440.82.run install script available on Nvidia website. I 
use the standard current debian kernel:

        (root@aldur) (~) # uname -a
        Linux aldur 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13) x86_64 
GNU/Linux
        (root@aldur) (~) # dpkg -l | grep linux-image
        ii  linux-image-5.4.0-4-amd64                     5.4.19-1              
          amd64        Linux 5.4 for 64-bit PCs (signed)
        ii  linux-image-amd64                             5.4.19-1              
          amd64        Linux for 64-bit PCs (meta-package)

I installed the packages needed to build the module:

        apt install linux-headers-$(uname -r) dkms build-essential libglvnd-dev 
pkg-config

When running NVIDIA-Linux-x86_64-440.82.run as root, the build fails and the 
installer suggest me to look inside /var/lib/dkms/nvidia/440.82/build/make.log.

        (root@aldur) (~) # cat /var/lib/dkms/nvidia/440.82/build/make.log 
        DKMS make.log for nvidia-440.82 for kernel 5.4.0-4-amd64 (x86_64)
        Tue Apr 14 02:16:01 CEST 2020
        make[1]: Entering directory '/usr/src/linux-headers-5.4.0-4-common'
        make[2]: Entering directory '/usr/src/linux-headers-5.4.0-4-amd64'

        Compiler version check failed:

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

        gcc version 9.2.1 20200203 (Debian 9.2.1-28)

        does not match the compiler used here:

        cc (Debian 9.3.0-10) 9.3.0
        Copyright (C) 2019 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.

        The compiler version check can be disabled by setting
        the IGNORE_CC_MISMATCH environment variable to "1".
        However, mixing compiler versions between the kernel
        and kernel modules can result in subtle bugs that are
        difficult to diagnose.

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

        make[3]: *** [/var/lib/dkms/nvidia/440.82/build/Kbuild:191: 
cc_version_check] Error 1
        make[3]: *** Waiting for unfinished jobs....
        make[2]: *** [/usr/src/linux-headers-5.4.0-4-common/Makefile:1665: 
/var/lib/dkms/nvidia/440.82/build] Error 2
        make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-4-amd64'
        make[1]: *** [Makefile:179: sub-make] Error 2
        make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-4-common'
        make: *** [Makefile:81: modules] Error 2

Indeed, the version of gcc mismatches:

        (root@aldur) (~) # cat /proc/version 
        Linux version 5.4.0-4-amd64 (debian-ker...@lists.debian.org) (gcc 
version 9.2.1 20200203 (Debian 9.2.1-28)) #1 SMP Debian 5.4.19-1 (2020-02-13)

        (root@aldur) (~) # gcc --version
        gcc (Debian 9.3.0-10) 9.3.0
        Copyright (C) 2019 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.

I tried to find the debian package providing gcc-9.2 on 
http://ftp.fr.debian.org/debian/pool/main/g/gcc-9/ ... without success
Could you please either provide the appropriate compiler or provide a version 
of linux-image using the current version of gcc-9 ?

Thanks !
Best regards

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE= 
(charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages build-essential depends on:
ii  dpkg-dev              1.19.7
ii  g++                   4:9.2.1-3.1
ii  gcc                   4:9.2.1-3.1
ii  libc6-dev [libc-dev]  2.30-4
ii  make                  4.2.1-1.2

build-essential recommends no packages.

build-essential suggests no packages.

-- no debconf information

Reply via email to