[yocto] Saving all files using source mirror isn't capturing build packages
Jimi Damon
jdamon at gmail.com
Wed Jun 28 12:39:21 PDT 2017
Hi,
I'm trying to save the entire build PLUS the tools used to create the
build and I'm finding that when I initially perform the
bitbake -c fetchall b2qt-embedded-qt5-image
followed by a copy of the required downloaded .tar.gz files to the
mirror directory and then creating a new build directory ( with new
local.conf and bb.layers ) with the lines
SOURCE_MIRROR_URL ?= "file://media/build/mirror/"
INHERIT += "own-mirrors"
BB_GENERATE_MIRROR_TARBALLS = "1"
BB_NO_NETWORK = "1"
and I try to build , I get errors saying that certain Native tools are
missing like gcc-source, bison-native, flex-native...etc
Example
>
> Initialising tasks: 100%
> |############################################################################################################|
> Time: 0:00:06
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> ERROR: gcc-source-6.2.0-6.2.0-r0 do_fetch: Network access disabled
> through BB_NO_NETWORK (or set indirectly due to use of
> BB_FETCH_PREMIRRORONLY) but access requested with command /usr/bin/env
> wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P
> /media/build/NewestBuild/build-nitrogen6x/../downloads
> 'http://ftp.gnu.org/gnu/gcc/gcc-6.2.0/gcc-6.2.0.tar.bz2' (for url None)
> ERROR: gcc-source-6.2.0-6.2.0-r0 do_fetch: Function failed: base_do_fetch
> ERROR: Logfile of failure stored in:
> /media/build/NewestBuild/build-nitrogen6x/tmp/work-shared/gcc-6.2.0-r0/temp/log.do_fetch.30899
> ERROR: Task
> (/media/build/NewestBuild/sources/poky/meta/recipes-devtools/gcc/gcc-source_6.2.bb:do_fetch)
> failed with exit code '1'
> ERROR: bison-native-3.0.4-r0 do_unpack: Unpack failure for URL:
> 'http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.xz'. Unpack command
> PATH="/media/build/NewestBuild/sources/poky/scripts/native-intercept:/media/build/NewestBuild/build-nitrogen6x/tmp/sysroots/x86_64-linux/usr/bin/texinfo-dummy-native:/media/build/NewestBuild/build-nitrogen6x/tmp/sysroots-uninative/x86_64-linux/usr/bin:/media/build/NewestBuild/sources/poky/scripts:/media/build/NewestBuild/build-nitrogen6x/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux:/media/build/NewestBuild/build-nitrogen6x/tmp/sysroots/x86_64-linux/usr/bin:/media/build/NewestBuild/build-nitrogen6x/tmp/sysroots/x86_64-linux/usr/sbin:/media/build/NewestBuild/build-nitrogen6x/tmp/sysroots/x86_64-linux/usr/bin:/media/build/NewestBuild/build-nitrogen6x/tmp/sysroots/x86_64-linux/sbin:/media/build/NewestBuild/build-nitrogen6x/tmp/sysroots/x86_64-linux/bin:/media/build/NewestBuild/sources/poky/scripts:/media/build/NewestBuild/sources/poky/bitbake/bin:/media/build/NewBuild:/home/jdamon/.rvm/gems/ruby-2.4.0/bin:/home/jdamon/.rvm/gems/ruby-2.4.0 at global/bin:/home/jdamon/.rvm/rubies/ruby-2.4.0/bin:/home/jdamon/.rvm/bin:/usr/bin:/bin:/sbin:/sbin:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/home/jdamon/Scripts:/usr/games:/usr/lib/lapack:/opt/local/bin:/home/jdamon/Tools/bin:/home/jdamon/Scripts/Work:/home/jdamon/Tools/android-sdk-linux/platform-tools:/home/jdamon/Tools/android-ndk-r10e:/Developer/SDKs/android-sdk-mac_86/tools/:/opt/local/lib/mysql5/bin:/usr/share/apache-maven-3.0.5/bin:/home/jdamon/.rvm/bin:/home/jdamon/.rvm/bin:/home/jdamon/.rvm/bin"
> xz -dc
> /media/build/NewestBuild/build-nitrogen6x/../downloads/bison-3.0.4.tar.xz
> | tar x --no-same-owner -f - failed with return value 2
> ERROR: bison-native-3.0.4-r0 do_unpack: Function failed: base_do_unpack
> ERROR: Logfile of failure stored in:
> /media/build/NewestBuild/build-nitrogen6x/tmp/work/x86_64-linux/bison-native/3.0.4-r0/temp/log.do_unpack.30904
> ERROR: Task
> (virtual:native:/media/build/NewestBuild/sources/poky/meta/recipes-devtools/bison/bison_3.0.4.bb:do_unpack)
> failed with exit code '1'
> ERROR: flex-native-2.6.0-r0 do_fetch: Network access disabled through
> BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY)
> but access requested with command /usr/bin/env wget -t 2 -T 30 -nv
> --passive-ftp --no-check-certificate -P
> /media/build/NewestBuild/build-nitrogen6x/../downloads
> 'http://downloads.sourceforge.net/flex/flex-2.6.0.tar.bz2' (for url None)
> ERROR: flex-native-2.6.0-r0 do_fetch: Function failed: base_do_fetch
> ERROR: Logfile of failure stored in:
> /media/build/NewestBuild/build-nitrogen6x/tmp/work/x86_64-linux/flex-native/2.6.0-r0/temp/log.do_fetch.30905
> ERROR: Task
> (virtual:native:/media/build/NewestBuild/sources/poky/meta/recipes-devtools/flex/flex_2.6.0.bb:do_fetch)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 92 tasks of which 83 didn't need to be
> rerun and 3 failed.
Why aren't these being downloaded when I did my initial fetchall ?
Also, what is the way to capture all of the required packages for an
image AND the development tools required to build the image ?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170628/896d9fef/attachment.html>
More information about the yocto
mailing list