Error building Legato Yocto 15.01

Hello all,

I am having problems building Legato Yocto 15.01: :angry:

[code]“meta-swi-extras/build.sh” -p poky/ -o meta-openembedded/ -l meta-swi -x “kernel” -j 9 -t 9 -m swi-mdm9x15 -b build_bin -q -g
Poky dir: /home/LegatoYocto1501/poky
OE meta: /home/LegatoYocto1501/meta-openembedded
SWI meta dir: /home/LegatoYocto1501/meta-swi
Linux repo dir: /home/LegatoYocto1501/kernel
Number of make threads 9
Number of bitbake tasks 9
SWI machine: swi-mdm9x15
Build dir: /home/LegatoYocto1501/build_bin
Enable Qualcomm Proprietary bin

Shell environment set up for builds.

You can now run 'bitbake ’

Common targets are:
core-image-minimal
core-image-sato
meta-toolchain
adt-installer
meta-ide-support

You can also run generated qemu images with a command like ‘runqemu qemux86’

  • layer: meta-swi-mdm9x15
  • layer: meta-swi
  • layer: meta-oe
  • layer: meta-networking
  • layer: meta-swi-bin
  • layer: meta-swi-extras
    Build image of minimal rootfs (for swi-mdm9x15).
    Loading cache: 100% |################################################################################| ETA: 00:00:00
    Loaded 1878 entries from dependency cache.
    Parsing recipes: 100% |##############################################################################| Time: 00:00:01
    Parsing of 1446 .bb files complete (1445 cached, 1 parsed). 1878 targets, 71 skipped, 0 masked, 0 errors.
    NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = “1.22.0”
BUILD_SYS = “i686-linux”
NATIVELSBSTRING = “Ubuntu-14.04”
TARGET_SYS = “arm-poky-linux-gnueabi”
MACHINE = “swi-mdm9x15”
DISTRO = “poky-swi-ext”
DISTRO_VERSION = “1.6.1”
TUNE_FEATURES = “armv7a vfp neon”
TARGET_FPU = “vfp-neon”
meta
meta-yocto
meta-yocto-bsp = “(detachedfrombda51ee):bda51ee7821de9120f6f536fcabe592f2a0c8a37”
meta-networking
meta-oe = “(detachedfrom8e6f6e4):8e6f6e49c99a12a0382e48451f37adac0181362f”
meta-swi
meta-swi-mdm9x15 = “master:6a86036e0f7e84acec98899cb90658de1a3765b1”
meta-swi-extras
meta-swi-bin = “master:0811adc249ea5cc7ec32fbd0323f0fb4de49e9f9”

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_compile (log file is located at /home/LegatoYocto1501/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/linux-yocto/3.4.91+gitAUTOINC+b4cd11ac89_4baa26b8d2-r4.5.1/temp/log.do_compile.28874)
ERROR: Logfile of failure stored in: /home/LegatoYocto1501/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/linux-yocto/3.4.91+gitAUTOINC+b4cd11ac89_4baa26b8d2-r4.5.1/temp/log.do_compile.28874
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 9 zImage CC=arm-poky-linux-gnueabi-gcc -mno-thumb-interwork -marm LD=arm-poky-linux-gnueabi-ld.bfd
| Using /home/LegatoYocto1501/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/linux-yocto/3.4.91+gitAUTOINC+b4cd11ac89_4baa26b8d2-r4.5.1/linux as source for kernel
| GEN /home/LegatoYocto1501/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/linux-yocto/3.4.91+gitAUTOINC+b4cd11ac89_4baa26b8d2-r4.5.1/linux-swi_mdm9x15-standard-build/Makefile
| CHK include/linux/version.h
| CHK include/generated/utsrelease.h
| make[3]: `include/generated/mach-types.h’ is up to date.
| CC arch/arm/kernel/asm-offsets.s
| GEN include/generated/asm-offsets.h
| CALL /home/LegatoYocto1501/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/linux-yocto/3.4.91+gitAUTOINC+b4cd11ac89_4baa26b8d2-r4.5.1/linux/scripts/checksyscalls.sh
| CHK include/generated/compile.h
| CC init/main.o
| CC init/do_mounts.o
| CC init/noinitramfs.o
| CC init/calibrate.o
| CC init/version.o
| LD init/mounts.o
| LD init/built-in.o
| CC arch/arm/kernel/elf.o
| AS arch/arm/kernel/entry-common.o
| AS arch/arm/kernel/entry-armv.o
| CC arch/arm/kernel/opcodes.o
| CC arch/arm/kernel/irq.o
| CC arch/arm/kernel/process.o
| CC arch/arm/kernel/ptrace.o
| CC arch/arm/kernel/sched_clock.o
| CC arch/arm/kernel/return_address.o
| CC arch/arm/kernel/setup.o
| CC arch/arm/kernel/signal.o
| CC arch/arm/kernel/stacktrace.o
| CC arch/arm/kernel/sys_arm.o
| CC arch/arm/kernel/time.o
| CC arch/arm/kernel/traps.o
| AS arch/arm/kernel/sleep.o
| CC arch/arm/kernel/suspend.o
| AS arch/arm/kernel/head.o
| CC arch/arm/kernel/init_task.o
| LD arch/arm/kernel/built-in.o
| CC arch/arm/mm/extable.o
| CC arch/arm/mm/dma-mapping.o
| CC arch/arm/mm/fault.o
| CC arch/arm/mm/init.o
| CC arch/arm/mm/iomap.o
| CC arch/arm/mm/fault-armv.o
| CC arch/arm/mm/idmap.o
| CC arch/arm/mm/flush.o
| CC arch/arm/mm/ioremap.o
| CC arch/arm/mm/mmap.o
| CC arch/arm/mm/pgd.o
| CC arch/arm/mm/mmu.o
| CC arch/arm/mm/vmregion.o
| CC arch/arm/mm/alignment.o
| CC arch/arm/mm/copypage-v4wb.o
| AS arch/arm/mm/tlb-v4wbi.o
| AS arch/arm/mm/proc-arm926.o
| LD arch/arm/mm/built-in.o
| CC arch/arm/common/vic.o
| CC arch/arm/common/timer-sp.o
| CC arch/arm/common/icst.o
| LD arch/arm/common/built-in.o
| CC arch/arm/mach-versatile/core.o
| CC arch/arm/mach-versatile/versatile_pb.o
| LD arch/arm/mach-versatile/built-in.o
| CC arch/arm/plat-versatile/clock.o
| CC arch/arm/plat-versatile/clcd.o
| CC arch/arm/plat-versatile/fpga-irq.o
| CC arch/arm/plat-versatile/sched-clock.o
| LD arch/arm/plat-versatile/built-in.o
| CC kernel/fork.o
| CC kernel/panic.o
| CC kernel/exec_domain.o
| CC kernel/printk.o
| CC kernel/cpu.o
| CC kernel/exit.o
| CC kernel/itimer.o
| CC kernel/time.o
| CC kernel/softirq.o
| /home/LegatoYocto1501/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/linux-yocto/3.4.91+gitAUTOINC+b4cd11ac89_4baa26b8d2-r4.5.1/linux/kernel/panic.c:42:21: error: ‘CONFIG_SIERRA_PANIC_TIMEOUT’ undeclared here (not in a function)
| make[3]: *** [kernel/panic.o] Error 1
| make[3]: *** Waiting for unfinished jobs…
| make[2]: *** [kernel] Error 2
| make[1]: *** [sub-make] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/LegatoYocto1501/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/linux-yocto/3.4.91+gitAUTOINC+b4cd11ac89_4baa26b8d2-r4.5.1/temp/run.do_compile.28874:1 exit 1 from
| exit 1
| ERROR: Function failed: do_compile (log file is located at /home/LegatoYocto1501/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/linux-yocto/3.4.91+gitAUTOINC+b4cd11ac89_4baa26b8d2-r4.5.1/temp/log.do_compile.28874)
ERROR: Task 81 (/home/LegatoYocto1501/poky/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_compile) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 1429 tasks of which 1413 didn’t need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
/home/LegatoYocto1501/poky/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
make: *** [image_bin] Error 1[/code]

Anyone can help me with this error? :unamused:

Thanks in advance.

Héctor

Finally, it was a problem with the toolchain. For some strange reason, the ‘Legato-Toolchain-mdm9x15-15.01-i686.sh’ file that I downloaded was incorrect (its size was ~70 MiB insted of 134,1 MiB.) Once I downloaded the correct one, Legato Yocto 15.01 built without problems.

Héctor