Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6")

From: Christophe LEROY
Date: Fri Sep 07 2018 - 10:34:03 EST


Cc linux-sparse@xxxxxxxxxxxxxxx

Le 07/09/2018 Ã 14:22, Christophe Leroy a ÃcritÂ:
Since commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6"), sparse check fails as follows:

[root@pc16082vm linux-powerpc]# make C=2 arch/powerpc/kernel/process.o
 CALL scripts/checksyscalls.sh
 CHECK scripts/mod/empty.c
./include/linux/compiler-gcc.h:14:3: error: Sorry, your compiler is too old - please upgrade it.
 CHECK arch/powerpc/kernel/process.c
./include/linux/compiler-gcc.h:14:3: error: Sorry, your compiler is too old - please upgrade it.


I have sparse version 0.5.2

What can be done to fix that ?

Christophe