https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108634
Bug ID: 108634 Summary: [13 regression] 'undefined symbol: tree_code_type' when building kernel GCC plugins since r13-5431-gb0241ce6e37031 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: plugins Assignee: unassigned at gcc dot gnu.org Reporter: sam at gentoo dot org CC: jakub at gcc dot gnu.org Target Milestone: --- When building kernel 6.1.9: ``` cc1: error: cannot load plugin ./scripts/gcc-plugins/randomize_layout_plugin.so: ./scripts/gcc-plugins/randomize_layout_plugin.so: undefined symbol: tree_code_type make[2]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.9/work/linux-6.1/scripts/Makefile.build:118: scripts/mod/devicetable-offsets.s] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.9/work/linux-6.1/scripts/Makefile.build:250: scripts/mod/empty.o] Error 1 make[1]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.9/work/linux-6.1/Makefile:1281: prepare0] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:231: __sub-make] Error 2 ``` This happens since r13-5431-gb0241ce6e37031 which changes the visibility (thanks to Arsen and pinskia for spotting this) of some of the symbols. It's unclear to me if this is a kernel or GCC issue though (should the kernel be using different methods in its plugin?)