devtool: unset _PYTHON_SYSCONFIGDATA_NAME

问题

在 Ubuntu 20.04.1 LTS 上进行编译Yocto时报错,出现如下错误:

bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export PATH="/home/test/embeded/rockpis/yocto/poky/scripts:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot/usr/bin/crossscripts:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot-native/usr/sbin:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot-native/usr/bin:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot-native/sbin:/home/test/embeded/rockpis/yocto/poky/build/tmp/work/aarch64-poky-linux/create-ap/git-r0/recipe-sysroot-native/bin:/home/test/embeded/rockpis/yocto/poky/bitbake/bin:/home/test/embeded/rockpis/yocto/poky/build/tmp/hosttools"; export HOME="/home/test"; git -c core.fsyncobjectfiles=0 ls-remote https://github.com/oblique/create_ap.git  failed with exit code 128, output:
fatal: unable to access 'https://github.com/oblique/create_ap.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.



Summary: There were 3 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

解决方法

修改meta/classes/devtool-source.bbclass文件,如下:

 DEVTOOL_TEMPDIR ?= ""
 DEVTOOL_PATCH_SRCDIR = "${DEVTOOL_TEMPDIR}/patchworkdir"
 
# host Python fails to import correct _sysconfigdata if this variable is set
_PYTHON_SYSCONFIGDATA_NAME[unexport] = "1"
 
 python() {
     tempdir = d.getVar('DEVTOOL_TEMPDIR')

参考

Openembeded解决方法

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值