[yocto] build fails for qemux86
sanjay chopra
sanjuchopracool at gmail.com
Tue Dec 18 05:05:50 PST 2018
I tried to create core-image-minimal from other laptop, I was able to build
it without any problem. On my machine , I tried with ubuntu , debian and
CENTOS, I am getting same issue every time.
Looks like it is more related to my hardware ? I tried with verbose
information also, It is not invoking qemu with proper arguments, please
check following log.
NOTE: core-image-minimal-1.0-r0 do_rootfs: Installing complementary
packages ...
NOTE: core-image-minimal-1.0-r0 do_rootfs: Running ['oe-pkgdata-util',
'-p', '/home/sanju/qemu_check/tmp/pkgdata/qemux86', 'glob',
'/tmp/installed-pkgsqopdztld', '']
NOTE: core-image-minimal-1.0-r0 do_rootfs: Running intercept scripts:
NOTE: core-image-minimal-1.0-r0 do_rootfs: > Executing update_font_cache
intercept ...
NOTE: core-image-minimal-1.0-r0 do_rootfs: Exit code 1. Output:
+ '[' True = False ']'
+ qemu-i386 -r 3.2.0 -E
LD_LIBRARY_PATH=/home/sanju/qemu_check/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/usr/lib:/home/sanju/qemu_check/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/lib
-L
/home/sanju/qemu_check/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs
-E
/home/sanju/qemu_check/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/usr/libexec/fc-cache
--sysroot=/home/sanju/qemu_check/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs
--system-only
usage: qemu-i386 [options] program [arguments...]
Linux CPU emulator (compiled for i386 emulation)
Options and associated environment variables:
Argument Env-variable Description
-h print this help
-help
-g port QEMU_GDB wait gdb connection to 'port'
-L path QEMU_LD_PREFIX set the elf interpreter prefix to
'path'
-s size QEMU_STACK_SIZE set the stack size to 'size' bytes
-cpu model QEMU_CPU select CPU (-cpu help for list)
-E var=value QEMU_SET_ENV sets targets environment variable
(see below)
-U var QEMU_UNSET_ENV unsets targets environment variable
(see below)
-0 argv0 QEMU_ARGV0 forces target process argv[0] to be
'argv0'
-r uname QEMU_UNAME set qemu uname release string to
'uname'
-B address QEMU_GUEST_BASE set guest_base address to 'address'
-R size QEMU_RESERVED_VA reserve 'size' bytes for guest
virtual address space
-d item[,...] QEMU_LOG enable logging of specified items
(use '-d help' for a list of items)
-dfilter range[,...] QEMU_DFILTER filter logging based on address range
-D logfile QEMU_LOG_FILENAME write logs to 'logfile' (default
stderr)
-p pagesize QEMU_PAGESIZE set the host page size to 'pagesize'
-singlestep QEMU_SINGLESTEP run in singlestep mode
-strace QEMU_STRACE log system calls
-seed QEMU_RAND_SEED Seed for pseudo-random number
generator
-trace QEMU_TRACE
[[enable=]<pattern>][,events=<file>][,file=<file>]
-version QEMU_VERSION display version information and exit
Defaults:
QEMU_LD_PREFIX =
/home/sanju/qemu_check/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs
QEMU_STACK_SIZE = 8388608 byte
You can use -E and -U options or the QEMU_SET_ENV and
QEMU_UNSET_ENV environment variables to set and unset
environment variables for the target process.
It is possible to provide several variables by separating them
by commas in getsubopt(3) style. Additionally it is possible to
provide the -E and -U options multiple times.
The following lines are equivalent:
-E var1=val2 -E var2=val2 -U LD_PRELOAD -U LD_DEBUG
-E var1=val2,var2=val2 -U LD_PRELOAD,LD_DEBUG
QEMU_SET_ENV=var1=val2,var2=val2 QEMU_UNSET_ENV=LD_PRELOAD,LD_DEBUG
Note that if you provide several changes to a single variable
the last change will stay in effect.
See <https://qemu.org/contribute/report-a-bug> for how to report bugs.
More information on the QEMU project at <https://qemu.org>.
ERROR: core-image-minimal-1.0-r0 do_rootfs: The postinstall intercept hook
'update_font_cache' failed, details in
/home/sanju/qemu_check/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs
ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
/home/sanju/qemu_check/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.22110
ERROR: Task
(/mnt/DATA_PARTITION/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs)
failed with exit code '1'
On Tue, Dec 18, 2018 at 10:40 AM Khem Raj <raj.khem at gmail.com> wrote:
> On Mon, Dec 17, 2018 at 9:06 PM sanjay chopra <sanjuchopracool at gmail.com>
> wrote:
> >
> > Hi,
> >
> > It also happens when I build for raspberry pi, core-image-sato works
> fine though.
> >
>
> thats ok. it just says something is not right about the tools being
> used during build
> I suspect qemu usermode since thats whats used to execute some of post
> install hooks
>
> > On Tue 18 Dec, 2018, 6:33 AM Khem Raj <raj.khem at gmail.com wrote:
> >>
> >> On Mon, Dec 17, 2018 at 12:09 PM sanjay chopra
> >> <sanjuchopracool at gmail.com> wrote:
> >> >
> >> > Hi,
> >> >
> >> > Whenever I try to build core-image-minimal , it fails in rootfs
> step.But I am able to build core-image-sato.
> >> >
> >> > With thud and master branch I am getting this issue. Sumo branch was
> working fine.Please help me to figure this out.
> >> >
> >>
> >> such errors sometimes pop up when qemu is failing on the built machine
> >> you might want to dig a bit deeper and find out what cmd particularly
> is failing
> >> and then try to run that manually to check if its specific to build
> host.
> >> >
> >> >
> >> > bitbake core-image-minimal
> >> > Loading cache: 100%
> |###############################################################################################################################################################################|
> Time: 0:00:00
> >> > Loaded 1263 entries from dependency cache.
> >> > NOTE: Resolving any missing task queue dependencies
> >> >
> >> > Build Configuration:
> >> > BB_VERSION = "1.40.0"
> >> > BUILD_SYS = "x86_64-linux"
> >> > NATIVELSBSTRING = "universal"
> >> > TARGET_SYS = "i586-poky-linux"
> >> > MACHINE = "qemux86"
> >> > DISTRO = "poky"
> >> > DISTRO_VERSION = "2.6"
> >> > TUNE_FEATURES = "m32 i586"
> >> > TARGET_FPU = ""
> >> > meta
> >> > meta-poky
> >> > meta-yocto-bsp = "thud:d0e0a3d7a8218fbbf057a922c86bcdd2cf469ce9"
> >> >
> >> > Initialising tasks: 100%
> |##########################################################################################################################################################################|
> Time: 0:00:01
> >> > Sstate summary: Wanted 2 Found 0 Missed 2 Current 736 (0% match, 99%
> complete)
> >> > NOTE: Executing SetScene Tasks
> >> > NOTE: Executing RunQueue Tasks
> >> > ERROR: core-image-minimal-1.0-r0 do_rootfs: The postinstall intercept
> hook 'update_font_cache' failed, details in
> /home/sanju/qemu_check/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs
> >> > ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
> >> > ERROR: Logfile of failure stored in:
> /home/sanju/qemu_check/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.18035
> >> > ERROR: Task
> (/mnt/DATA_PARTITION/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs)
> failed with exit code '1'
> >> > NOTE: Tasks Summary: Attempted 2420 tasks of which 2419 didn't need
> to be rerun and 1 failed.
> >> >
> >> > Summary: 1 task failed:
> >> >
> /mnt/DATA_PARTITION/poky/meta/recipes-core/images/core-image-minimal.bb:
> do_rootfs
> >> > Summary: There were 2 ERROR messages shown, returning a non-zero exit
> code.
> >> >
> >> > --
> >> > Regards
> >> > Sanjay
> >> > --
> >> > _______________________________________________
> >> > yocto mailing list
> >> > yocto at yoctoproject.org
> >> > https://lists.yoctoproject.org/listinfo/yocto
>
--
*RegardsSanjay*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20181218/feb43315/attachment-0001.html>
More information about the yocto
mailing list