[Buildroot] nvidia driver fails to build: compiler version check failed

Adam Baxter voltagex at voltagex.org
Sun Jan 16 10:28:41 UTC 2022


Hi all

Using buildroot master 6e4791b751c0f8e0ba218da2c22e71d3e1436b5d

Config is hopefully attached.

Also, the below driver version was released by Nvidia on 2019.11.8 - perhaps it should be updated or removed?

make[1]: Entering directory '/home/voltagex/src/buildroot/output/build/linux-5.15.13'

Compiler version check failed:

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

x86_64-buildroot-linux-gnu-gcc.br_real (Buildroot 2021.11-1172-g6e4791b751) 11.2.0, GNU ld (GNU Binutils) 2.37

does not match the compiler used here:

x86_64-buildroot-linux-gnu-gcc.br_real (Buildroot 2021.11-1172-g6e4791b751) 11.2.0
Copyright (C) 2021 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[2]: *** [/home/voltagex/src/buildroot/output/build/nvidia-driver-390.132/kernel/Kbuild:189: cc_version_check] Error 1


(after looking at this I realised I'd probably have more luck with nouveau, anyway)

Thanks,
Adam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/xml
Size: 117285 bytes
Desc: not available
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20220116/51fdd059/attachment.wsdl>


More information about the buildroot mailing list