I am compiling a program with gcc plugin recently. My PC is X86_64 and i am doing this on my WSL. My goal is compile it with arm-gcc, so i installed arm-none-eabi-gcc in my WSL. When i want to compile the program with gcc plugin,/home/simon/arm-gcc/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc -fplugin=./my_plugin.so --specs=nosys.specs -g my_file.c my_file2.o -o my_program_name -fsanitize=address -fdump-tree-all
i got an error,cc1: error: cannot load plugin ./my_plugin.so./my_plugin.so: undefined symbol: _Z18build_int_cst_typeP9tree_nodel
I am new on this work and i don't know how to fix it. It's really appreciate if anyone can help me. Thanks!