Bitbake do_fetch error /.git/objects: not a directory

问题描述 投票:0回答:1

我正在尝试为嵌入式系统构建一个 yocto 映像,我总是在 linux-intel-ese-lts-5.4 的 do_fletch 上出错

我尝试了一切,还完全恢复了 bitbake 擦除“tmp”、“缓存”和“下载”文件夹

错误是:

致命:无法通过“/home/marco/yocto/build/../managed/linux-intel-ese-lts-5.4/.git/objects”启动迭代器:不是目录

但是 .git 目录存在并且在正确的位置

这里调试:

`DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are []
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: []
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function do_fetch
DEBUG: Executing python function base_do_fetch
DEBUG: Trying PREMIRRORS
DEBUG: Trying Upstream
DEBUG: Running export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1053"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/usr/bin/python3-native:/home/marco/yocto/intel-embedded-system-enabling/scripts:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/usr/bin/x86_64-ese-linux:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot/usr/bin/crossscripts:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/usr/sbin:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/usr/bin:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/sbin:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/bin:/home/marco/yocto/intel-embedded-system-enabling/bitbake/bin:/home/marco/yocto/build/tmp-x86-glibc/hosttools"; export HOME="/home/marco"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror "/home/marco/yocto/build/../managed/linux-intel-ese-lts-5.4" /home/marco/yocto/build/downloads/git2/home.marco.yocto.build....managed.linux-intel-ese-lts-5.4 --progress
Cloning into bare repository '/home/marco/yocto/build/downloads/git2/home.marco.yocto.build....managed.linux-intel-ese-lts-5.4'...
fatal: failed to start iterator over '/home/marco/yocto/build/../managed/linux-intel-ese-lts-5.4/.git/objects': Not a directory
fatal: The remote end hung up unexpectedly
WARNING: Failed to fetch URL git:///home/marco/yocto/build/../managed/linux-intel-ese-lts-5.4;name=machine;branch=HEAD;nobranch=1;protocol=file;usehead=1, attempting MIRRORS if available
DEBUG: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1053"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/usr/bin/python3-native:/home/marco/yocto/intel-embedded-system-enabling/scripts:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/usr/bin/x86_64-ese-linux:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot/usr/bin/crossscripts:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/usr/sbin:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/usr/bin:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/sbin:/home/marco/yocto/build/tmp-x86-glibc/work/intel_corei7_64-ese-linux/linux-intel-ese-lts-5.4/5.4++gitAUTOINC+9e3ab4e615_f74600f861-r0/recipe-sysroot-native/bin:/home/marco/yocto/intel-embedded-system-enabling/bitbake/bin:/home/marco/yocto/build/tmp-x86-glibc/hosttools"; export HOME="/home/marco"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror "/home/marco/yocto/build/../managed/linux-intel-ese-lts-5.4" /home/marco/yocto/build/downloads/git2/home.marco.yocto.build....managed.linux-intel-ese-lts-5.4 --progress failed with exit code 128, no output
DEBUG: Trying MIRRORS`

编辑:我在 build/downloads/git2 中看到我有文件夹,但名称很奇怪:“home.marco.yocto.build ....managed.linux-intel-ese-lts-5.4”

linux-kernel embedded-linux yocto bitbake
1个回答
0
投票

We use repo to manage yocto buildareas and recently see a similar failure。我认为这与最近的 git CVE 修复有关:

https://github.com/git/git/commit/6f054f9fb3a501c35b55c65e547a244f14c38d56

repo 生成带有符号链接的 git 存储库,我认为这就是克隆失败的原因。 bitbake git fetcher 可能需要修复以使用 file:// 或 --no-local 与克隆。

© www.soinside.com 2019 - 2024. All rights reserved.