2022-06-08 09:56:06

by David Binderman

[permalink] [raw]
Subject: kernel bug report and patch

Hello there Kees,

I've been trying for the last few weeks to compile recent linux kernels with
development versions of gcc, without success.

I keep getting this error:

In file included from scripts/gcc-plugins/gcc-common.h:75,
? ? ? ? ? ? ? ? ?from scripts/gcc-plugins/stackleak_plugin.c:30:
/home/dcb/gcc/results.20220604.asan.ubsan/lib/gcc/x86_64-pc-linux-gnu/13.0.0/plugin/include/gimple-fold.h:71:32: error: use of enum ?gsi_iterator_update? without previous declaration

I found this patch useful:

*** ../linux-5.18/scripts/gcc-plugins/gcc-common.h 2022-03-20 20:14:17.0000
00000 +0000
--- scripts/gcc-plugins/gcc-common.h 2022-06-08 09:21:21.693178983 +0100
***************
*** 71,76 ****
--- 71,78 ----
? #include "varasm.h"
? #include "stor-layout.h"
? #include "internal-fn.h"
+ #include "gimple.h"
+ #include "gimple-iterator.h"
? #include "gimple-expr.h"
? #include "gimple-fold.h"
? #include "context.h"

Regards

David Binderman