yocto full build issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

yocto full build issue

跳至解决方案
14,564 次查看
K_Varun
Contributor III

Hello Community

I'm trying to build the Yocto full build image of L6.1.22_2.0.0 in Ubuntu 20.04. using the build command : bitbake imx-image-full by following L6.1.22_2.0.0_LINUX_DOCS.

I am getting the bellow build error.

ERROR: Task (/home/user/imx/imx-yocto-bsp/sources/poky/meta/recipes-core/glibc/glibc-locale_2.37.bb:do_package) failed with exit code '1'

attaching the complete build logs for your reference.

Please help me in solving this issue.

Thank you
 

0 项奖励
回复
1 解答
11,796 次查看
K_Varun
Contributor III

Hello community,

adddng the below line in the local.conf has solved the issue for me.

GLIBC_GENERATE_LOCALES = "en_US.UTF-8" 

thanks
K Varun

在原帖中查看解决方案

0 项奖励
回复
10 回复数
14,521 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hello @K_Varun 

Have you followed up the Yocto User Guide to set up "Essential Yocto Project host packages" on your build host?

Such as: 

sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential
chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils
iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev python3-
subunit mesa-common-dev zstd liblz4-tool file locales

 and sudo locale-gen en_US.UTF-8

 

Regards

Harvey

0 项奖励
回复
14,518 次查看
K_Varun
Contributor III

Hello @Harvey021 

Thank you for your response.

I have followed the Yocto Project documentation and installed all the essential host packages as recommended. For cross-verification, I also ran the sudo commands you provided earlier. However, the error still persists.

Could you please help me further investigate the issue?

Thank you for your assistance.

Best regards,

K Varun

 

0 项奖励
回复
14,486 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi @K_Varun 

I've tested the build on my host again, it works.

The build host: 22.04.1-Ubuntu

-b imx-linux-mickledore -m imx-6.1.22-2.0.0.xml

build_imx-image-full.png

Would suggest you to have a clean build and also check your system source, like the number of cores with the RAMs. 

 

Regards

Harvey

0 项奖励
回复
14,494 次查看
K_Varun
Contributor III

 

Dear Linux Community,

I am encountering an issue while building the image and need some assistance. Despite trying various approaches, I am still facing the following error during the build process: attaching the complete log-cat for better reference.

error: 

ERROR: glibc-locale-2.39+git-r0 do_package: oe_runmake failed
ERROR: glibc-locale-2.39+git-r0 do_package: ExecutionError('/home/user/imx/imx-yocto/build-xwayland/tmp/work/armv8a-poky-linux/glibc-locale/2.39+git/temp/run.oe_runmake.787591', 1, None, None)
ERROR: Logfile of failure stored in: /home/user/imx/imx-yocto/build-xwayland/tmp/work/armv8a-poky-linux/glibc-locale/2.39+git/temp/log.do_package.787591

 

I am following the steps provided in the READ ME for building the image, which can be found here: https://github.com/nxp-imx/imx-manifest.

Could anyone guide me on how to resolve this issue?

Looking forward to your help.

Best regards,

K Varun

0 项奖励
回复
14,431 次查看
K_Varun
Contributor III

Hello @Harvey021 

I’m still facing the glibc-locale error during the Yocto build process.

Here’s what I’ve tried so far:

  • Tested the build on both Ubuntu 22.04 and 20.04.
  • Verified all required build-essential packages.
  • Performed clean builds and reconfigured locale settings.
  • Followed your suggestions to clean the build and check system specs (32 GB RAM, 8 cores).

Unfortunately, the issue persists, and the build is still slow. Could you please suggest additional steps to resolve this? Also, do you have any recommendations on how to improve the build speed?

Thank you!

Best regards,
K Varun

0 项奖励
回复
14,407 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi @K_Varun 

Have a try to build glibc-locale separately before building any recipes or target.

the build speed mostly depends on the system sources and network bandwidth.

 

Regards

Harvey

0 项奖励
回复
14,378 次查看
K_Varun
Contributor III

Hello @Harvey021 

Tried to build only the glibc-locale separately before initiating the full build. however, the error still persists.

Attaching log- file for reference.

Regards 
K Varun

0 项奖励
回复
12,160 次查看
K_Varun
Contributor III

Hello Community,

Need your support to solve this gilbc-locale error. Facing this issue from long time.

Regards

K Varun

 

0 项奖励
回复
11,925 次查看
Harvey021
NXP TechSupport
NXP TechSupport

I believe that the problem mainly exists in your host. as said, we did test again in our host, no such issue.

 

Regards

Harvey

0 项奖励
回复
11,797 次查看
K_Varun
Contributor III

Hello community,

adddng the below line in the local.conf has solved the issue for me.

GLIBC_GENERATE_LOCALES = "en_US.UTF-8" 

thanks
K Varun

0 项奖励
回复