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
852 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
802 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
803 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

808 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
%3CLINGO-SUB%20id%3D%22lingo-sub-2189251%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EGhostscript%20recipe%20Yocto%20Build%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189251%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3EI%20am%20doing%20Yocto%20Build%20for%20FRDM-IMX8MPLUS%20development%20board%20and%20I%20did%20bitbake%20with%20following%20commands.%3CBR%20%2F%3E%3CBR%20%2F%3Ebitbake%20-k%20imx-image-full%3C%2FP%3E%3CP%3EResult%3A%20bitbake%20failed%20and%20recipe%20name%3A%20ghostscript%3C%2FP%3E%3CP%3Ebitbake%20-k%20ghostscript%3C%2FP%3E%3CP%3Ethen%20I%20received%20following%20error.%3C%2FP%3E%3CP%3EI%20think%20something%20wrong%20with%20gcc%20library.%20Please%20advise%20me.%3C%2FP%3E%3CP%3E%7C%20%2Fusr%2Fsrc%2Fdebug%2Fgcc%2F13.3.0%2Fgcc%2Frange.cc%3A42%3A(.text%2B0x9c)%3A%20undefined%20reference%20to%20%60build_zero_cst(tree_node*)'%3CBR%20%2F%3E%7C%20%2Fhome%2Fcompulab%2Fimx-yocto-bsp%2Ffrdm-imx8mp%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fgcc%2F13.3.0%2Frecipe-sysroot-native%2Fusr%2Fbin%2Faarch64-poky-linux%2F..%2F..%2Flibexec%2Faarch64-poky-linux%2Fgcc%2Faarch64-poky-linux%2F13.3.0%2Fld%3A%20%2Fusr%2Fsrc%2Fdebug%2Fgcc%2F13.3.0%2Fgcc%2Frange.cc%3A42%3A(.text%2B0xa8)%3A%20undefined%20reference%20to%20%60build_zero_cst(tree_node*)'%3CBR%20%2F%3E%7C%20%2Fhome%2Fcompulab%2Fimx-yocto-bsp%2Ffrdm-imx8mp%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fgcc%2F13.3.0%2Frecipe-sysroot-native%2Fusr%2Fbin%2Faarch64-poky-linux%2F..%2F..%2Flibexec%2Faarch64-poky-linux%2Fgcc%2Faarch64-poky-linux%2F13.3.0%2Fld%3A%20range.o%3A%20in%20function%20%60int_range%26lt%3B1u%2C%20false%26gt%3B%3A%3Aint_range(tree_node*%2C%20tree_node*%2C%20value_range_kind)'%3A%3CBR%20%2F%3E%7C%20%2Fusr%2Fsrc%2Fdebug%2Fgcc%2F13.3.0%2Fgcc%2Fvalue-range.h%3A941%3A(.text%2B0xe4)%3A%20undefined%20reference%20to%20%60irange%3A%3Aset(tree_node*%2C%20tree_node*%2C%20value_range_kind)'%3CBR%20%2F%3E%7C%20%2Fhome%2Fcompulab%2Fimx-yocto-bsp%2Ffrdm-imx8mp%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fgcc%2F13.3.0%2Frecipe-sysroot-native%2Fusr%2Fbin%2Faarch64-poky-linux%2F..%2F..%2Flibexec%2Faarch64-poky-linux%2Fgcc%2Faarch64-poky-linux%2F13.3.0%2Fld%3A%20range.o%3A%20in%20function%20%60int_range%26lt%3B1u%2C%20false%26gt%3B%3A%3Aoperator%3D(int_range%26lt%3B1u%2C%20false%26gt%3B%20const%26amp%3B)'%3A%3CBR%20%2F%3E%7C%20%2Fusr%2Fsrc%2Fdebug%2Fgcc%2F13.3.0%2Fgcc%2Fvalue-range.h%3A972%3A(.text%2B0x264)%3A%20undefined%20reference%20to%20%60irange%3A%3Aoperator%3D(irange%20const%26amp%3B)'%3CBR%20%2F%3E%7C%20collect2%3A%20error%3A%20ld%20returned%201%20exit%20status%3CBR%20%2F%3E%7C%20make%5B1%5D%3A%20***%20%5B..%2F..%2F..%2F..%2F..%2F..%2F..%2Fwork-shared%2Fgcc-13.3.0-r0%2Fgcc-13.3.0%2Fgcc%2Flto%2FMake-lang.in%3A102%3A%20lto-dump%5D%20Error%201%3CBR%20%2F%3E%7C%20make%5B1%5D%3A%20Leaving%20directory%20'%2Fhome%2Fcompulab%2Fimx-yocto-bsp%2Ffrdm-imx8mp%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fgcc%2F13.3.0%2Fgcc-13.3.0%2Fbuild.aarch64-poky-linux.aarch64-poky-linux%2Fgcc'%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3E%7C%20make%3A%20***%20%5BMakefile%3A4627%3A%20all-gcc%5D%20Error%202%3CBR%20%2F%3E%7C%20ERROR%3A%20oe_runmake%20failed%3CBR%20%2F%3E%7C%20WARNING%3A%20exit%20code%201%20from%20a%20shell%20command.%3CBR%20%2F%3EERROR%3A%20Task%20(%2Fhome%2Fcompulab%2Fimx-yocto-bsp%2Fsources%2Fpoky%2Fmeta%2Frecipes-devtools%2Fgcc%2Fgcc_13.3.bb%3Ado_compile)%20failed%20with%20exit%20code%20'1'%3CBR%20%2F%3ENOTE%3A%20Tasks%20Summary%3A%20Attempted%204587%20tasks%20of%20which%203788%20didn't%20need%20to%20be%20rerun%20and%201%20failed.%3C%2FP%3E%3CP%3ESummary%3A%201%20task%20failed%3A%3CBR%20%2F%3E%2Fhome%2Fcompulab%2Fimx-yocto-bsp%2Fsources%2Fpoky%2Fmeta%2Frecipes-devtools%2Fgcc%2Fgcc_13.3.bb%3Ado_compile%3CBR%20%2F%3ESummary%3A%20There%20were%202%20ERROR%20messages%2C%20returning%20a%20non-zero%20exit%20code.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2190322%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ghostscript%20recipe%20Yocto%20Build%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190322%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20NXP%20Tech%20Support%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%3CP%3EAfter%20I%20deleted%20%3CSTRONG%3Etmp%3C%2FSTRONG%3E%20folder%20then%20I%20was%20able%20to%20do%20bitbake%20-k%20successfully.%3C%2FP%3E%3CP%3EKind%20regards%2C%3C%2FP%3E%3CP%3Emikie%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2190307%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Ghostscript%20recipe%20Yocto%20Build%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190307%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20would%20like%20to%20confirm%20if%20you%20have%20set%20all%20packages%20needed%3F%3CBR%20%2F%3EBy%20this%20I%20do%20not%20mean%20that%20the%20host%20have%20the%20packages%2C%20but%20if%20yocto%20has%20fetch%20and%20configured%20all%20pakcages%2C%20since%20you%20are%20running%20using%20-k%20option.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20will%20try%20on%20my%20side%20to%20double%20check%20but%20I%20would%20recommend%20to%20try%20to%20bitbake%20again%20without%20the%20-k%20option%20and%20see%20if%20the%20same%20error%20is%20shown.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%3C%2FLINGO-BODY%3E