Compile error for meta-toolchain

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Compile error for meta-toolchain

跳至解决方案
6,473 次查看
santhosh2
Contributor IV

I have recevied this below error message during the compilation of meta-toolchain, How to resolve this issue,

Command used : bitbake meta-toolchainScreenshot from 2019-02-11 11_35_08.png

WARNING: glibc-initial-2.24-r0 do_fetch: Failed to fetch URL git://sourceware.org/git/glibc.git;branch=release/2.24/master;name=glibc, attempting MIRRORS if available
ERROR: glibc-initial-2.24-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-YhiqZdZqK2"; export SSH_AUTH_SOCK="/run/user/1000/keyring-bsWeyf/ssh"; export PATH="/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin/aarch64-poky-linux.gcc-cross-initial-aarch64:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/scripts:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin/aarch64-poky-linux:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/imx8qm_iwg27m/usr/bin/crossscripts:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/sbin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/sbin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/bin:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/scripts:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"; export HOME="/home/rahul"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://sourceware.org/git/glibc.git /home/rahul/Desktop/iwg27-release-bsp/downloads//git2/sourceware.org.git.glibc.git --progress failed with exit code 141, output:
Cloning into bare repository '/home/rahul/Desktop/iwg27-release-bsp/downloads//git2/sourceware.org.git.glibc.git'...
remote: Counting objects: 539847, done.
remote: Compressing objects: 100% (79493/79493), done.
fatal: pack has bad object at offset 157096733: inflate returned -5
fatal: index-pack failed

ERROR: glibc-initial-2.24-r0 do_fetch: Fetcher failure for URL: 'git://sourceware.org/git/glibc.git;branch=release/2.24/master;name=glibc'. Unable to fetch URL from any source.
ERROR: glibc-initial-2.24-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/work/aarch64-poky-linux/glibc-initial/2.24-r0/temp/log.do_fetch.4337
ERROR: Task (/home/rahul/Desktop/iwg27-release-bsp/sources/poky/meta/recipes-core/glibc/glibc-initial_2.24.bb:do_fetch) failed with exit code '1'
WARNING: binutils-crosssdk-x86_64-pokysdk-linux-2.27-r0 do_fetch: Failed to fetch URL git://sourceware.org/git/binutils-gdb.git;branch=binutils-2_27-branch;protocol=git, attempting MIRRORS if available
ERROR: binutils-crosssdk-x86_64-pokysdk-linux-2.27-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-YhiqZdZqK2"; export SSH_AUTH_SOCK="/run/user/1000/keyring-bsWeyf/ssh"; export PATH="/home/rahul/Desktop/iwg27-release-bsp/sources/poky/scripts:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin/x86_64-pokysdk-linux:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin/x86_64-pokysdk-linux/crossscripts:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/sbin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/sbin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/bin:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/scripts:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"; export HOME="/home/rahul"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://sourceware.org/git/binutils-gdb.git /home/rahul/Desktop/iwg27-release-bsp/downloads//git2/sourceware.org.git.binutils-gdb.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/rahul/Desktop/iwg27-release-bsp/downloads//git2/sourceware.org.git.binutils-gdb.git'...
remote: Counting objects: 997333, done.
remote: Compressing objects: 100% (154976/154976), done.
error: inflate: data stream error (incorrect data check)8.00 KiB/s
fatal: pack has bad object at offset 236777280: inflate returned -3
fatal: index-pack failed

ERROR: binutils-crosssdk-x86_64-pokysdk-linux-2.27-r0 do_fetch: Fetcher failure for URL: 'git://sourceware.org/git/binutils-gdb.git;branch=binutils-2_27-branch;protocol=git'. Unable to fetch URL from any source.
ERROR: binutils-crosssdk-x86_64-pokysdk-linux-2.27-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/work/x86_64-linux/binutils-crosssdk-x86_64-pokysdk-linux/2.27-r0/temp/log.do_fetch.21236
ERROR: Task (/home/rahul/Desktop/iwg27-release-bsp/sources/poky/meta/recipes-devtools/binutils/binutils-crosssdk_2.27.bb:do_fetch) failed with exit code '1'
WARNING: nativesdk-glibc-initial-2.24-r0 do_fetch: Failed to fetch URL git://sourceware.org/git/glibc.git;branch=release/2.24/master;name=glibc, attempting MIRRORS if available
ERROR: nativesdk-glibc-initial-2.24-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-YhiqZdZqK2"; export SSH_AUTH_SOCK="/run/user/1000/keyring-bsWeyf/ssh"; export PATH="/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin/x86_64-pokysdk-linux.gcc-crosssdk-initial-x86_64-pokysdk-linux:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin/chrpath-native:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/scripts:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin/x86_64-pokysdk-linux:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/fsl-imx-x11/4.9.51-mx8-beta/sysroots/x86_64-pokysdk-linux/usr/bin/crossscripts:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/sbin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/sbin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/bin:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/scripts:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"; export HOME="/home/rahul"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://sourceware.org/git/glibc.git /home/rahul/Desktop/iwg27-release-bsp/downloads//git2/sourceware.org.git.glibc.git --progress failed with exit code 141, output:
Cloning into bare repository '/home/rahul/Desktop/iwg27-release-bsp/downloads//git2/sourceware.org.git.glibc.git'...
remote: Counting objects: 539847, done.
remote: Compressing objects: 100% (79493/79493), done.
fatal: pack has bad object at offset 24046723: inflate returned -5
fatal: index-pack failed

ERROR: nativesdk-glibc-initial-2.24-r0 do_fetch: Fetcher failure for URL: 'git://sourceware.org/git/glibc.git;branch=release/2.24/master;name=glibc'. Unable to fetch URL from any source.
ERROR: nativesdk-glibc-initial-2.24-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-glibc-initial/2.24-r0/temp/log.do_fetch.9757
ERROR: Task (virtual:nativesdk:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/meta/recipes-core/glibc/glibc-initial_2.24.bb:do_fetch) failed with exit code '1'
WARNING: binutils-cross-aarch64-2.27-r0 do_fetch: Failed to fetch URL git://sourceware.org/git/binutils-gdb.git;branch=binutils-2_27-branch;protocol=git, attempting MIRRORS if available
ERROR: binutils-cross-aarch64-2.27-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-YhiqZdZqK2"; export SSH_AUTH_SOCK="/run/user/1000/keyring-bsWeyf/ssh"; export PATH="/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin/texinfo-dummy-native:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/scripts:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin/aarch64-poky-linux:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin/aarch64-poky-linux/crossscripts:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/sbin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/usr/bin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/sbin:/home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/sysroots/x86_64-linux/bin:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/scripts:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"; export HOME="/home/rahul"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://sourceware.org/git/binutils-gdb.git /home/rahul/Desktop/iwg27-release-bsp/downloads//git2/sourceware.org.git.binutils-gdb.git --progress failed with exit code 141, output:
Cloning into bare repository '/home/rahul/Desktop/iwg27-release-bsp/downloads//git2/sourceware.org.git.binutils-gdb.git'...
remote: Counting objects: 997333, done.
remote: Compressing objects: 100% (154976/154976), done.
error: inflate: data stream error (incorrect data check).00 KiB/s
fatal: pack has bad object at offset 102199816: inflate returned -3
fatal: index-pack failed

ERROR: binutils-cross-aarch64-2.27-r0 do_fetch: Fetcher failure for URL: 'git://sourceware.org/git/binutils-gdb.git;branch=binutils-2_27-branch;protocol=git'. Unable to fetch URL from any source.
ERROR: binutils-cross-aarch64-2.27-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/rahul/Desktop/iwg27-release-bsp/build_imx8qm/tmp/work/x86_64-linux/binutils-cross-aarch64/2.27-r0/temp/log.do_fetch.21234
ERROR: Task (/home/rahul/Desktop/iwg27-release-bsp/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.27.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 184 tasks of which 147 didn't need to be rerun and 4 failed.

Summary: 4 tasks failed:
/home/rahul/Desktop/iwg27-release-bsp/sources/poky/meta/recipes-core/glibc/glibc-initial_2.24.bb:do_fetch
/home/rahul/Desktop/iwg27-release-bsp/sources/poky/meta/recipes-devtools/binutils/binutils-crosssdk_2.27.bb:do_fetch
virtual:nativesdk:/home/rahul/Desktop/iwg27-release-bsp/sources/poky/meta/recipes-core/glibc/glibc-initial_2.24.bb:do_fetch
/home/rahul/Desktop/iwg27-release-bsp/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.27.bb:do_fetch
Summary: There were 4 WARNING messages shown.
Summary: There were 12 ERROR messages shown, returning a non-zero exit code.

标签 (1)
0 项奖励
回复
1 解答
5,796 次查看
radhikasomaiya
Senior Contributor II

Hi Santhosh Kumar,

Are you running behind any proxy server? If this the case then make sure that this URL is not getting blocked in your firewall as I am able to clone the repo successfully (link given in above snap).

$git clone git://sourceware.org/git/glibc.git - This is successfully cloned on my machine.

Regards,

Radhika Soamiya

在原帖中查看解决方案

5 回复数
5,796 次查看
chiragh
Contributor I

Hi,

I too am facing the same issue. Were you able to figure out the solution?

I tried cloning directly and that worked so I'm assuming its not my internet connection.

0 项奖励
回复
5,796 次查看
santhosh2
Contributor IV

hi,

its nothing related to internet connection.. its related to permission, some file are unable to overwrite so you will get this issue,

just do sudo chmod -R 777 * to the entire build folder (it will take roughly 2 hrs to do this task due to yocto size) and then compile again

regards

santhosh

0 项奖励
回复
5,796 次查看
samyukthas
Contributor I

Hi,

Even am facing the same issue. Kindly let me know how it was resolved.

Regards,

Samyuktha

0 项奖励
回复
5,796 次查看
radhikasomaiya
Senior Contributor II

Hi Samyuktha S,

It looks like network issue as you are not able to fetch a url "git://sourceware.org/git/binutils-gdb.git". Are you able to clone this separately on your machine?

$git clone git://sourceware.org/git/binutils-gdb.git

If it fails, then I would recommend you to consult your network administrator.

Hope it will help you!

Regards,

Radhika Somaiya

0 项奖励
回复
5,797 次查看
radhikasomaiya
Senior Contributor II

Hi Santhosh Kumar,

Are you running behind any proxy server? If this the case then make sure that this URL is not getting blocked in your firewall as I am able to clone the repo successfully (link given in above snap).

$git clone git://sourceware.org/git/glibc.git - This is successfully cloned on my machine.

Regards,

Radhika Soamiya