On Sun, 2020-07-19 at 23:05 -0700, Amrun Nisha.R wrote: > I want to create a offline build using yocto. > > I have sources and downloads packages directory in which i can able to create > a successful bitbake. I have transferred those files to another system and > tried to build them in offline but it is not working. During Bitbake, I got > the below error. > > ERROR: gnu-config-native-20150728+gitAUTOINC+b576fa87c1-r0 do_unpack: Fetcher > failure: Fetch command export PSEUDO_DISABLED=1; export > DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-g7k0CS09Dd,guid=12ec7c389f454edf56e65e9a5f1271ce"; > export SSH_AGENT_PID="1474"; export > SSH_AUTH_SOCK="/tmp/ssh-uwTL38C6OxLZ/agent.1310"; export > PATH="/home/admin/Platform_Build/yocto/sources/poky/scripts/native-intercept:/home/admin/Platform_Build/yocto/sources/poky/scripts:/home/admin/Platform_Build/yocto/build/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/admin/Platform_Build/yocto/build/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/recipe-sysroot-native/usr/bin:/home/admin/Platform_Build/yocto/build/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/recipe-sysroot-native/usr/sbin:/home/admin/Platform_Build/yocto/build/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/recipe-sysroot-native/usr/bin:/home/admin/Platform_Build/yocto/build/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/recipe-sysroot-native/sbin:/home/admin/Platform_Build/yocto/build/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/recipe-sysroot-native/bin:/home/admin/Platform_Build/yocto/sources/poky/bitbake/bin:/home/admin/Platform_Build/yocto/build/tmp/hosttools"; > export HOME="/home/admin"; git -c core.fsyncobjectfiles=0 clone -s -n > /home/admin/Platform_Build/pltswcode/Yocto/Linux/downloads//git2/git.savannah.gnu.org.config.git/ > > /home/admin/Platform_Build/yocto/build/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/git/ > failed with exit code 128, output: > fatal: repository > '/home/admin/Platform_Build/pltswcode/Yocto/Linux/downloads//git2/git.savannah.gnu.org.config.git/' > does not exist > > ERROR: gnu-config-native-20150728+gitAUTOINC+b576fa87c1-r0 do_unpack: > Function failed: base_do_unpack > ERROR: Logfile of failure stored in: > /home/admin/Platform_Build/yocto/build/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/temp/log.do_unpack.619 > ERROR: Task > (virtual:native:/home/admin/Platform_Build/yocto/sources/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb:do_unpack) > failed with exit code '1' > NOTE: Tasks Summary: Attempted 68 tasks of which 63 didn't need to be rerun > and 1 failed. > > Summary: 1 task failed: > > virtual:native:/home/admin/Platform_Build/yocto/sources/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb:do_unpack > Summary: There was 1 WARNING message shown. > Summary: There were 2 ERROR messages shown, returning a non-zero exit code. > > I want to know : > 1. Why the bitbake command is not taking the downloads directory as it is ? > 2. Is there any other way to create the offline build without downloading the > yocto packages?
In theory what you're describing should work. Could you share the do_fetch and do_unpack logs for the failing recipe so what we can see why it thinks it needs to download this again. gnu-config-native-20150728 suggests this is an older yocto project release too (between 2015 and 2018), its possible the issue was fixed in master or later release branches. Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50002): https://lists.yoctoproject.org/g/yocto/message/50002 Mute This Topic: https://lists.yoctoproject.org/mt/75676959/21656 Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-