build failed for imx8 nano using yocto

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

build failed for imx8 nano using yocto

1,111 Views
Mahesh27
Contributor I

hi ,

 

i am trying to build the sources for i.MX8 nano facing the below issue.

 

Screenshot from 2021-04-01 15-16-21.png

 

 

OTE: Setscene tasks completed
WARNING: libarchive-native-3.4.0-r0 do_fetch: Failed to fetch URL http://libarchive.org/downloads/libarchive-3.4.0.tar.gz, attempting MIRRORS if available
ERROR: libarchive-native-3.4.0-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1001/bus"; export SSH_AGENT_PID="1557"; export SSH_AUTH_SOCK="/run/user/1001/keyring/ssh"; export PATH="/home/edttesting/nxp/i.MX8/imx-yocto-bsp/sources/poky/scripts/native-intercept:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/sources/poky/scripts:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/build/tmp/work/x86_64-linux/libarchive-native/3.4.0-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/build/tmp/work/x86_64-linux/libarchive-native/3.4.0-r0/recipe-sysroot-native/usr/bin:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/build/tmp/work/x86_64-linux/libarchive-native/3.4.0-r0/recipe-sysroot-native/usr/sbin:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/build/tmp/work/x86_64-linux/libarchive-native/3.4.0-r0/recipe-sysroot-native/usr/bin:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/build/tmp/work/x86_64-linux/libarchive-native/3.4.0-r0/recipe-sysroot-native/sbin:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/build/tmp/work/x86_64-linux/libarchive-native/3.4.0-r0/recipe-sysroot-native/bin:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/sources/poky/bitbake/bin:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/build/tmp/hosttools"; export HOME="/home/edttesting"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -P /home/edttesting/nxp/i.MX8/imx-yocto-bsp/downloads/ 'http://libarchive.org/downloads/libarchive-3.4.0.tar.gz' --progress=dot -v failed with exit code 4, output:
--2021-04-01 10:32:56-- http://libarchive.org/downloads/libarchive-3.4.0.tar.gz
Resolving libarchive.org (libarchive.org)... 13.227.166.74, 13.227.166.89, 13.227.166.116, ...
Connecting to libarchive.org (libarchive.org)|13.227.166.74|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.

--2021-04-01 10:33:27-- (try: 2) http://libarchive.org/downloads/libarchive-3.4.0.tar.gz
Connecting to libarchive.org (libarchive.org)|13.227.166.74|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Giving up.


ERROR: libarchive-native-3.4.0-r0 do_fetch: Fetcher failure for URL: 'http://libarchive.org/downloads/libarchive-3.4.0.tar.gz'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/edttesting/nxp/i.MX8/imx-yocto-bsp/build/tmp/work/x86_64-linux/libarchive-native/3.4.0-r0/temp/log.do_fetch.418975
ERROR: Task (virtual:native:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/sources/poky/meta/recipes-extended/libarchive/libarchive_3.4.0.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 788 tasks of which 506 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
virtual:native:/home/edttesting/nxp/i.MX8/imx-yocto-bsp/sources/poky/meta/recipes-extended/libarchive/libarchive_3.4.0.bb:do_fetch
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

 

 

Thank you,

Y Mahesh.

0 Kudos
3 Replies

1,104 Views
nxf63675
NXP TechSupport
NXP TechSupport

Hi Mahesh27,

 

Which BSP version are you using? And could you share the steps that you are following to compile?

 

Regards,

Israel.

0 Kudos

1,102 Views
Mahesh27
Contributor I

Hi Israel,

thanks for responding.

please find the below steps.

$ mkdir imx-yocto-bsp

$ cd imx-yocto-bsp

$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m imx-5.4.47-2.2.0.xml  

$ repo sync

$ DISTRO=fsl-imx-xwayland MACHINE=imx8mnevk source imx-setup-release.sh -b build  

$ bitbake imx-image-full

 

Thank you,

Y Mahesh.

0 Kudos

1,087 Views
nxf63675
NXP TechSupport
NXP TechSupport

Hi Mahesh27,

 

I tried to replicate the error that you have without success, sometimes this kind of error happens when the data can't be retrieved from the source, so usually rebuilding the image again it works, also try to update the programs too, just to be sure that we do not have issues with that.

 

Regards,

Israel.

0 Kudos