bitbake meta-toolchain failing

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

bitbake meta-toolchain failing

1,840 Views
pratyushtomar
Contributor IV

I am trying to build PN7120 drivers for my custom board based on imx6ulevk using method mentioned on this forum NFC PN7120 on the i.MX6Q .  To execute these steps

  1. source source /opt/poky/1.7/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi  
  2. $ export ARCH=arm  
  3. $ export CROSS_COMPILE=$TARGET_PREFIX  
  4. $ make imx_v7_defconfig  

 

To execute these steps I think I need to install meta-toolchain so I tried installing by executing following command bitbake meta-toolchain but it's failing with following error

ERROR: Function failed: do_configure (log file is located at /home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-glibc-initial/2.22-r0/temp/log.do_configure.14881)
ERROR: Logfile of failure stored in: /home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-glibc-initial/2.22-r0/temp/log.do_configure.14881
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_configure
| sed: can't read /home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-glibc-initial/2.22-r0/git/elf/ldd.bash.in: No such file or directory
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-glibc-initial/2.22-r0/temp/log.do_configure.14881)
ERROR: Task 963 (virtual:nativesdk:/home/pratyush/fsl-release-bsp_4/sources/poky/meta/recipes-core/glibc/glibc-initial_2.22.bb, do_configure) failed with exit code '1'
WARNING: Could not copy license file /home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-acl/2.2.52-r0/acl-2.2.52/doc/COPYING to /home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-acl/2.2.52-r0/license-destdir/nativesdk-acl/COPYING: [Errno 2] No such file or directory: '/home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-acl/2.2.52-r0/acl-2.2.52/doc/COPYING'
WARNING: Could not copy license file /home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-acl/2.2.52-r0/acl-2.2.52/doc/COPYING.LGPL to /home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-acl/2.2.52-r0/license-destdir/nativesdk-acl/COPYING.LGPL: [Errno 2] No such file or directory: '/home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-acl/2.2.52-r0/acl-2.2.52/doc/COPYING.LGPL'
WARNING: Could not copy license file /home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-db/6.0.30-r0/db-6.0.30/dist/../LICENSE to /home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-db/6.0.30-r0/license-destdir/nativesdk-db/LICENSE: [Errno 2] No such file or directory: '/home/pratyush/fsl-release-bsp_4/image_4_1_15/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-db/6.0.30-r0/db-6.0.30/dist/../LICENSE'
NOTE: Tasks Summary: Attempted 1124 tasks of which 1121 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:

Please help me where I am making mistake.##

Labels (3)
Tags (1)
0 Kudos
Reply
2 Replies

1,026 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Pratyush Tomar,

You are using the 4.1.15 BSP Release, correct?

Are you able to bake a regular image? For example core-image-minimal?

I would start by checking that the local.conf file has the correct settings (distro, machine) and that the EULA flag is set to 1.

Ubuntu 14.04 is recommended, although this error does not seem related to a problem with the host packages.

Regards,

0 Kudos
Reply

1,026 Views
pratyushtomar
Contributor IV

Yes I am using 4.1.15 BSP Release and I am able to build regular image (fsl-image-machine-test) successfully every time. Also, I am using Ubuntu 14.04. Following is my local.conf file that I am using :-- 

MACHINE ??= 'imx6ulevk'
DISTRO ?= 'fsl-imx-fb'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

But don't know why I am failing while building meta-toolchain. Is their any other way for installing toolchain for compiling the nfc Pn7120 drivers? Please correct if I need to make any other changes to local.conf file. 

0 Kudos
Reply