BSP36 gcc_11.3.0 compile error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

BSP36 gcc_11.3.0 compile error

3,117件の閲覧回数
eone
Contributor II

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!

0 件の賞賛
返信
2 返答(返信)

1,427件の閲覧回数
SarimJalil
Contributor I

Hi @MayanksPatel , I am facing same problem. I am using Ubuntu 22.04. GCC version was GCC-9 but I also installed GCC-11 and stil getting same error.

0 件の賞賛
返信

3,080件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @eone,

Thank you for reaching out to us.

Please share the installed gcc version in the build system.

Also, Please share the bitbake command you are using to build the yocto.

clean the GCC recipe and again try to build  GCC recipe using the below commands:

bitbake -c clean gcc
bitbake gcc

 

Hope this helps.

 

Thanks,

Mayank s Patel

0 件の賞賛
返信