Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
错误:YoctoProject-核心映像sato:do_填充_sdk_Yocto - Fatal编程技术网

错误:YoctoProject-核心映像sato:do_填充_sdk

错误:YoctoProject-核心映像sato:do_填充_sdk,yocto,Yocto,我是Yocto项目的初学者。我正在尝试使用命令行为Beaglebone Black Board构建映像:bitbake核心映像sato-c populate_sdk。在上一个任务中,我犯了一个错误(详情如下) 环境构建:Ubuntu 16.04 LTS,使用Bash Shell而不是Dash Shell。 我多次尝试重新构建,但都出现了相同的错误。你能帮我纠正这个错误吗 在日志文件中: NOTE: Executing create_sdk_files ... DEBUG: Executing s

我是Yocto项目的初学者。我正在尝试使用命令行为Beaglebone Black Board构建映像:bitbake核心映像sato-c populate_sdk。在上一个任务中,我犯了一个错误(详情如下)

环境构建:Ubuntu 16.04 LTS,使用Bash Shell而不是Dash Shell。 我多次尝试重新构建,但都出现了相同的错误。你能帮我纠正这个错误吗

在日志文件中:

NOTE: Executing create_sdk_files ...
DEBUG: Executing shell function create_sdk_files
DEBUG: Shell function create_sdk_files finished
NOTE: Executing check_sdk_sysroots ...
DEBUG: Executing python function check_sdk_sysroots
DEBUG: Python function check_sdk_sysroots finished
NOTE: Executing archive_sdk ...
DEBUG: Executing shell function archive_sdk
/home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/run.archive_sdk.4392: line 106: 11617 Broken pipe             tar --owner=root --group=root -cf - .
     11618 Killed                  | xz -T 0 -9 > /home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/x86_64-deploy-core-image-sato-populate-sdk/poky-glibc-x86_64-core-image-sato-armv7at2hf-neon-beaglebone-toolchain-3.0.tar.xz
WARNING: /home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/run.archive_sdk.4392:1 exit 137 from 'xz -T 0 -9 > /home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/x86_64-deploy-core-image-sato-populate-sdk/poky-glibc-x86_64-core-image-sato-armv7at2hf-neon-beaglebone-toolchain-3.0.tar.xz'
ERROR: 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_sdk(d)
     0003:
File: '/home/huongnguyen/Desktop/poky/openembedded-core/meta/classes/populate_sdk_base.bbclass', lineno: 169, function: do_populate_sdk
     0165:
     0166:    populate_sdk(d)
     0167:
     0168:fakeroot python do_populate_sdk() {
 *** 0169:    populate_sdk_common(d)
     0170:}
     0171:SSTATETASKS += "do_populate_sdk"
     0172:SSTATE_SKIP_CREATION_task-populate-sdk = '1'
     0173:do_populate_sdk[cleandirs] = "${SDKDEPLOYDIR}"
File: '/home/huongnguyen/Desktop/poky/openembedded-core/meta/classes/populate_sdk_base.bbclass', lineno: 166, function: populate_sdk_common
     0162:                    manifest_type=Manifest.MANIFEST_TYPE_SDK_HOST)
     0163:    create_manifest(d, manifest_dir=d.getVar('SDK_DIR'),
     0164:                    manifest_type=Manifest.MANIFEST_TYPE_SDK_TARGET)
     0165:
 *** 0166:    populate_sdk(d)
     0167:
     0168:fakeroot python do_populate_sdk() {
     0169:    populate_sdk_common(d)
     0170:}
File: '/home/huongnguyen/Desktop/poky/openembedded-core/meta/lib/oe/sdk.py', lineno: 413, function: populate_sdk
     0409:    env_bkp = os.environ.copy()
     0410:
     0411:    img_type = d.getVar('IMAGE_PKGTYPE')
     0412:    if img_type == "rpm":
 *** 0413:        RpmSdk(d, manifest_dir).populate()
     0414:    elif img_type == "ipk":
     0415:        OpkgSdk(d, manifest_dir).populate()
     0416:    elif img_type == "deb":
     0417:        DpkgSdk(d, manifest_dir).populate()
File: '/home/huongnguyen/Desktop/poky/openembedded-core/meta/lib/oe/sdk.py', lineno: 60, function: populate
     0056:                                 self.sysconfdir, "ld.so.cache")
     0057:        self.mkdirhier(os.path.dirname(link_name))
     0058:        os.symlink("/etc/ld.so.cache", link_name)
     0059:
 *** 0060:        execute_pre_post_process(self.d, self.d.getVar('SDK_POSTPROCESS_COMMAND'))
     0061:
     0062:    def movefile(self, sourcefile, destdir):
     0063:        try:
     0064:            # FIXME: this check of movefile's return code to None should be
File: '/home/huongnguyen/Desktop/poky/openembedded-core/meta/lib/oe/utils.py', lineno: 260, function: execute_pre_post_process
     0256:    for cmd in cmds.strip().split(';'):
     0257:        cmd = cmd.strip()
     0258:        if cmd != '':
     0259:            bb.note("Executing %s ..." % cmd)
 *** 0260:            bb.build.exec_func(cmd, d)
     0261:
     0262:# For each item in items, call the function 'target' with item as the first
     0263:# argument, extraargs as the other arguments and handle any exceptions in the
     0264:# parent thread
File: '/home/huongnguyen/Desktop/poky/bitbake/lib/bb/build.py', lineno: 249, function: exec_func
     0245:    with bb.utils.fileslocked(lockfiles):
     0246:        if ispython:
     0247:            exec_func_python(func, d, runfile, cwd=adir)
     0248:        else:
 *** 0249:            exec_func_shell(func, d, runfile, cwd=adir)
     0250:
     0251:    try:
     0252:        curcwd = os.getcwd()
     0253:    except:
File: '/usr/lib/python3.5/contextlib.py', lineno: 77, function: __exit__
     0073:                # Need to force instantiation so we can reliably
     0074:                # tell if we get the same exception back
     0075:                value = type()
     0076:            try:
 *** 0077:                self.gen.throw(type, value, traceback)
     0078:                raise RuntimeError("generator didn't stop after throw()")
     0079:            except StopIteration as exc:
     0080:                # Suppress StopIteration *unless* it's the same exception that
     0081:                # was passed to throw().  This prevents a StopIteration
File: '/home/huongnguyen/Desktop/poky/bitbake/lib/bb/utils.py', lineno: 431, function: fileslocked
     0427:    if files:
     0428:        for lockfile in files:
     0429:            locks.append(bb.utils.lockfile(lockfile))
     0430:
 *** 0431:    yield
     0432:
     0433:    for lock in locks:
     0434:        bb.utils.unlockfile(lock)
     0435:
File: '/home/huongnguyen/Desktop/poky/bitbake/lib/bb/build.py', lineno: 249, function: exec_func
     0245:    with bb.utils.fileslocked(lockfiles):
     0246:        if ispython:
     0247:            exec_func_python(func, d, runfile, cwd=adir)
     0248:        else:
 *** 0249:            exec_func_shell(func, d, runfile, cwd=adir)
     0250:
     0251:    try:
     0252:        curcwd = os.getcwd()
     0253:    except:
File: '/home/huongnguyen/Desktop/poky/bitbake/lib/bb/build.py', lineno: 450, function: exec_func_shell
     0446:    with open(fifopath, 'r+b', buffering=0) as fifo:
     0447:        try:
     0448:            bb.debug(2, "Executing shell function %s" % func)
     0449:            with open(os.devnull, 'r+') as stdin, logfile:
 *** 0450:                bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
     0451:        finally:
     0452:            os.unlink(fifopath)
     0453:
     0454:    bb.debug(2, "Shell function %s finished" % func)
File: '/home/huongnguyen/Desktop/poky/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/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/run.archive_sdk.4392' failed with exit code 137:
/home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/run.archive_sdk.4392: line 106: 11617 Broken pipe             tar --owner=root --group=root -cf - .
     11618 Killed                  | xz -T 0 -9 > /home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/x86_64-deploy-core-image-sato-populate-sdk/poky-glibc-x86_64-core-image-sato-armv7at2hf-neon-beaglebone-toolchain-3.0.tar.xz
WARNING: /home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/run.archive_sdk.4392:1 exit 137 from 'xz -T 0 -9 > /home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/x86_64-deploy-core-image-sato-populate-sdk/poky-glibc-x86_64-core-image-sato-armv7at2hf-neon-beaglebone-toolchain-3.0.tar.xz'


ERROR: Logfile of failure stored in: /home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/log.do_populate_sdk.4392
ERROR: Task (/home/huongnguyen/Desktop/poky/openembedded-core/meta/recipes-sato/images/core-image-sato.bb:do_populate_sdk) failed with exit code '1'

注意:正在执行创建sdk\u文件。。。
调试:执行shell函数创建\u sdk\u文件
调试:Shell函数创建_sdk_文件完成
注意:正在执行check_sdk_sysroot。。。
调试:执行python函数检查\u sdk\u系统根
调试:Python函数检查\u sdk\u系统根已完成
注意:正在执行archive_sdk。。。
调试:执行shell函数存档\u sdk
/home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/run.archive_sdk.4392:line 106:11617断管tar——所有者=根——组=根——cf-。
11618杀死| xz-T 0-9>/home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/x86|64-deploy-core-image-sato-populate-sdk/poky-glibc-x86|64-core-image-sato-armv7at2hf-neon-beaglebone-toolchain-3.0.tar.xz
警告:/home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/run.archive_sdk.4392:1从'xz-t0-9'退出137>/home/huongnguyen/Desktop/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/x86_64-deploy-core-image-sato-populate-sdk/poky-glibc-x86_64-core-image-sato-armv7at2hf-neon-beaglebone-toolchain-3.0.tar.xz'
错误:在自动生成的exec_python_func()中执行python函数时出错:
导致此异常/失败的python调用的堆栈跟踪为:
文件:“exec_python_func()自动生成”,行号:2,函数:
0001:
***0002:do_填充_sdk(d)
0003:
文件:'/home/huongnguyen/Desktop/poky/openembedded core/meta/classes/populate_sdk_base.bbclass',行号:169,函数:do_populated_sdk
0165:
0166:填充sdk(d)
0167:
0168:fakeroot python do_populate_sdk(){
***0169:填充\u sdk\u公共(d)
0170:}
0171:SSTATETASKS+=“是否填充sdk”
0172:SSTATE\u SKIP\u CREATION\u task-populate-sdk='1'
0173:do_populate_sdk[cleandirs]=“${SDKDEPLOYDIR}”
文件:'/home/huongnguyen/Desktop/poky/openembedded core/meta/classes/populate_sdk_base.bbclass',行号:166,函数:populate_sdk_common
0162:manifest\U type=manifest.manifest\U type\U SDK\U HOST)
0163:创建清单(d,manifest\u dir=d.getVar('SDK\u dir'),
0164:manifest\u type=manifest.manifest\u type\u SDK\u TARGET)
0165:
***0166:填充sdk(d)
0167:
0168:fakeroot python do_populate_sdk(){
0169:填充\u sdk\u公共(d)
0170:}
文件:'/home/huongnguyen/Desktop/poky/openembedded core/meta/lib/oe/sdk.py',行号:413,函数:populate_sdk
0409:env_bkp=os.environ.copy()
0410:
0411:img_type=d.getVar('IMAGE_PKGTYPE')
0412:如果img_类型=“rpm”:
***0413:RpmSdk(d,manifest_dir).populate()
0414:elif img_类型=“ipk”:
0415:OpkgSdk(d,manifest_dir).populate()
0416:elif img_类型=“deb”:
0417:DpkgSdk(d,manifest_dir).populate()
文件:'/home/huongnguyen/Desktop/poky/openembedded core/meta/lib/oe/sdk.py',行号:60,函数:填充
0056:self.sysconfdir,“ld.so.cache”)
0057:self.mkdirhier(os.path.dirname(link_name))
0058:os.symlink(“/etc/ld.so.cache”,链接名称)
0059:
***0060:execute_pre_post_进程(self.d,self.d.getVar('SDK_POSTPROCESS_命令'))
0061:
0062:def movefile(self、sourcefile、destdir):
0063:尝试:
0064:#FIXME:movefile的返回代码检查为None应该是
文件:'/home/huongnguyen/Desktop/poky/openembedded core/meta/lib/oe/utils.py',行号:260,函数:执行前处理后处理
0256:对于cmds.strip()中的cmd.split(“;”):
0257:cmd=cmd.strip()
0258:如果cmd!='':
0259:bb.注意(“正在执行%s…”%cmd)
***0260:bb.build.exec_func(cmd,d)
0261:
0262:#对于items中的每个item,调用函数'target',其中item为第一个
0263:#参数,extraargs作为其他参数,并处理
0264:#父线程
文件:'/home/huongnguyen/Desktop/poky/bitbake/lib/bb/build.py',行号:249,函数:exec_func
0245:使用bb.utils.fileslocked(锁定文件):
0246:如果是ispython:
0247:exec_func_python(func,d,runfile,cwd=adir)
0248:其他:
***0249:exec_func_shell(func,d,runfile,cwd=adir)
0250:
0251:尝试:
0252:curcwd=os.getcwd()
0253:除:
文件:'/usr/lib/python3.5/contextlib.py',行号:77,函数:退出__
0073:#需要强制实例化,以便我们能够可靠地
0074:#告诉我们是否恢复了相同的异常
0075:值=类型()
0076:请尝试:
***0077:self.gen.throw(类型、值、回溯)
0078:raise RUNTIMERROR(“在抛出()后生成器未停止”)
0079:除作为exc的停止迭代外:
0080:#抑制StopIteration*除非*与
0081:#已传递给throw()。这可以防止停止迭代
文件:'/home/huongnguyen/Desktop/poky/bitbake/lib/bb/utils.py',行号:431,函数:fileslocked
0427:如果文件:
0428:对于文件中的锁定文件:
0429:locks.append(bb.utils.lockfile(lockfile))
0430:
***0431:收益率
0432:
0433:对于锁定锁:
0434:bb。