在 Yocto 项目中构建 BSP36 时遇到 gcc_11.3.0 编译错误。
详细日志如下:
[i]/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:对“add_clobbers(rtx_def*, int)”的未定义引用
[i]| /home/scm/BSP36/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/gcc/11.3.0-r0/recipe-sysroot-na
tive/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)':
[i]|/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:对“add_clobbers(rtx_def*, int)”的未定义引用
[i]|collect2:错误:ld 返回 1 退出状态
[i]|make[1]: *** [../../../../../../work-shared/gcc-11.3.0-r0/gcc-11.3.0/gcc/lto/Make-lang.in:101:lto-dump] 错误 1
[i]|make[1]:离开目录 '/home/scm/BSP36/fsl-auto-yocto-bsp/build_s32g274ardb2/tmp/work/cortexa53-crypto-fsl-linux/gcc/11.3.0-r0/build/gcc'
[i]|make: *** [Makefile:4456: all-gcc] 错误 2
[i]|错误:oe_runmake失败
[i]|警告:从 shell 命令中退出代码 1。
[i]错误:任务 (/home/scm/BSP36/fsl-auto-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc_11.3.bb:do_compile) 失败,退出代码“1”
[i]注意:任务摘要:尝试了 4507 个任务,其中 4506 个不需要重新运行,1 个失败。
我的主机环境是 ubuntu20.04,我按照“S32G2_LinuxBSP_36.0_User_Manual”中第 3.1 节的构建步骤进行作
您能帮忙检查一下吗,谢谢!