2.6 Execute Build Script 에서 빌드 에러 문의 합니다

2.6 Execute Build Script 에서 bitbake topst 에서 에러가 납니다.

로그가 길어서 끝 부분만 붙여 넣었습니다. git 아이디 elecphj@snu.ac.kr

which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH=“/home/elecphj/topst/yocto/poky/scripts:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-telechips-linux:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/sbin:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/bin:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/sbin:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/bin:/home/elecphj/topst/yocto/poky/bitbake/bin:/home/elecphj/topst/build-main/tmp/hosttools”; export HOME=“/home/elecphj”; git -c core.fsyncobjectfiles=0 ls-remote “ssh://gitlab.com/topst.ai/bsp/u-boot.git” failed with exit code 128, output:
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

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

안녕하세요. 해당 문의에 답변 드립니다.

해당 문제는 컴퓨터 환경이 gitlab과 붙은 적이 없어 발생하는 상황입니다.

ssh git@gitlab.com

실행 후 gitlab과 연결하고 진행 부탁 드립니다.

감사합니다.

같은 에러가 반복 되는데 혹시 다른 방법이 있을까요?
ssh git@gitlab.com 의 실행 결과 입니다.

elecphj@DESKTOP-7GNHDPG:~$ ssh git@gitlab.com
The authenticity of host ‘gitlab.com (172.65.251.78)’ can’t be established.
ED25519 key fingerprint is SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added ‘gitlab.com’ (ED25519) to the list of known hosts.
Enter passphrase for key ‘/home/elecphj/.ssh/id_rsa’:
PTY allocation request failed on channel 0
Welcome to GitLab, @elecphj!
Connection to gitlab.com closed.

git clone ssh://gitlab.com/topst.ai/bsp/u-boot.git

위 명령어를 쳐보신 뒤, 해당 주소에 git clone이 되는지 확인 부탁 드립니다.
진행이 된다면 다시 빌드 부탁 드립니다.

감사합니다.

elecphj@DESKTOP-7GNHDPG:~/topst$ git clone ssh://gitlab.com/topst.ai/bsp/u-boot.git
Cloning into ‘u-boot’…
Enter passphrase for key ‘/home/elecphj/.ssh/id_rsa’:
remote: Enumerating objects: 17972, done.
remote: Counting objects: 100% (17972/17972), done.
remote: Compressing objects: 100% (14631/14631), done.
remote: Total 17972 (delta 3011), reused 17972 (delta 3011), pack-reused 0 (from 0)
Receiving objects: 100% (17972/17972), 22.56 MiB | 6.03 MiB/s, done.
Resolving deltas: 100% (3011/3011), done.

clone 은 이상 없는 것 같습니다. bitbake topst 는 에러가 납니다.

안녕하세요.

~/.ssh/ 하위에 known_hosts가 생겨야합니다.
해당 파일은 ssh gitlab.com을 하면 생성이 됩니다.
ssh gitlab.com 후 터미널을 다시 열고 빌드 부탁 드립니다.
(gitlab ssh키 등록 및 ~/.ssh/config 설정 하셨는지도 궁금합니다)
에러가 계속 발생한다면 에러 로그 부탁 드립니다.

감사합니다.

elecphj@DESKTOP-7GNHDPG:~$ git clone ssh://gitlab.com/topst.ai/bsp/u-boot.git
Cloning into ‘u-boot’…
Enter passphrase for key ‘/home/elecphj/.ssh/id_rsa’:
remote: Enumerating objects: 17972, done.
remote: Counting objects: 100% (17972/17972), done.
remote: Compressing objects: 100% (14631/14631), done.
remote: Total 17972 (delta 3011), reused 17972 (delta 3011), pack-reused 0 (from 0)
Receiving objects: 100% (17972/17972), 22.56 MiB | 3.69 MiB/s, done.
Resolving deltas: 100% (3011/3011), done.
elecphj@DESKTOP-7GNHDPG:~$ ls .ssh
config id_rsa id_rsa.pub known_hosts
elecphj@DESKTOP-7GNHDPG:~$ ls -al .ssh
total 24
drwxrwxrwx 2 root root 4096 Jul 29 22:59 .
drwxr-x— 10 elecphj elecphj 4096 Jul 30 13:04 …
-rw-r–r-- 1 elecphj elecphj 60 Jul 29 15:50 config
-rw------- 1 elecphj elecphj 2655 Jul 29 22:40 id_rsa
-rw-r–r-- 1 elecphj elecphj 577 Jul 29 22:40 id_rsa.pub
-rw-r–r-- 1 elecphj root 948 Jul 29 22:49 known_hosts

elecphj@DESKTOP-7GNHDPG:~/topst/build-main$ bitbake topst
Loading cache: 100% |####################################################################################| Time: 0:00:00
Loaded 587 entries from dependency cache.
WARNING: /home/elecphj/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb: Exception during build_dependencies for do_configure
WARNING: /home/elecphj/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb: Error during finalise of /home/elecphj/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb
ERROR: ExpansionError during parsing /home/elecphj/topst/yocto/meta-telechips-bsp/recipes-bsp/u-boot/u-boot-tcc.bb:00:14
Traceback (most recent call last):
File “/home/elecphj/topst/yocto/poky/bitbake/lib/bb/fetch2/git.py”, line 242, in Git.urldata_init(ud=<bb.fetch2.FetchData object at 0x7f05c98cf010>, d=<bb.data_smart.DataSmart object at 0x7f05c9d72c20>):
ud.unresolvedrev[name] = ud.revisions[name]

ud.revisions[name] = self.latest_revision(ud, d, name)

File “/home/elecphj/topst/yocto/poky/bitbake/lib/bb/fetch2/init.py”, line 1587, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7f05c98cf010>, d=<bb.data_smart.DataSmart object at 0x7f05c9d72c20>, name=‘default’):
except KeyError:

revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File “/home/elecphj/topst/yocto/poky/bitbake/lib/bb/fetch2/git.py”, line 700, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7f05c98cf010>, d=<bb.data_smart.DataSmart object at 0x7f05c9d72c20>, name=‘default’):
“”"
output = self._lsremote(ud, d, “”)

Tags of the form ^{} may not work, need to fallback to other form

File “/home/elecphj/topst/yocto/poky/bitbake/lib/bb/fetch2/git.py”, line 689, in Git._lsremote(ud=<bb.fetch2.FetchData object at 0x7f05c98cf010>, d=<bb.data_smart.DataSmart object at 0x7f05c9d72c20>, search=‘’):
bb.fetch2.check_network_access(d, cmd, repourl)

output = runfetchcmd(cmd, d, True)
if not output:
File “/home/elecphj/topst/yocto/poky/bitbake/lib/bb/fetch2/init.py”, line 889, in runfetchcmd(cmd='export PSEUDO_DISABLED=1; export PATH=“/home/elecphj/topst/yocto/poky/scripts:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-telechips-linux:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/sbin:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/bin:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/sbin:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/bin:/home/elecphj/topst/yocto/poky/bitbake/bin:/home/elecphj/topst/build-main/tmp/hosttools”; export HOME=“/home/elecphj”; git -c core.fsyncobjectfiles=0 ls-remote “ssh://gitlab.com/topst.ai/bsp/u-boot.git” ', d=<bb.data_smart.DataSmart object at 0x7f05c9d72c20>, quiet=True, cleanup=, log=None, workdir=None):

raise FetchError(error_message)

bb.data_smart.ExpansionError: Failure expanding variable do_configure, expression was base_do_configure
if [ “${@bb.utils.contains(‘DISTRO_FEATURES’, ‘ld-is-gold’, ‘ld-is-gold’, ‘’, d)}” = “ld-is-gold” ] ; then
sed -i ‘s/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g’ /home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/git/config.mk
fi

unset LDFLAGS
unset CFLAGS
unset CPPFLAGS
if [ -n “${EXTERNALSRC}” ] ; then
export KBUILD_OUTPUT=${EXTERNALSRC}/tcc8050-main/
fi
export ARCH=arm64 DEVICE_TREE=tcc8050-topst-d3-pre-v0.1
oe_runmake tcc805x_defconfig
if [ -n “${EXTERNALSRC}” ] ; then
/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/git/scripts/kconfig/merge_config.sh -O ${KBUILD_OUTPUT} -m ${KBUILD_OUTPUT}.config ${@" “.join(find_cfgs(d))}
else
/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/git/scripts/kconfig/merge_config.sh -m .config ${@” “.join(find_cfgs(d))}
fi
which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH=”/home/elecphj/topst/yocto/poky/scripts:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-telechips-linux:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/sbin:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/usr/bin:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/sbin:/home/elecphj/topst/build-main/tmp/work/tcc8050_main-telechips-linux/u-boot-tcc/1.0-r0/recipe-sysroot-native/bin:/home/elecphj/topst/yocto/poky/bitbake/bin:/home/elecphj/topst/build-main/tmp/hosttools"; export HOME=“/home/elecphj”; git -c core.fsyncobjectfiles=0 ls-remote “ssh://gitlab.com/topst.ai/bsp/u-boot.git” failed with exit code 128, output:
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

WARNING: /home/elecphj/topst/yocto/meta-telechips-bsp/recipes-kernel/linux/linux-telechips_5.4.bb: Cooker received SIGTERM, shutting down…

Summary: There were 3 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
elecphj@DESKTOP-7GNHDPG:~/topst/build-main$

vi .ssh/config

Host gitlab.com
User git
IdentityFile ~/.ssh/id_rsa

세팅은 다 된 것 같은데 위에 오류 붙여 넣었습니다. 감사 합니다.

안녕하세요.

~/DIR/build-main/conf/local.conf 파일의 제일 하단에

#Repositories
291 ALS_BRANCH = “main”
292 ALS_GIT_PROTOCOL = “ssh
293
294 TELECHIPS_AUTOMOTIVE_GIT = “git://gitlab.com/topst.ai”
295 TELECHIPS_AUTOMOTIVE_BSP_GIT = “git://gitlab.com/topst.ai/bsp”
296 TELECHIPS_AUTOMOTIVE_UTILS_GIT = “git://gitlab.com/topst.ai/utils”
297 TELECHIPS_AUTOMOTIVE_GRAPHICS_GIT = “git://gitlab.com/topst.ai/graphics”
298 TELECHIPS_AUTOMOTIVE_MULTIMEDIA_GIT = “git://gitlab.com/topst.ai/multimedia”
299 TELECHIPS_AUTOMOTIVE_APP_GIT = “git://gitlab.com/topst.ai/app”
300 TELECHIPS_AUTOMOTIVE_COMMERCIAL_GIT = “git://gitlab.com/topst.ai/commercial”

부분이 있습니다.

292번 줄의 ALS_GIT_PROTOCOL = “ssh” 부분을 ALS_GIT_PROTOCOL = "https"로 수정하고 다시 빌드 부탁 드립니다.

감사합니다.