Hi, Tried to build core-image-sato-sdk for nuc and fri2 but the builds are failing due to: ERROR: Function failed: do_compile (log file is located at /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/temp/log.do_compile.8339) ERROR: Logfile of failure stored in: /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/temp/log.do_compile.8339 Log data follows: | DEBUG: Executing shell function do_compile | NOTE: make -j 16 -e MAKEFLAGS= KERNEL_PATH=/home/ionut/work/poky/build/tmp/sysroots/nuc/usr/src/kernel KERNEL_SRC=/home/ionut/work/poky/build/tmp/sysroots/nuc/usr/src/kernel KERNEL_VERSION=3.10.11-yocto-standard CC=x86_64-poky-linux-gcc LD=x86_64-poky-linux-ld.bfd AR=x86_64-poky-linux-ar | make -C /home/ionut/work/poky/build/tmp/sysroots/nuc/usr/src/kernel M=/home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git modules | make[1]: Entering directory `/home/ionut/work/poky/build/tmp/sysroots/nuc/usr/src/kernel' | CC [M] /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git/lttng-ring-buffer-client-discard.o | In file included from /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git/lttng-tracer.h:37:0, | from /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git/lttng-ring-buffer-client-discard.c:24: | /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git/wrapper/trace-clock.h:40:2: error: #error "Linux kernels 3.10 and 3.11 introduce a deadlock in the timekeeping subsystem. Fixed by commit 7bd36014460f793c19e7d6c94dab67b0afcfcb7f \"timekeeping: Fix HRTICK related deadlock from ntp lock changes\" in Linux." | #error "Linux kernels 3.10 and 3.11 introduce a deadlock in the timekeeping subsystem. Fixed by commit 7bd36014460f793c19e7d6c94dab67b0afcfcb7f \"timekeeping: Fix HRTICK related deadlock from ntp lock changes\" in Linux." | ^ | make[2]: *** [/home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git/lttng-ring-buffer-client-discard.o] Error 1 | make[1]: *** [_module_/home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/git] Error 2 | make[1]: Leaving directory `/home/ionut/work/poky/build/tmp/sysroots/nuc/usr/src/kernel' | make: *** [default] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at /home/ionut/work/poky/build/tmp/work/nuc-poky-linux/lttng-modules/2.3.3-r0/temp/log.do_compile.8339) ERROR: Task 2865 (/home/ionut/work/poky/meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb, do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 4403 tasks of which 411 didn't need to be rerun and 1 failed. Waiting for 0 running tasks to finish: Summary: 1 task failed: /home/ionut/work/poky/meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb, do_compile Summary: There were 10 WARNING messages shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code. Build Configuration: BB_VERSION = "1.20.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-13.04" TARGET_SYS = "x86_64-poky-linux" MACHINE = "nuc" DISTRO = "poky" DISTRO_VERSION = "1.5.1" TUNE_FEATURES = "m64" TARGET_FPU = "" meta meta-yocto meta-yocto-bsp = "dora:8e410e9e46e3335458a7747cdd32e05f5c19ccbb" meta-intel meta-nuc = "dora:c86e39dd06571458c7dee6cf289d5b470c98f4bd" Cheers, Ionut C
The 3.10 kernel already has this fix in oe-core and meta-yocto-bsps. commit 8babbd1e332a6d6cc7ba40ba6ac190114350310c Author: Bruce Ashfield <bruce.ashfield@windriver.com> Date: Thu Nov 14 11:58:36 2013 -0500 meta-yocto-bsp: update SRCREVs for 3.10.17 and beagleboard fixes Updating the BSP SRCREVs to pull in the 3.10.17 core update and fix USB powerup issues on the beagleboard. (From meta-yocto rev: d82870a9561662919a737dd126a8d26e2b78144a) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> So meta-intel needs to update it's SRCREVs appropriately as well.
We have two options here: 1) Fix all BSPs that fail building this. For meta-intel, this includes: $ git grep 2927821e14523fa0ee18140aa7ff6e0509b48ab7 | sed -e "s/.*://" | sed -e "s/ .*//" SRCREV_machine_chiefriver SRCREV_machine_crownbay SRCREV_machine_crownbay-noemgd SRCREV_machine_emenlow SRCREV_machine_emenlow-noemgd SRCREV_machine_fri2 SRCREV_machine_fri2-noemgd SRCREV_machine_jasperforest SRCREV_machine_nuc SRCREV_machine_sugarbay SRCREV_machine_sys940x SRCREV_machine_sys940x-noemgd Nearly every BSP - and those that aren't listed are still likely affected, they just have different machine branch HEADs. 2) Revert the commit to the stable dora branch that introduced the bug: $ git l dora-10.0.0.. -- recipes-kernel/lttng 50574e4 lttng-modules: Update to 2.3.3 version This update was made, in part, to fix a build issue with Linux 3.12 - which we don't ship with dora. Typically I would argue for #2. However, the commits are available to fix this in the 3.10 kernel repo, but it would require modifying every BSP in meta-intel. More work may be required for the BSPs with different HEADs. depending on whether or not the required commit was already merged for them (likely has been). However, it is my strong belief that the lttng_modules patch should never have been applied to dora.
This is now resolved in dora and master. Dora: commit 28243d96cce16f23240c8f4bc9d09866654f8516 Author: Darren Hart <dvhart@linux.intel.com> Date: 2013-12-19 linux-yocto-3.10: Update SRCREVs for 3.10.19 for remaining BSPs Master: commit 71715193beab7f0c57ee3e1ca8cd39ab07979647 Author: Darren Hart <dvhart@linux.intel.com> Date: 2013-12-19 linux-yocto-3.10: Update SRCREVs for 3.10.19 for remaining BSPs
This is verified. Cheers, IonutC