Ghostscript recipe Yocto Build Error

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

Ghostscript recipe Yocto Build Error

Jump to solution
916 Views
mikie_mikie
Contributor I

 

 

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.

0 Kudos
Reply
1 Solution
866 Views
mikie_mikie
Contributor I

Hello NXP Tech Support,

Thank you for your reply.

After I deleted tmp folder then I was able to do bitbake -k successfully.

Kind regards,

mikie

View solution in original post

2 Replies
867 Views
mikie_mikie
Contributor I

Hello NXP Tech Support,

Thank you for your reply.

After I deleted tmp folder then I was able to do bitbake -k successfully.

Kind regards,

mikie

872 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

I would like to confirm if you have set all packages needed?
By this I do not mean that the host have the packages, but if yocto has fetch and configured all pakcages, since you are running using -k option.

I will try on my side to double check but I would recommend to try to bitbake again without the -k option and see if the same error is shown.

Best regards/Saludos,
Aldo.

0 Kudos
Reply