ERRORs:while bitbake core-image-base on Yocto Project

cancel
Showing results for 
Search instead for 
Did you mean: 

ERRORs:while bitbake core-image-base on Yocto Project

12,161 Views
liquanduan
Contributor III

There are some errors occured while bitbake core-image-base on Ubuntu-17.04,

Informations as follows, anyone have ideas?

////////

Build Configuration:
BB_VERSION        = "1.30.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-17.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6qsabresd"
DISTRO            = "fsl-imx-x11"
DISTRO_VERSION    = "4.1.15-2.1.0"
TUNE_FEATURES     = "arm armv7a vfp  neon        callconvention-hard        cortexa9"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:f5da2a5913319ad6ac2141438ba1aa17576326ab"
meta-oe           
meta-multimedia   = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-fsl-arm      = "HEAD:be78894e4682f111575470fb23e51e6ba523508d"
meta-fsl-arm-extra = "HEAD:3dfb82fc7e703eae9891b3ffda0e9393701f2396"
meta-fsl-demos    = "HEAD:a165068f8a0d1cf29aabe4b4053f28be1c2aa492"
meta-bsp          
meta-sdk          = "HEAD:823b26a67261270d2bf22d511e6190641a8a90cf"
meta-browser      = "HEAD:77736988073a5d90fcff9d0005c8477332ede387"
meta-gnome        
meta-networking   
meta-python       
meta-filesystems  = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-qt5          = "HEAD:ccae79be69c5268df3b47e4e14cea0591c39a531"

//////////////////

NOTE: Preparing RunQueue

ERROR: core-image-base-1.0-r0 do_rootfs: Error executing a python function in exec_python_func() autogenerated::

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:license_create_manifest(d)
     0003:
File: '/home/detc/fsl-bsp/sources/poky/meta/classes/license.bbclass', lineno: 48, function: license_create_manifest
     0044:    pkg_dic = {}
     0045:    for pkg in sorted(image_list_installed_packages(d)):
     0046:        pkg_info = os.path.join(d.getVar('PKGDATA_DIR', True),
     0047:                                'runtime-reverse', pkg)
 *** 0048:        pkg_name = os.path.basename(os.readlink(pkg_info))
     0049:
     0050:        pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
     0051:        if not "LICENSE" in pkg_dic[pkg_name].keys():
     0052:            pkg_lic_name = "LICENSE_" + pkg_name
Exception: OSError: [Errno 2] No such file or directory: '/home/detc/fsl-bsp/dashboard/tmp/sysroots/imx6qsabresd/pkgdata/runtime-reverse/No'

ERROR: core-image-base-1.0-r0 do_rootfs: Function failed: license_create_manifest
ERROR: Logfile of failure stored in: /home/detc/fsl-bsp/dashboard/tmp/work/imx6qsabresd-poky-linux-gnueabi/core-image-base/1.0-r0/temp/log.do_rootfs.1189
ERROR: Task 9 (/home/detc/fsl-bsp/sources/poky/meta/recipes-core/images/core-image-base.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2765 tasks of which 1602 didn't need to be rerun and 1 failed.
No currently running tasks (2765 of 2771)

Summary: 1 task failed:
  /home/detc/fsl-bsp/sources/poky/meta/recipes-core/images/core-image-base.bb, do_rootfs
Summary: There were 74 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Labels (3)
14 Replies

2,994 Views
nurulhidayah
Contributor I

I have the same problem before..
Change your main PACKAGE_CLASSES variable in your conf/local.conf file seems to solve the problem..

If you not sure what or how, I just add all..

cleanall then try bitbake again..

---------------------------------------------------

conf/local.conf :

PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"

--------------------------------------------------

bitbake xxxxx -c cleanall

bitbake xxxx

0 Kudos

2,994 Views
vdasvaldas09
Contributor III

I got the problem that have no solutions at this forum:

ERROR: fsl-image-qt5-wayland-1.0-r0 do_rootfs: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:license_create_manifest(d)
     0003:
File: '/home/at/player/beta/newBuild/sources/poky/meta/classes/license.bbclass', lineno: 48, function: license_create_manifest
     0044:    pkg_dic = {}
     0045:    for pkg in sorted(image_list_installed_packages(d)):
     0046:        pkg_info = os.path.join(d.getVar('PKGDATA_DIR', True),
     0047:                                'runtime-reverse', pkg)
 *** 0048:        pkg_name = os.path.basename(os.readlink(pkg_info))
     0049:
     0050:        pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
     0051:        if not "LICENSE" in pkg_dic[pkg_name].keys():
     0052:            pkg_lic_name = "LICENSE_" + pkg_name
Exception: OSError: [Errno 2] No such file or directory: '/home/at/player/beta/newBuild/build/tmp/sysroots/imx6ulevk/pkgdata/runtime-reverse/No'

ERROR: fsl-image-qt5-wayland-1.0-r0 do_rootfs: Function failed: license_create_manifest
ERROR: Logfile of failure stored in: /home/at/player/beta/newBuild/build/tmp/work/imx6ulevk-poky-linux-gnueabi/fsl-image-qt5-wayland/1.0-r0/temp/log.do_rootfs.20235
ERROR: Task 9 (/home/at/player/beta/newBuild/sources/meta-qt-bsp/recipes-fsl/images/fsl-image-qt5-wayland.bb, do_rootfs) failed with exit code '1'

Build Configuration:
BB_VERSION        = "1.30.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Debian-9.9"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6ulevk"
DISTRO            = "fsl-imx-wayland"
DISTRO_VERSION    = "4.1.15-2.0.1"
TUNE_FEATURES     = "arm armv7ve vfp  neon        callconvention-hard        cortexa7"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:f5da2a5913319ad6ac2141438ba1aa17576326ab"
meta-oe           
meta-multimedia   = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-fsl-arm      = "HEAD:be78894e4682f111575470fb23e51e6ba523508d"
meta-fsl-arm-extra = "HEAD:3dfb82fc7e703eae9891b3ffda0e9393701f2396"
meta-fsl-demos    = "HEAD:a165068f8a0d1cf29aabe4b4053f28be1c2aa492"
meta-bsp          
meta-sdk          = "HEAD:90399d99af8a2660ebe50b49752e95b210239fd9"
meta-browser      = "HEAD:77736988073a5d90fcff9d0005c8477332ede387"
meta-gnome        
meta-networking   
meta-python       
meta-filesystems  = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-qt5          = "HEAD:ccae79be69c5268df3b47e4e14cea0591c39a531"
meta-qt-bsp       = "HEAD:938f3eb0636bf982acf3f8f078dcfd4097ba6057"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks

What is it? How can I solve it?

0 Kudos

2,994 Views
1135279361
Contributor II

I have the same problem. Have you found a solution?

0 Kudos

2,994 Views
vdasvaldas09
Contributor III

The same problem ); Have you found a solution?

0 Kudos

2,994 Views
olofjohansson
Contributor I

This is a known error not solved in the official release from NXP.

I cherry picked the commit from this response: [yocto] [pseudo-native] No real function for mknod and that solved the issue for me at least.

Had to solve a conflict in the cherry-pick though.

$~/fsl-release-bsp/sources/poky/meta((0dfb091...))$ git cherry-pick e090775f7e

0 Kudos

2,994 Views
liquanduan
Contributor III

~/fsl-bsp/build$ cd ../sources/poky/meta
~/fsl-bsp/sources/poky/meta$ git cherry-pick e090775f7e

error: could not apply e090775f7e... pseudo: Work around issues with glibc 2.24
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
Recorded preimage for 'meta/recipes-devtools/pseudo/pseudo_1.7.5.bb'

It still failed...

0 Kudos

2,994 Views
art
NXP TechSupport
NXP TechSupport

Please follow exactly the attached document for the information on how to prepare environment and build a BSP image.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,994 Views
liquanduan
Contributor III

I thought I had followed the document strictly, but it still stopped at this step...

0 Kudos

2,994 Views
marius_grigoras
NXP Employee
NXP Employee

Hi,

Making some search on google seems 3 possible reasons:

1. Config is broken - make sure you properly configured DISTRO and MACHINE names

2. conf/local.conf is broken - double check what you posted there

3. Try to remove the build folder and re-make all the config steps again and try to issue again the bitbake command.

Thank you,

Marius

2,994 Views
liquanduan
Contributor III

The same.....TT

ERROR: fsl-image-gui-1.0-r0 do_rootfs: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:license_create_manifest(d)
0003:
File: '/home/detc/fsl-bsp/sources/poky/meta/classes/license.bbclass', lineno: 48, function: license_create_manifest
0044: pkg_dic = {}
0045: for pkg in sorted(image_list_installed_packages(d)):
0046: pkg_info = os.path.join(d.getVar('PKGDATA_DIR', True),
0047: 'runtime-reverse', pkg)
*** 0048: pkg_name = os.path.basename(os.readlink(pkg_info))
0049:
0050: pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
0051: if not "LICENSE" in pkg_dic[pkg_name].keys():
0052: pkg_lic_name = "LICENSE_" + pkg_name
Exception: OSError: [Errno 2] No such file or directory: '/home/detc/fsl-bsp/dashboard/tmp/sysroots/imx6qsabresd/pkgdata/runtime-reverse/No'

ERROR: fsl-image-gui-1.0-r0 do_rootfs: Function failed: license_create_manifest
ERROR: Logfile of failure stored in: /home/detc/fsl-bsp/dashboard/tmp/work/imx6qsabresd-poky-linux-gnueabi/fsl-image-gui/1.0-r0/temp/log.do_rootfs.1245
ERROR: Task 9 (/home/detc/fsl-bsp/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-gui.bb, do_rootfs) failed with exit code '1'

0 Kudos

2,994 Views
pierslfx
Contributor I

I am experiencing the same issue. Did you find a fix?

Thanks,

0 Kudos

2,994 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

  perhaps it makes sense to use earlier (than 17) Ubuntu versions :

 "The recommended minimum Ubuntu version is 14.04 but builds for Jethro works on 12.04 or later.

Earlier versions may cause the Yocto Project build setup to fail, because it requires python versions

only available starting wtih Ubuntu 12.04. See The Yocto Project reference manual for more information.
Ubuntu 16.04 users have commented on errors during build for sdl. To fix this comment out in local.conf the

following lines as such adding # character." 

Regards,

Yuri.

0 Kudos

2,994 Views
pierslfx
Contributor I

Thanks Yuri, I will try it with Ubuntu 14.04.

Kind Regards,

Piers

0 Kudos

2,994 Views
liquanduan
Contributor III

Thank you , Marius,

Configuration and conf/local.conf seems well, and now i am trying to bitbake fsl-image-gui in the same environement. No error has been given so far,I will try your suggestion after finished and then report the results~

0 Kudos