Article 6CKPP GCC 13.1 needs patching

GCC 13.1 needs patching

by
Aeterna
from LinuxQuestions.org on (#6CKPP)
GCC 13 needs patching with this
https://git.kernel.org/pub/scm/linux...89884112e02dfb

please

otherwise this error will pop up
Code:HOSTCC scripts/genksyms/lex.lex.o
gcc -o /usr/src/linux-hardened-6.1.36-hardened1/tools/objtool/fixdep /usr/src/linux-hardened-6.1.36-hardened1/tools/objtool/fixdep-in.o
HOSTLD scripts/genksyms/genksyms
In file included from scripts/gcc-plugins/gcc-common.h:75,
from scripts/gcc-plugins/randomize_layout_plugin.c:19:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:72:32: error: use of enum igsi_iterator_updatei without previous declaration
72 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:75:32: error: use of enum igsi_iterator_updatei without previous declaration
75 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:78:32: error: use of enum igsi_iterator_updatei without previous declaration
78 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h: In function itree_node* gimple_build(gimple**, location_t, tree_code, tree, Args ...)i:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:87:30: error: there are no arguments to igsi_lasti that depend on a template parameter, so a declaration of igsi_lasti must be available [-fpermissive]
87 | gimple_stmt_iterator gsi = gsi_last (*seq);
| ^~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:87:30: note: (if you use i-fpermissivei, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from scripts/gcc-plugins/gcc-common.h:75,
from scripts/gcc-plugins/latent_entropy_plugin.c:78:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:72:32: error: use of enum igsi_iterator_updatei without previous declaration
72 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:75:32: error: use of enum igsi_iterator_updatei without previous declaration
75 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:78:32: error: use of enum igsi_iterator_updatei without previous declaration
78 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h: In function itree_node* gimple_build(gimple**, location_t, tree_code, tree, Args ...)i:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:87:30: error: there are no arguments to igsi_lasti that depend on a template parameter, so a declaration of igsi_lasti must be available [-fpermissive]
87 | gimple_stmt_iterator gsi = gsi_last (*seq);
| ^~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:87:30: note: (if you use i-fpermissivei, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from scripts/gcc-plugins/gcc-common.h:75,
from scripts/gcc-plugins/stackleak_plugin.c:30:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:72:32: error: use of enum igsi_iterator_updatei without previous declaration
72 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:75:32: error: use of enum igsi_iterator_updatei without previous declaration
75 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:78:32: error: use of enum igsi_iterator_updatei without previous declaration
78 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h: In function itree_node* gimple_build(gimple**, location_t, tree_code, tree, Args ...)i:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:87:30: error: there are no arguments to igsi_lasti that depend on a template parameter, so a declaration of igsi_lasti must be available [-fpermissive]
87 | gimple_stmt_iterator gsi = gsi_last (*seq);
| ^~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:87:30: note: (if you use i-fpermissivei, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:88:37: error: iGSI_CONTINUE_LINKINGi was not declared in this scope
88 | return gimple_build (&gsi, false, GSI_CONTINUE_LINKING,
| ^~~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h: In function itree_node* gimple_build(gimple**, tree_code, tree, Args ...)i:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:97:30: error: there are no arguments to igsi_lasti that depend on a template parameter, so a declaration of igsi_lasti must be available [-fpermissive]
97 | gimple_stmt_iterator gsi = gsi_last (*seq);
| ^~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:88:37: error: iGSI_CONTINUE_LINKINGi was not declared in this scope
88 | return gimple_build (&gsi, false, GSI_CONTINUE_LINKING,
| ^~~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h: In function itree_node* gimple_build(gimple**, tree_code, tree, Args ...)i:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:97:30: error: there are no arguments to igsi_lasti that depend on a template parameter, so a declaration of igsi_lasti must be available [-fpermissive]
97 | gimple_stmt_iterator gsi = gsi_last (*seq);
| ^~~~~~~~
rm -f /usr/src/linux-hardened-6.1.36-hardened1/tools/objtool/libsubcmd.a && ar rcs /usr/src/linux-hardened-6.1.36-hardened1/tools/objtool/libsubcmd.a /usr/src/linux-hardened-6.1.36-hardened1/tools/objtool/libsubcmd-in.o
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:88:37: error: iGSI_CONTINUE_LINKINGi was not declared in this scope
88 | return gimple_build (&gsi, false, GSI_CONTINUE_LINKING,
| ^~~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h: In function itree_node* gimple_build(gimple**, tree_code, tree, Args ...)i:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:97:30: error: there are no arguments to igsi_lasti that depend on a template parameter, so a declaration of igsi_lasti must be available [-fpermissive]
97 | gimple_stmt_iterator gsi = gsi_last (*seq);
| ^~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:98:37: error: iGSI_CONTINUE_LINKINGi was not declared in this scope
98 | return gimple_build (&gsi, false, GSI_CONTINUE_LINKING,
| ^~~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h: At global scope:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:103:32: error: use of enum igsi_iterator_updatei without previous declaration
103 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:106:32: error: use of enum igsi_iterator_updatei without previous declaration
106 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:109:32: error: use of enum igsi_iterator_updatei without previous declaration
109 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:112:32: error: use of enum igsi_iterator_updatei without previous declaration
112 | enum gsi_iterator_update,
| ^~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h: In function itree_node* gimple_build(gimple**, location_t, combined_fn, tree, Args ...)i:
/usr/lib64/gcc/x86_64-slackware-linux/13.1.0/plugin/include/gimple-fold.h:121:30: error: there are no arguments to igsi_lasti that depend on a template parameter, so a declaration of igsi_lasti must be available [-fpermissive]
^~~~~~~~~~~~~~~~~~~~
........................
........................
make[2]: *** [scripts/gcc-plugins/Makefile:54: scripts/gcc-plugins/stackleak_plugin.so] Error 1
make[1]: *** [scripts/Makefile.build:500: scripts/gcc-plugins] Error 2
make: *** [Makefile:1273: scripts] Error 2
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments