因此,我能够建立 Poky Honister 并使其正常运行一段时间,但出于各种原因我想搬到柯克斯通。
我不断收到以下错误,我不知道发生了什么,我花了过去 8 个小时试图克服这些错误,但无济于事。
有任何想法吗?
我已阅读以下网址
https://low-level.wiki/yocto/kirkstone-upgrade.html
这个问题似乎不在那个网站上,所以我很困惑。
我将尝试再次拉下整个项目,以防万一我可能在某处拉下错误的分支
WARNING: pseudo-native-1.9.0+gitAUTOINC+2b4b88eb51-r0 do_fetch: Failed to fetch URL git://git.yoctoproject.org/pseudo;branch=oe-core, attempting MIRRORS if available
WARNING: gnu-config-native-20211108+gitAUTOINC+191bcb948f-r0 do_fetch: Failed to fetch URL git://git.savannah.gnu.org/git/config.git;protocol=https;branch=master, attempting MIRRORS if available
WARNING: pkgconfig-native-0.29.2+gitAUTOINC+d97db4fae4-r0 do_fetch: Failed to fetch URL git://gitlab.freedesktop.org/pkg-config/pkg-config.git;branch=master;protocol=https, attempting MIRRORS if available
ERROR: binutils-cross-aarch64-2.38-r0 do_unpack: Bitbake Fetcher Error: FetchError('Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1871"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/justin/poky-kirkstone/scripts/cross-intercept:/home/justin/kirkstone-build/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/justin/poky-kirkstone/scripts:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/crossscripts:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/usr/sbin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/usr/bin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/sbin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/bin:/home/justin/poky-kirkstone/bitbake/bin:/home/justin/kirkstone-build/build/tmp/hosttools"; export HOME="/home/justin"; git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat remote set-url origin git://sourceware.org/git/binutils-gdb.git failed with exit code 1, output:\nTraceback (most recent call last):\n File "/home/justin/kirkstone-build/build/tmp/hosttools/git", line 26, in <module>\n os.execv(real_git, sys.argv)\nTypeError: execv: path should be string, bytes or os.PathLike, not NoneType\n', None)
ERROR: Logfile of failure stored in: /home/justin/kirkstone-build/build/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/temp/log.do_unpack.4409
ERROR: Task (/home/justin/poky-kirkstone/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_unpack) failed with exit code '1'
ERROR: gnu-config-native-20211108+gitAUTOINC+191bcb948f-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1871"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/justin/poky-kirkstone/scripts/native-intercept:/home/justin/kirkstone-build/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/justin/poky-kirkstone/scripts:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/gnu-config-native/20211108+gitAUTOINC+191bcb948f-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/gnu-config-native/20211108+gitAUTOINC+191bcb948f-r0/recipe-sysroot-native/usr/bin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/gnu-config-native/20211108+gitAUTOINC+191bcb948f-r0/recipe-sysroot-native/usr/sbin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/gnu-config-native/20211108+gitAUTOINC+191bcb948f-r0/recipe-sysroot-native/usr/bin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/gnu-config-native/20211108+gitAUTOINC+191bcb948f-r0/recipe-sysroot-native/sbin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/gnu-config-native/20211108+gitAUTOINC+191bcb948f-r0/recipe-sysroot-native/bin:/home/justin/poky-kirkstone/bitbake/bin:/home/justin/kirkstone-build/build/tmp/hosttools"; export HOME="/home/justin"; git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat remote failed with exit code 1, output:
Traceback (most recent call last):
File "/home/justin/kirkstone-build/build/tmp/hosttools/git", line 26, in <module>
os.execv(real_git, sys.argv)
TypeError: execv: path should be string, bytes or os.PathLike, not NoneType
ERROR: gnu-config-native-20211108+gitAUTOINC+191bcb948f-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://git.savannah.gnu.org/git/config.git;protocol=https;branch=master')
ERROR: Logfile of failure stored in: /home/justin/kirkstone-build/build/tmp/work/x86_64-linux/gnu-config-native/20211108+gitAUTOINC+191bcb948f-r0/temp/log.do_fetch.4406
ERROR: Task (virtual:native:/home/justin/poky-kirkstone/meta/recipes-devtools/gnu-config/gnu-config_git.bb:do_fetch) failed with exit code '1'
ERROR: pkgconfig-native-0.29.2+gitAUTOINC+d97db4fae4-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1871"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/justin/poky-kirkstone/scripts/native-intercept:/home/justin/kirkstone-build/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/justin/poky-kirkstone/scripts:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+d97db4fae4-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+d97db4fae4-r0/recipe-sysroot-native/usr/bin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+d97db4fae4-r0/recipe-sysroot-native/usr/sbin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+d97db4fae4-r0/recipe-sysroot-native/usr/bin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+d97db4fae4-r0/recipe-sysroot-native/sbin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+d97db4fae4-r0/recipe-sysroot-native/bin:/home/justin/poky-kirkstone/bitbake/bin:/home/justin/kirkstone-build/build/tmp/hosttools"; export HOME="/home/justin"; git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat remote failed with exit code 1, output:
Traceback (most recent call last):
File "/home/justin/kirkstone-build/build/tmp/hosttools/git", line 26, in <module>
os.execv(real_git, sys.argv)
TypeError: execv: path should be string, bytes or os.PathLike, not NoneType
ERROR: pkgconfig-native-0.29.2+gitAUTOINC+d97db4fae4-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://gitlab.freedesktop.org/pkg-config/pkg-config.git;branch=master;protocol=https')
ERROR: Logfile of failure stored in: /home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+d97db4fae4-r0/temp/log.do_fetch.4407
ERROR: Task (virtual:native:/home/justin/poky-kirkstone/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_fetch) failed with exit code '1'
ERROR: pseudo-native-1.9.0+gitAUTOINC+2b4b88eb51-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1871"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/justin/poky-kirkstone/scripts/native-intercept:/home/justin/kirkstone-build/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/justin/poky-kirkstone/scripts:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pseudo-native/1.9.0+gitAUTOINC+2b4b88eb51-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pseudo-native/1.9.0+gitAUTOINC+2b4b88eb51-r0/recipe-sysroot-native/usr/bin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pseudo-native/1.9.0+gitAUTOINC+2b4b88eb51-r0/recipe-sysroot-native/usr/sbin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pseudo-native/1.9.0+gitAUTOINC+2b4b88eb51-r0/recipe-sysroot-native/usr/bin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pseudo-native/1.9.0+gitAUTOINC+2b4b88eb51-r0/recipe-sysroot-native/sbin:/home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pseudo-native/1.9.0+gitAUTOINC+2b4b88eb51-r0/recipe-sysroot-native/bin:/home/justin/poky-kirkstone/bitbake/bin:/home/justin/kirkstone-build/build/tmp/hosttools"; export HOME="/home/justin"; LANG=C git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat clone --bare --mirror git://git.yoctoproject.org/pseudo /home/justin/kirkstone-build/build/downloads/git2/git.yoctoproject.org.pseudo --progress failed with exit code 1, no output
ERROR: pseudo-native-1.9.0+gitAUTOINC+2b4b88eb51-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://git.yoctoproject.org/pseudo;branch=oe-core')
ERROR: Logfile of failure stored in: /home/justin/kirkstone-build/build/tmp/work/x86_64-linux/pseudo-native/1.9.0+gitAUTOINC+2b4b88eb51-r0/temp/log.do_fetch.4408
ERROR: Task (virtual:native:/home/justin/poky-kirkstone/meta/recipes-devtools/pseudo/pseudo_git.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 74 tasks of which 70 didn't need to be rerun and 4 failed.
Summary: 4 tasks failed:
/home/justin/poky-kirkstone/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_unpack
virtual:native:/home/justin/poky-kirkstone/meta/recipes-devtools/gnu-config/gnu-config_git.bb:do_fetch
virtual:native:/home/justin/poky-kirkstone/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_fetch
virtual:native:/home/justin/poky-kirkstone/meta/recipes-devtools/pseudo/pseudo_git.bb:do_fetch
Summary: There were 55 WARNING messages.
Summary: There were 7 ERROR messages, returning a non-zero exit code.
答案1
我不确定这个问题的原因是什么,但我返回并使用了与之前使用的完全相同的层/配置文件,并且简单地拉下了我新使用的所有层,以确保分支设置为 kirkstone。
这一次,当我去运行 bitbake 时,它工作得很好并且当前正在运行。
因此,如果您看到这些错误,请像我一样尝试重新开始。我猜想在某个时候我可能会拉下一个过时的分支。
如果 bitbake 过程再次失败,我将发布后续内容,但目前我非常乐观它会成功。
答案2
万一有人像我一样偶然发现这个问题:我在不同的 Yocto 版本中遇到了相同的错误消息。就我而言,删除build/tmp
文件夹修复了它。
我注意到myYoctoDir1/build/tmp/hosttools/git
引发错误的脚本是指向不同 Yocto 基本目录(即 )的符号链接- 因此我假设在在此目录( )中开始我的第一次构建之前,myYoctoDir2/layers/poky/scripts/git
我在另一个目录( )中获取了 Yocto 环境,其中创建文件夹。myYoctoDir2
myYoctoDir1
tmp