I am doing Yocto Build for FRDM-IMX8MPLUS development board and I did bitbake with following commands.
bitbake -k imx-image-full
Result: bitbake failed and recipe name: ghostscript
bitbake -k ghostscript
then I received following error.
I think something wrong with gcc library. Please advise me.
| /usr/src/debug/gcc/13.3.0/gcc/range.cc:42:(.text+0x9c): undefined reference to `build_zero_cst(tree_node*)'
| /home/compulab/imx-yocto-bsp/frdm-imx8mp/tmp/work/armv8a-poky-linux/gcc/13.3.0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: /usr/src/debug/gcc/13.3.0/gcc/range.cc:42:(.text+0xa8): undefined reference to `build_zero_cst(tree_node*)'
| /home/compulab/imx-yocto-bsp/frdm-imx8mp/tmp/work/armv8a-poky-linux/gcc/13.3.0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: range.o: in function `int_range<1u, false>::int_range(tree_node*, tree_node*, value_range_kind)':
| /usr/src/debug/gcc/13.3.0/gcc/value-range.h:941:(.text+0xe4): undefined reference to `irange::set(tree_node*, tree_node*, value_range_kind)'
| /home/compulab/imx-yocto-bsp/frdm-imx8mp/tmp/work/armv8a-poky-linux/gcc/13.3.0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/13.3.0/ld: range.o: in function `int_range<1u, false>::operator=(int_range<1u, false> const&)':
| /usr/src/debug/gcc/13.3.0/gcc/value-range.h:972:(.text+0x264): undefined reference to `irange::operator=(irange const&)'
| collect2: error: ld returned 1 exit status
| make[1]: *** [../../../../../../../work-shared/gcc-13.3.0-r0/gcc-13.3.0/gcc/lto/Make-lang.in:102: lto-dump] Error 1
| make[1]: Leaving directory '/home/compulab/imx-yocto-bsp/frdm-imx8mp/tmp/work/armv8a-poky-linux/gcc/13.3.0/gcc-13.3.0/build.aarch64-poky-linux.aarch64-poky-linux/gcc'
| make: *** [Makefile:4627: all-gcc] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/compulab/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc_13.3.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4587 tasks of which 3788 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/compulab/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc_13.3.bb:do_compile
Summary: There were 2 ERROR messages, returning a non-zero exit code.