BSP36 gcc_11.3.0 compile error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BSP36 gcc_11.3.0 compile error

3,120 Views
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 Kudos
Reply
2 Replies

1,430 Views
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 Kudos
Reply

3,083 Views
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 Kudos
Reply