Hi NXP,
I meet a gcc_11.3.0 compile error when build BSP36 in Yocto project.
The detail log as below:
/usr/src/debug/gcc/11.3.0-r0/build/gcc/../../../../../../work-shared/gcc-11.3.0-r0/gcc-11.3.0/gcc/combine.c:11532: undefined reference to `add_clobbers(rtx_def*, int)'
| /home/scm/BSP36/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/gcc/11.3.0-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/11.3.0/ld: rtl-ssa/changes.o: in function `recog_level2(rtl_ssa::insn_change&, std::function<bool (rtl_ssa::insn_change&, unsigned int)>)':
| /usr/src/debug/gcc/11.3.0-r0/build/gcc/../../../../../../work-shared/gcc-11.3.0-r0/gcc-11.3.0/gcc/rtl-ssa/changes.cc:840: undefined reference to `add_clobbers(rtx_def*, int)'
| collect2: error: ld returned 1 exit status
| make[1]: *** [../../../../../../work-shared/gcc-11.3.0-r0/gcc-11.3.0/gcc/lto/Make-lang.in:101: lto-dump] Error 1
| make[1]: Leaving directory '/home/scm/BSP36/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/gcc/11.3.0-r0/build/gcc'
| make: *** [Makefile:4456: all-gcc] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/scm/BSP36/fsl-auto-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc_11.3.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4507 tasks of which 4506 didn't need to be rerun and 1 failed.
My Host env is ubuntu20.04, and I follow the build step as section 3.1 in "S32G2_LinuxBSP_36.0_User_Manual"
Could you help to have a check, thanks!