Skip to content

nvidia_linux: fix 'Compiler version check' for gcc 7.5 #1526

Merged
merged 1 commit into from
Dec 10, 2019

Commits on Dec 5, 2019

  1. nvidia_linux: fix 'Compiler version check' for gcc 7.5

    rebuilding the drivers resulted in
    
    ```
    [BEE] make SYSSRC=/scratch/local2/beehive/nvidia_linux-4.14.87-236-390.87-0/tmp/linux-4.14.87-236.x86_64/source module
    make[1]: Entering directory '/scratch/local2/beehive/nvidia_linux-4.14.87-236-390.87-0/tmp/linux-4.14.87-236.x86_64/source'
    
    Compiler version check failed:
    
    The major and minor number of the compiler used to
    compile the kernel:
    
    gcc version 7.3.0 (GCC)
    
    does not match the compiler used here:
    
    cc (GCC) 7.5.0
    Copyright (C) 2017 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! ***
    ```
    
    fixed by feeding `IGNORE_CC_MISMATCH=1`.
    
    refs: #1505 / #1509
    wwwutz committed Dec 5, 2019
    Configuration menu
    Copy the full SHA
    563cefb View commit details
    Browse the repository at this point in the history