cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mselke
Visitor
Visitor
145 Views
Registered: ‎09-02-2020

Petalinux build

Hi all,

I am new to Xilinx. In my new project I should build a Linux with the PetaLinux tools. Now I am having trouble building the whole thing. I followed the different tutorials step by step. And also repeated this, since I thought I missed something. I always get these 4 Error which are blocking me. Do you have any idea how to solve this?

I use Ubuntu 18.04.4 LTS in virtual box

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

ERROR: cracklib-2.9.5-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: '/home/mselke/Working/xilinx-zc702-2020.1/components/yocto/layers/core/meta/classes/package_rpm.bbclass', lineno: 731, function: do_package_write_rpm_setscene
0727:# but we need to stop the rootfs/solver from running while we do...
0728:do_package_write_rpm[sstate-lockfile-shared] += "${DEPLOY_DIR_RPM}/rpm.lock"
0729:
0730:python do_package_write_rpm_setscene () {
*** 0731: sstate_setscene(d)
0732:}
0733:addtask do_package_write_rpm_setscene
0734:
0735:python do_package_write_rpm () {
File: '/home/mselke/Working/xilinx-zc702-2020.1/components/yocto/layers/core/meta/classes/sstate.bbclass', lineno: 744, function: sstate_setscene
0740: pass
0741:
0742:def sstate_setscene(d):
0743: shared_state = sstate_state_fromvars(d)
*** 0744: accelerate = sstate_installpkg(shared_state, d)
0745: if not accelerate:
0746: bb.fatal("No suitable staging package found")
0747:
0748:python sstate_task_prefunc () {
File: '/home/mselke/Working/xilinx-zc702-2020.1/components/yocto/layers/core/meta/classes/sstate.bbclass', lineno: 376, function: sstate_installpkg
0372: d.setVar('SSTATE_FIXMEDIR', ss['fixmedir'])
0373:
0374: for f in (d.getVar('SSTATEPREINSTFUNCS') or '').split() + ['sstate_unpack_package']:
0375: # All hooks should run in the SSTATE_INSTDIR
*** 0376: bb.build.exec_func(f, d, (sstateinst,))
0377:
0378: return sstate_installpkgdir(ss, d)
0379:
0380:def sstate_installpkgdir(ss, d):
File: '/home/mselke/Working/xilinx-zc702-2020.1/components/yocto/layers/core/bitbake/lib/bb/build.py', lineno: 250, function: exec_func
0246: with bb.utils.fileslocked(lockfiles):
0247: if ispython:
0248: exec_func_python(func, d, runfile, cwd=adir)
0249: else:
*** 0250: exec_func_shell(func, d, runfile, cwd=adir)
0251:
0252: try:
0253: curcwd = os.getcwd()
0254: except:
File: '/home/mselke/Working/xilinx-zc702-2020.1/components/yocto/layers/core/bitbake/lib/bb/build.py', lineno: 451, function: exec_func_shell
0447: with open(fifopath, 'r+b', buffering=0) as fifo:
0448: try:
0449: bb.debug(2, "Executing shell function %s" % func)
0450: with open(os.devnull, 'r+') as stdin, logfile:
*** 0451: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
0452: finally:
0453: os.unlink(fifopath)
0454:
0455: bb.debug(2, "Shell function %s finished" % func)
File: '/home/mselke/Working/xilinx-zc702-2020.1/components/yocto/layers/core/bitbake/lib/bb/process.py', lineno: 182, function: run
0178: if not stderr is None:
0179: stderr = stderr.decode("utf-8")
0180:
0181: if pipe.returncode != 0:
*** 0182: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
0183: return stdout, stderr
Exception: bb.process.ExecutionError: Execution of '/home/mselke/Working/xilinx-zc702-2020.1/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/cracklib/2.9.5-r0/temp/run.sstate_unpack_package.23040' failed with exit code 2:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
WARNING: /home/mselke/Working/xilinx-zc702-2020.1/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/cracklib/2.9.5-r0/temp/run.sstate_unpack_package.23040:1 exit 2 from 'tar -xvzf /home/mselke/Working/xilinx-zc702-2020.1/build/sstate-cache/2a/6e/sstate:cracklib:cortexa9t2hf-neon-xilinx-linux-gnueabi:2.9.5:r0:cortexa9t2hf-neon:3:2a6e383bfa091e293c97a5f1a55db55c08fad9b69f4160101980907d6363078e_package_write_rpm.tgz'


ERROR: Logfile of failure stored in: /home/mselke/Working/xilinx-zc702-2020.1/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/cracklib/2.9.5-r0/temp/log.do_package_write_rpm_setscene.23040
WARNING: Setscene task (/home/mselke/Working/xilinx-zc702-2020.1/components/yocto/layers/core/meta/recipes-extended/cracklib/cracklib_2.9.5.bb:do_package_write_rpm_setscene) failed with exit code '1' - real task will be run instead

......
ERROR: cracklib-2.9.5-r0 do_package_setscene: Error executing a python function in exec_python_func() autogenerated:

.....
ERROR: linux-libc-headers-5.2-r0 do_package_write_rpm_setscene: Error executing a python function in exec_python_func() autogenerated:

......
ERROR: linux-libc-headers-5.2-r0 do_package_setscene: Error executing a python function in exec_python_func() autogenerated:

......
ERROR: Failed to build project

 

0 Kudos
Reply
0 Replies