AM3352: Enable GCC Plugin for meta-toolchain-arago-tisdkin SDK 09.01

Part Number: AM3352

Tool/software:

Hello,

I have compiled the "meta-toolchain-arago-tisdk" and successfully generated its binaries. However, I am encountering an error related to GCC plugins while trying to compile an out-of-tree kernel driver.

einfochips@VM2568:~/work/WiFi/v6.1.97-backports$ make KLIB=$MY_KERNEL KLIB_BUILD=$MY_KERNEL ARCH=arm CROSS_COMPILE=/home/einfochips/work/toolchain_tisdk/sysroots/x86_64-arago-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi- modules
CC [M] /home/einfochips/work/WiFi/v6.1.97-backports/compat/main.o
cc1: error: cannot load plugin ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so: ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so: undefined symbol: _ZN8opt_pass14set_pass_paramEjb

Additionally, whenever I try to cross-compile hello_world.c, it gives the error: "fatal error: stdio.h: No such file or directory."

Could you please guide me on how to resolve this issue or how to include GCC plugins and standard header files in the generated toolchain binary?

Best regards,
Pratik