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: 
Explorer
Explorer
232 Views
Registered: ‎07-05-2017

PetaLinux build error

Using petalinux version 2017.3 same with Vivado/SDK and Zedboard bsb on Ubuntu 16.04

Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

Note on the same Ubuntu machine I have created about 25 Petalinux projects in the  past 2 years.

 

Here are the commands that I follow and issues i'm having.

 

petalinux-create -t project --name mmd_simp_1 --source /opt/zed_bsp/avnet-digilent-zedboard-v2017.3-final.bsp --force

PASSES


petalinux-config --get-hw-description simple_proj_1/simple_proj_1.sdk --project mmd_simp_1

PASSES

cd mmd_simp_1

PASSES
petalinux-config -c kernel

PASSES if I only have one console open, but gives errrors and fails when I have anther app opened.
petalinux-build

FAILS:

Here is a sample of the 44 errors (I have also attached the buld.log file:

 

NOTE: Executing SetScene Tasks
ERROR: external-hdf-1.0-r0 do_package_write_rpm_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_package_write_rpm_setscene(d)
     0003:
File: '/opt/pkg/petalinux/components/yocto/source/arm/layers/core/meta/classes/package_rpm.bbclass', lineno: 757, function: do_package_write_rpm_setscene
     0753:# but we need to stop the rootfs/solver from running while we do...
     0754:do_package_write_rpm[sstate-lockfile-shared] += "${DEPLOY_DIR_RPM}/rpm.lock"
     0755:
     0756:python do_package_write_rpm_setscene () {
 *** 0757:    sstate_setscene(d)
     0758:}
     0759:addtask do_package_write_rpm_setscene
     0760:
     0761:python do_package_write_rpm () {
File: '/opt/pkg/petalinux/components/yocto/source/arm/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: '/opt/pkg/petalinux/components/yocto/source/arm/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: '/home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/sstate-install-package_write_rpm/deploy-rpms' -> '/home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/deploy-rpms'

WARNING: Logfile for failed setscene tasNOTE: Executing SetScene Tasks
ERROR: external-hdf-1.0-r0 do_package_write_rpm_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_package_write_rpm_setscene(d)
     0003:
File: '/opt/pkg/petalinux/components/yocto/source/arm/layers/core/meta/classes/package_rpm.bbclass', lineno: 757, function: do_package_write_rpm_setscene
     0753:# but we need to stop the rootfs/solver from running while we do...
     0754:do_package_write_rpm[sstate-lockfile-shared] += "${DEPLOY_DIR_RPM}/rpm.lock"
     0755:
     0756:python do_package_write_rpm_setscene () {
 *** 0757:    sstate_setscene(d)
     0758:}
     0759:addtask do_package_write_rpm_setscene
     0760:
     0761:python do_package_write_rpm () {
File: '/opt/pkg/petalinux/components/yocto/source/arm/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: '/opt/pkg/petalinux/components/yocto/source/arm/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: '/home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/sstate-install-package_write_rpm/deploy-rpms' -> '/home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/deploy-rpms'

WARNING: Logfile for failed setscene task is /home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/temp/log.do_package_write_rpm_setscene.10980
ERROR: external-hdf-1.0-r0 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: '/opt/pkg/petalinux/components/yocto/source/arm/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: '/opt/pkg/petalinux/components/yocto/source/arm/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: '/opt/pkg/petalinux/components/yocto/source/arm/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: '/home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/sstate-install-populate_sysroot/sysroot-destdir' -> '/home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/sysroot-destdir'

WARNING: Logfile for failed setscene task is /home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/temp/log.do_populate_sysroot_setscene.10982
WARNING: Setscene task (/opt/pkg/petalinux/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/hdf/external-hdf.bb:do_package_write_rpm_setscene) failed with exit code '1' - real task will be run instead
WARNING: Setscene task (/opt/pkg/petalinux/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/hdf/external-hdf.bb:do_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead
k is /home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/temp/log.do_package_write_rpm_setscene.10980
ERROR: external-hdf-1.0-r0 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: '/opt/pkg/petalinux/components/yocto/source/arm/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: '/opt/pkg/petalinux/components/yocto/source/arm/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: '/opt/pkg/petalinux/components/yocto/source/arm/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: '/home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/sstate-install-populate_sysroot/sysroot-destdir' -> '/home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/sysroot-destdir'

WARNING: Logfile for failed setscene task is /home/armen/mmd_simp_1/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/external-hdf/1.0-r0/temp/log.do_populate_sysroot_setscene.10982
WARNING: Setscene task (/opt/pkg/petalinux/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/hdf/external-hdf.bb:do_package_write_rpm_setscene) failed with exit code '1' - real task will be run instead
WARNING: Setscene task (/opt/pkg/petalinux/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/hdf/external-hdf.bb:do_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead

 

 

 

0 Kudos