ubuntu 12.04 yocto 最近出现的编译问题

编程知识 更新时间:2023-05-01 23:52:03

编译平台:ubuntu 12.04

root用户编译出现一个root问题

error1:

ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Do not use Bitbake as root.

解决方法:

注释掉yocto-bsp/sources/poky/meta/classes/sanity.bbclass文件里以下几句

    #if 0 == os.getuid():
    #    raise_sanity_error("Do not use Bitbake as root.", d)

error2:

ERROR: gnu-config-native-20150728+gitAUTOINC+b576fa87c1-r0 do_unpack: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:

fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead.

ERROR: Logfile of failure stored in: /home/leo/work/imx6/genivi-imx6/build-genivi/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/temp/log.do_unpack.3948


解决办法:

    1. 更新git

     2. 修改sources/poky/bitbake/lib/bb/fetch2/git.py

                #runfetchcmd("%s branch --set-upstream %s origin/%s" % (ud.basecmd, branchname, \

                #            branchname), d)

                to

                runfetchcmd("%s branch --set-upstream-to origin/%s" % (ud.basecmd, \
                            branchname), d)

     

更多推荐

ubuntu 12.04 yocto 最近出现的编译问题

本文发布于:2023-04-24 15:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/f902f602914ba0606ff15e8304257745.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ubuntu   yocto

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 100920文章数
  • 26078阅读数
  • 0评论数