Skip to content

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

Merged
merged 1 commit into from
Dec 10, 2019

Conversation

wwwutz
Copy link
Collaborator

@wwwutz wwwutz commented Dec 5, 2019

bee update nvidia_linux-4.14.87-236-390.87-1
bee update nvidia_linux-4.19.19-244-390.87-1
bee update nvidia_linux-4.19.40-262-418.56-1
bee update nvidia_linux-4.19.52-272-418.56-1
bee update nvidia_linux-4.19.57-276-418.56-1
bee update nvidia_linux-4.19.57-282-418.56-1
bee update nvidia_linux-4.19.57-286-418.56-1

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

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 wwwutz merged commit a7b48f5 into master Dec 10, 2019
@pmenzel pmenzel deleted the fix-nvidia_linux-gcc75-#1509 branch December 19, 2019 12:53
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant