UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor j_gavillan
Visitor
5,048 Views
Registered: ‎05-05-2017

Failed to build project in petalinux 2017.1

Hi,

 

I was using petalinux 2016.2 and I just decided to move up to 2017.1 and ran into the following issue. This is two of about 40 of the same kind of error.

 

 

ERROR: sysvinit-inittab-2.88dsf-r10 do_populate_sysroot_setscene: 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:do_populate_sysroot_setscene(d)
0003:
File: '/home/jgm/petalinux_2017_1/components/yocto/source/aarch64/layers/core/meta/classes/staging.bbclass', lineno: 238, function: do_populate_sysroot_setscene
0234:do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/"
0235:do_populate_sysroot[stamp-extra-info] = "${MACHINE}"
0236:
0237:python do_populate_sysroot_setscene () {
*** 0238: sstate_setscene(d)
0239:}
0240:addtask do_populate_sysroot_setscene
0241:
0242:
File: '/home/jgm/petalinux_2017_1/components/yocto/source/aarch64/layers/core/meta/classes/sstate.bbclass', lineno: 659, function: sstate_setscene
0655: break
0656:
0657:def sstate_setscene(d):
0658: shared_state = sstate_state_fromvars(d)
*** 0659: accelerate = sstate_installpkg(shared_state, d)
0660: if not accelerate:
0661: bb.fatal("No suitable staging package found")
0662:
0663:python sstate_task_prefunc () {
File: '/home/jgm/petalinux_2017_1/components/yocto/source/aarch64/layers/core/meta/classes/sstate.bbclass', lineno: 327, function: sstate_installpkg
0323: bb.build.exec_func(f, d, (sstateinst,))
0324:
0325: for state in ss['dirs']:
0326: prepdir(state[1])
*** 0327: os.rename(sstateinst + state[0], state[1])
0328: sstate_install(ss, d)
0329:
0330: for plain in ss['plaindirs']:
0331: workdir = d.getVar('WORKDIR', True)
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/localdata/Raptor/Raptor_2017/build/tmp/work/plnx_aarch64-xilinx-linux/sysvinit-inittab/2.88dsf-r10/sstate-install-populate_sysroot/sysroot-destdir' -> '/localdata/Raptor/Raptor_2017/build/tmp/work/plnx_aarch64-xilinx-linux/sysvinit-inittab/2.88dsf-r10/sysroot-destdir'

 

 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

ERROR: device-tree-generation-xilinx+gitAUTOINC+94fc615234-r0 do_populate_lic_setscene: 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:do_populate_lic_setscene(d)
0003:
File: '/home/jgm/petalinux_2017_1/components/yocto/source/aarch64/layers/core/meta/classes/license.bbclass', lineno: 674, function: do_populate_lic_setscene
0670:IMAGE_POSTPROCESS_COMMAND_prepend = "write_deploy_manifest; "
0671:do_image[recrdeptask] += "do_populate_lic"
0672:
0673:python do_populate_lic_setscene () {
*** 0674: sstate_setscene(d)
0675:}
0676:addtask do_populate_lic_setscene
File: '/home/jgm/petalinux_2017_1/components/yocto/source/aarch64/layers/core/meta/classes/sstate.bbclass', lineno: 659, function: sstate_setscene
0655: break
0656:
0657:def sstate_setscene(d):
0658: shared_state = sstate_state_fromvars(d)
*** 0659: accelerate = sstate_installpkg(shared_state, d)
0660: if not accelerate:
0661: bb.fatal("No suitable staging package found")
0662:
0663:python sstate_task_prefunc () {
File: '/home/jgm/petalinux_2017_1/components/yocto/source/aarch64/layers/core/meta/classes/sstate.bbclass', lineno: 327, function: sstate_installpkg
0323: bb.build.exec_func(f, d, (sstateinst,))
0324:
0325: for state in ss['dirs']:
0326: prepdir(state[1])
*** 0327: os.rename(sstateinst + state[0], state[1])
0328: sstate_install(ss, d)
0329:
0330: for plain in ss['plaindirs']:
0331: workdir = d.getVar('WORKDIR', True)
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/localdata/Raptor/Raptor_2017/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+94fc615234-r0/sstate-install-populate_lic/license-destdir' -> '/localdata/Raptor/Raptor_2017/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+94fc615234-r0/license-destdir'

 

 

 

4 Replies
Highlighted
Adventurer
Adventurer
4,452 Views
Registered: ‎11-14-2008

Re: Failed to build project in petalinux 2017.1

Has anyone made progress on this? I'm completely stalled with exactly the same error.

 

Using Petalinux 2017.1 and this Linux installation (not a VM):

 

LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.3.1611 (Core)
Release:        7.3.1611
Codename:       Core

 

Thanks!

Matt

0 Kudos
Adventurer
Adventurer
4,431 Views
Registered: ‎11-14-2008

Re: Failed to build project in petalinux 2017.1

... a little more information.

 

This is a new install of CentOS 7 and PetaLinux 2017.1

I'm simply installing the latest Petalinux BSP for ZedBoard

 

[mbrown@nomad ~]$ petalinux-create -t project -s ./work/avnet-digilent-zedboard-v2017.1-final.bsp

 

then executing a build with:

 

[mbrown@nomad avnet-digilent-zedboard-2017.1]$ petalinux-build

 

/Matt

0 Kudos
Moderator
Moderator
4,357 Views
Registered: ‎04-24-2017

Re: Failed to build project in petalinux 2017.1

Please post in right community topic. You have posted in Welcome & Join sections
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Adventurer
Adventurer
4,268 Views
Registered: ‎11-14-2008

Re: Failed to build project in petalinux 2017.1

Hopefully a moderator can move this to an appropriate community topic.

 

I am finally able to build in Petalinux 2017.1. One of the following solved the issue, though I haven't tracked down which one yet.

 

  • A quad-core i3 @ +3GHz with 4GB RAM is barely enough machine for working with Petalinux. Barely. 8 cpus should be our min configuration.
  • Tool installation order seems to matter. Petalinux installer doesn’t catch all of the dependencies like standard YUM installs. So you must install the dependencies FIRST, then Petalinux.
  • Restricting Yocto tools to 3 threads on a 4 core machine helps. Do this with the petalinux-config menu.

 

/Matt

0 Kudos