When system shows following error during driver making at Linux kernel 3.10.0-693 or above version
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended.. Stop.
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
make: *** [default] Error 2
ii needs using gcc 4.8.5.16.el7_4.2 to fix this problem,please use following command to check gcc version.
# rpm -qi gcc
Name : gcc
Version : 4.8.5
Release : 16.el7_4.2
if gcc version is not 4.8.5.16.el7_4.2 or above version, please upgrade gcc utility first
ex:
# yum upgrade gcc
PCE-1130_CentOS 7.4_5.3.5.15.tar
2022-03-15
Thank you for your feedback
We will look over your massage and get back to you soon if you need further assistance!