Yocto平台使用bitbake编译BSP包出现问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Yocto平台使用bitbake编译BSP包出现问题

Jump to solution
2,200 Views
zkyq
Contributor I

ERROR: linux-imx-5.4-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus,guid=95c779e4749e2f54e90b600563c0088c"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export no_proxy="localhost,127.0.0.0/8,::1"; export NO_PROXY="localhost,127.0.0.0/8,::1"; export https_proxy="http://127.0.0.1:7890/"; export HTTPS_PROXY="http://127.0.0.1:7890/"; export http_proxy="http://127.0.0.1:7890/"; export HTTP_PROXY="http://127.0.0.1:7890/"; export PATH="/home/zkyq/Yocto/fsl-release-bsp/sources/poky/scripts:/home/zkyq/Yocto/fsl-release-bsp/build/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/5.4-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/zkyq/Yocto/fsl-release-bsp/build/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/5.4-r0/recipe-sysroot/usr/bin/crossscripts:/home/zkyq/Yocto/fsl-release-bsp/build/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/5.4-r0/recipe-sysroot-native/usr/sbin:/home/zkyq/Yocto/fsl-release-bsp/build/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/5.4-r0/recipe-sysroot-native/usr/bin:/home/zkyq/Yocto/fsl-release-bsp/build/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/5.4-r0/recipe-sysroot-native/sbin:/home/zkyq/Yocto/fsl-release-bsp/build/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/5.4-r0/recipe-sysroot-native/bin:/home/zkyq/Yocto/fsl-release-bsp/sources/poky/bitbake/bin:/home/zkyq/Yocto/fsl-release-bsp/build/tmp/hosttools"; export HOME="/home/zkyq"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror https://source.codeaurora.org/external/imx/linux-imx.git /home/zkyq/Yocto/fsl-release-bsp/downloads//git2/source.codeaurora.org.external.imx.linux-imx.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/zkyq/Yocto/fsl-release-bsp/downloads//git2/source.codeaurora.org.external.imx.linux-imx.git'...
remote: Enumerating objects: 11087604, done.
remote: Counting objects: 100% (45049/45049), done.
remote: Compressing objects: 100% (13730/13730), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

ERROR: linux-imx-5.4-r0 do_fetch: Fetcher failure for URL: 'git://source.codeaurora.org/external/imx/linux-imx.git;protocol=https;branch=imx_5.4.47_2.2.0'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/zkyq/Yocto/fsl-release-bsp/build/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/5.4-r0/temp/log.do_fetch.3762
ERROR: Task (/home/zkyq/Yocto/fsl-release-bsp/sources/meta-imx/meta-bsp/recipes-kernel/linux/linux-imx_5.4.bb:do_fetch) failed with exit code '1'

0 Kudos
Reply
1 Solution
2,161 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @zkyq 

The issue seems network connectivity issue for yocto task fetch. is that now still having the problem?

I also notice there is proxy settings on your host, suggest you check it.

Best regards

Harvey

View solution in original post

4 Replies
2,162 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @zkyq 

The issue seems network connectivity issue for yocto task fetch. is that now still having the problem?

I also notice there is proxy settings on your host, suggest you check it.

Best regards

Harvey

2,147 Views
zkyq
Contributor I
现在仍然存在这个问题
ERROR: Task (/home/zkyq/Yocto/Yocto-imx6ull/sources/poky/meta/recipes-devtools/binutils/binutils_2.32.bb:do_compile) failed with exit code '1'

| make[4]: Leaving directory '/home/zkyq/Yocto/Yocto-imx6ull/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/binutils/2.32.0-r0/git/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/gold'
| Makefile:1156: recipe for target 'all-recursive' failed
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory '/home/zkyq/Yocto/Yocto-imx6ull/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/binutils/2.32.0-r0/git/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/gold'
| Makefile:896: recipe for target 'all' failed
| make[2]: *** [all] Error 2
| make[2]: Leaving directory '/home/zkyq/Yocto/Yocto-imx6ull/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/binutils/2.32.0-r0/git/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/gold'
| Makefile:6044: recipe for target 'all-gold' failed
| make[1]: *** [all-gold] Error 2
| make[1]: Leaving directory '/home/zkyq/Yocto/Yocto-imx6ull/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/binutils/2.32.0-r0/git/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi'
| Makefile:849: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 1 from a shell command.
0 Kudos
Reply
2,127 Views
Harvey021
NXP TechSupport
NXP TechSupport

建议先尝试clean binutils,然后在重新编译它。如果问题还是出在bitbake task do_compile有问题的话,查看下build binutils所依赖和inheirt的那些工具和patches是否都已经编译好了。比如inherit的autotools。 具体那些你可以查看binutils.inc。

还有就是在你编译主机上所需要的Essential Yocto Project host packages是必须要的。

 

Best regards

Harvey

0 Kudos
Reply
2,103 Views
zkyq
Contributor I
好的,感谢!
0 Kudos
Reply