Kirkstone에서 bitbake 실행 문제

Kirkstone에서 bitbake 실행 문제

그래서 한동안 Poky Honister를 가동할 수 있었지만 여러 가지 이유로 Kirkstone으로 옮기고 싶었습니다.

다음 오류가 계속 발생하고 무슨 일이 일어나고 있는지 전혀 알 수 없으며 지난 8시간 동안 이러한 오류를 극복하려고 노력했지만 소용이 없었습니다.

어떤 아이디어가 있나요?

다음 URL을 읽었습니다.

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

이 문제의 원인이 무엇인지는 잘 모르겠지만 이전에 사용했던 것과 똑같은 레이어/구성 파일을 사용하고 새로 사용한 모든 레이어를 끌어내려 브랜치가 다음으로 설정되었는지 확인했습니다. 커크스톤.

이번에 bitbake를 실행해 보니 잘 작동되고 현재 실행중입니다.

따라서 저처럼 이러한 오류가 표시되면 다시 시작해 보세요. 언젠가는 쓸모없는 가지를 없앨 수도 있을 것 같아요.

bitbake 프로세스가 다시 실패하면 후속 조치를 게시할 예정이지만 현재로서는 성공할 것이라고 매우 낙관하고 있습니다.

답변2

누군가가 저처럼 이 문제를 우연히 발견한 경우: 다른 Yocto 버전에서도 동일한 오류 메시지가 나타났습니다. 제 경우에는 build/tmp폴더를 삭제하면 해결되었습니다.

나는 myYoctoDir1/build/tmp/hosttools/git오류를 발생시킨 스크립트가 다른 Yocto 기본 디렉토리(예: )에 대한 심볼릭 링크라는 것을 알았습니다. 따라서 이 디렉토리( )에서 첫 번째 빌드를 시작하기 전에 myYoctoDir2/layers/poky/scripts/git다른 디렉토리( ) 환경에서 Yocto를 가져왔다고 가정합니다. 폴더가 생성됩니다.myYoctoDir2myYoctoDir1tmp

관련 정보