Skip to contentSkip to conversation

building uclibc based image for arm

DISCUSSION Harshal Govind (hgovind) 2 participants 4 messages Oct 13, 2016 – Oct 16, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying build uclibc based image. But getting following error. Note:

- I am using yocto-1.7.2

- Set TCLIBC ?= "uclibc" in distro/defaultsetup.conf

- Building for arm

# bitbake core-image-minimal

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_install (log file is located at /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp-neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29445)
ERROR: Logfile of failure stored in: /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp-neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29445 Log data follows:

| DEBUG: Executing shell function do_install
| ls: cannot access /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi//usr/bin: No such file or directory
| ls: cannot access /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi//usr/lib/locale: No such file or directory
| cp: cannot stat '/home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi/SUPPORTED': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp-neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29445)

ERROR: Task 1094 (/home/hgovind/projects/temp/test-sdk/ap-sdk/sys/yocto-1.7/poky-dizzy-12.0.2/meta/recipes-core/glibc/glibc-locale_2.20.bb, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 780 tasks of which 703 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
/home/hgovind/projects/temp/test-sdk/ap-sdk/sys/yocto-1.7/poky-dizzy-12.0.2/meta/recipes-core/glibc/glibc-locale_2.20.bb, do_install
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Could you please let me know if I am following correct steps to create uclibc based image?

#1 lore raw
Quoted 72 lines · Harshal Govind (hgovind)

Hi,

I am trying build uclibc based image. But getting following error.

Note:

(quoted diff) +0 -3
-          I am using yocto-1.7.2
 
-          Set TCLIBC ?= "uclibc" in distro/defaultsetup.conf
 
-          Building for arm


# bitbake core-image-minimal

NOTE: Preparing runqueue

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: Function failed: do_install (log file is located at /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp-neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29445)

ERROR: Logfile of failure stored in:
/home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp-neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29445

Log data follows:

| DEBUG: Executing shell function do_install

| ls: cannot access /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi//usr/bin:
No such file or directory

| ls: cannot access /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi//usr/lib/locale:
No such file or directory

| cp: cannot stat '/home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi/SUPPORTED':
No such file or directory

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_install (log file is located at /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp-neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29445)

ERROR: Task 1094 (/home/hgovind/projects/temp/test-sdk/ap-sdk/sys/yocto-1.7/poky-dizzy-12.0.2/meta/recipes-core/glibc/glibc-locale_2.20.bb, do_install) failed with exit code '1'

NOTE: Tasks Summary: Attempted 780 tasks of which 703 didn't need to be rerun and 1 failed.

Waiting for 0 running tasks to finish:

Summary: 1 task failed:

/home/hgovind/projects/temp/test-sdk/ap-sdk/sys/yocto-1.7/poky-dizzy-12.0.2/meta/recipes-core/glibc/glibc-locale_2.20.bb, do_install

Quoted 9 lines

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Could you please let me know if I am following correct steps to create uclibc based image?

when using uclibc, it should not pull any glibc components for targets. but its happening for your case
so figure out how this is getting into dependencies. May be you are including it explicitly or its coming
via indirect deps. you can use bitbake -g to generate dep info and inspect it

#2 lore raw

Thanks Raj!

I was pulling yocto 1.7.2 and did not add any custom recipe or target. I just build core-image-minimal image with enabling uclibc in "meta/conf/distro/defaultsetup.conf" (#TCLIBC ?= "uclibc")

But if I do same thing with yocto 2.0 or 2.1, it goes successful and builds uclibc based images.

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Saturday, October 15, 2016 8:24 PM
To: Harshal Govind (hgovind) <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] building uclibc based image for arm

Quoted 80 lines · Harshal Govind (hgovind)

Hi,

I am trying build uclibc based image. But getting following error.

Note:

(quoted diff) +0 -3
-          I am using yocto-1.7.2
 
-          Set TCLIBC ?= "uclibc" in distro/defaultsetup.conf
 
-          Building for arm


# bitbake core-image-minimal

NOTE: Preparing runqueue

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: Function failed: do_install (log file is located at /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp- neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29
445)

ERROR: Logfile of failure stored in:
/home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp- neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29 445

Log data follows:

| DEBUG: Executing shell function do_install

| ls: cannot access /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi//usr/bin:
No such file or directory

| ls: cannot access /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi//usr/lib/locale:
No such file or directory

| cp: cannot stat '/home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi/SUPPORTED':
No such file or directory

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_install (log file is located at /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp- neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29
445)

ERROR: Task 1094 (/home/hgovind/projects/temp/test-sdk/ap-sdk/sys/yocto-1.7/poky-dizzy- 12.0.2/meta/recipes-core/glibc/glibc-locale_2.20.bb, do_install) failed with exit code '1'

NOTE: Tasks Summary: Attempted 780 tasks of which 703 didn't need to be rerun and 1 failed.

Waiting for 0 running tasks to finish:

Summary: 1 task failed:

/home/hgovind/projects/temp/test-sdk/ap-sdk/sys/yocto-1.7/poky-dizzy-1 2.0.2/meta/recipes-core/glibc/glibc-locale_2.20.bb, do_install

Quoted 9 lines

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Could you please let me know if I am following correct steps to create uclibc based image?

when using uclibc, it should not pull any glibc components for targets. but its happening for your case so figure out how this is getting into dependencies. May be you are including it explicitly or its coming via indirect deps. you can use bitbake -g to generate dep info and inspect it

#3 lore raw
Quoted 100 lines · Harshal Govind (hgovind)

Thanks Raj!

I was pulling yocto 1.7.2 and did not add any custom recipe or target. I just build core-image-minimal image with enabling uclibc in "meta/conf/distro/defaultsetup.conf" (#TCLIBC ?= "uclibc")

But if I do same thing with yocto 2.0 or 2.1, it goes successful and builds uclibc based images.

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Saturday, October 15, 2016 8:24 PM
To: Harshal Govind (hgovind) <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] building uclibc based image for arm

Quoted 86 lines · Harshal Govind (hgovind)

Hi,

I am trying build uclibc based image. But getting following error.

Note:

(quoted diff) +0 -3
-          I am using yocto-1.7.2
 
-          Set TCLIBC ?= "uclibc" in distro/defaultsetup.conf
 
-          Building for arm


# bitbake core-image-minimal

NOTE: Preparing runqueue

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: Function failed: do_install (log file is located at /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp- neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29
445)

ERROR: Logfile of failure stored in:
/home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp- neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29 445

Log data follows:

| DEBUG: Executing shell function do_install

| ls: cannot access /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi//usr/bin:
No such file or directory

| ls: cannot access /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi//usr/lib/locale:
No such file or directory

| cp: cannot stat '/home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/sysroots/ap3k-lxc/usr/include/glibc-locale-internal-armv7a-vfp-neon-poky-linux-uclibceabi/SUPPORTED':
No such file or directory

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_install (log file is located at /home/hgovind/projects/temp/test-sdk/ap-sdk/yp_ap/tmp/work/armv7a-vfp- neon-poky-linux-uclibceabi/glibc-locale/2.20-r0/temp/log.do_install.29
445)

ERROR: Task 1094 (/home/hgovind/projects/temp/test-sdk/ap-sdk/sys/yocto-1.7/poky-dizzy- 12.0.2/meta/recipes-core/glibc/glibc-locale_2.20.bb, do_install) failed with exit code '1'

NOTE: Tasks Summary: Attempted 780 tasks of which 703 didn't need to be rerun and 1 failed.

Waiting for 0 running tasks to finish:

Summary: 1 task failed:

/home/hgovind/projects/temp/test-sdk/ap-sdk/sys/yocto-1.7/poky-dizzy-1 2.0.2/meta/recipes-core/glibc/glibc-locale_2.20.bb, do_install

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Quoted 5 lines
Quoted 3 lines

Could you please let me know if I am following correct steps to create uclibc based image?

when using uclibc, it should not pull any glibc components for targets. but its happening for your case so figure out how this is getting into dependencies. May be you are including it explicitly or its coming via indirect deps. you can use bitbake -g to generate dep info and inspect it

its possible that we have bugs in 1.7 and it was long time ago, we did fix non-glibc builds in later releases so I am not surprised that you get better results with newer releases. Btw. uclibc has been deprecated in 2.1 and will be removed from 2.2 release, so plan to move to musl if you need smaller libc