kernel sys-kernel/gentoo-sources-5.10.179 failed to compile with these messages: (The full compiler messages is attached) /usr/lib/gcc/x86_64-pc-linux-gnu/13/plugin/include/gimple-fold.h:72:32: error: use of enum ‘gsi_iterator_update’ without previous declaration 72 | enum gsi_iterator_update, | ^~~~~~~~~~~~~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/13/plugin/include/gimple-fold.h:87:30: error: there are no arguments to ‘gsi_last’ that depend on a template parameter, so a declaration of ‘gsi_last’ must be available [-fpermissive] 87 | gimple_stmt_iterator gsi = gsi_last (*seq); /usr/lib/gcc/x86_64-pc-linux-gnu/13/plugin/include/gimple-fold.h:88:37: error: ‘GSI_CONTINUE_LINKING’ was not declared in this scope 88 | return gimple_build (&gsi, false, GSI_CONTINUE_LINKING, | ^~~~~~~~~~~~~~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/13/plugin/include/gimple-fold.h:211:24: error: variable ‘gimple_stmt_iterator gsi’ has initializer but incomplete type 211 | gimple_stmt_iterator gsi = gsi_last (*seq); | ^~~ Reproducible: Always Steps to Reproduce: 1. emerge --sync 2. emerge -auvDN world 3. build the new kernel Actual Results: failed Expected Results: not to fail
Created attachment 860836 [details] compile-messages.txt
Did https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e6a71160cc145e18ab45195abf89884112e02dfb not get backported far enough upstream?
The kernel compiles successfully after downgrading to sys-devel/gcc-12.2.1_p20230304
(In reply to email200202 from comment #3) > The kernel compiles successfully after downgrading to > sys-devel/gcc-12.2.1_p20230304 Please don't do that. Does the patch I linked help?
Tested the patch successfully commit 641f7c504ff4f220e1772e636b50703be7fd0645 (HEAD -> 5.10, origin/5.10) Author: Mike Pagano <mpagano@gentoo.org> Date: Thu Apr 27 10:11:23 2023 -0400 gcc-plugins: Reorganize gimple includes for GCC 13 Bug: https://bugs.gentoo.org/905140 Signed-off-by: Mike Pagano <mpagano@gentoo.org> This will be in the next version of 5.10 Gentoo kernels that use the genpatches patchset.