I'm getting this error with perl and master as of 9th January: | CC /data/poky-master/tmp/work/nuc-poky-linux/perf/1.0-r9/perf-1.0/arch/x86/tests/regs_load.o | arch/x86/tests/regs_load.S: Assembler messages: | arch/x86/tests/regs_load.S:65: Error: operand type mismatch for `push' | arch/x86/tests/regs_load.S:72: Error: operand type mismatch for `pop' | make[1]: *** [/data/poky-master/tmp/work/nuc-poky-linux/perf/1.0-r9/perf-1.0/arch/x86/tests/regs_load.o] Error 1 | make[1]: *** Waiting for unfinished jobs.... | make[1]: *** wait: No child processes. Stop. | make: *** [all] Error 2 | make: Leaving directory `/data/poky-master/tmp/sysroots/nuc/usr/src/kernel/tools/perf' | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at /data/poky-master/tmp/work/nuc-poky-linux/perf/1.0-r9/temp/log.do_compile.27524) ERROR: Task 10086 (/home/ross/Yocto/poky/meta/recipes-kernel/perf/perf.bb, do_compile) failed with exit code '1'
TomZ was having a look at this today, we noticed it during testing as well.
For some reason, now libdw-dwarf-unwind: [ on ] is being found, which means that the arch/x86 test cases are being executed, where before they weren't. i.e. what previously triggered in the perf compile was: config/Makefile:371: Disabling post unwind, no support found. because NO_LIBDW_DWARF_UNWIND was set, and with dwarf-post-unwind set, NO_DWARF_UNWIND would also be set and the below would be skipped. ifndef NO_DWARF_UNWIND LIB_OBJS += $(OUTPUT)arch/$(ARCH)/tests/regs_load.o LIB_OBJS += $(OUTPUT)arch/$(ARCH)/tests/dwarf-unwind.o endif One option would be to add NO_DWARF_UNWIND=1 as we do for NO_DWARF=1 but it seems that would just be curing a symptom whereas what we really want to know is why libdw-dwarf-unwind is no being detected.
The two patches here fix it for me: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=tzanussi/possible-perf-7129-fix This gets around the problem and we really shouldn't be leaving things to perf's detection code anyway, so it's a step forward, but it still leaves the 'perf-libunwind'=enabled case broken, which in any case wouldn't be a regression and should probably be fixed by a separate bug. I can post this but would rather understand why it suddenly became a problem and maybe reflects a deeper underlying issue.
The fixes worked here as well, I'm up and building a full image.
There's actually a fix for this on lkml: https://lkml.org/lkml/2015/1/11/302
And now the perf bugfix pain begins. I can fix all the linux-yocto kernels with the upstream change. But do we care about kernels that wouldn't have this integrated ? Stopping the floating/detected support is still a good idea, so we can always do both. Disable the support AND fix it in the linux-yocto kernels.
Well, the only thing we control are the linux-yocto kernels, so fixing those should be sufficient. I can submit my patch adding libdw so users can disable it, but I won't submit the patch to disable it, which would fix build errors for users who don't have the kernel patch, but which would also disable userspace stackunwinding in the call graph profiles if frame pointers are disabled.
The unwind disabling has been pulled into master in these 2 patches, to stop the immediate build problems: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4e13036d66b8eb61b998961243d28cdff8d855f4 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=14fa1343eccd6296120a5e4e054b21b83c57c3e0 But the libunwind enabled case still needs to tested/fixed once the upstream kernel patch mentioned above has been pulled into linux-yocto.
Fixed in master: commit 14fa1343eccd6296120a5e4e054b21b83c57c3e0 Author: Tom Zanussi <tom.zanussi@linux.intel.com> Date: Thu Jan 15 11:54:17 2015 +0000 perf: Disable perf-libunwind commit 4e13036d66b8eb61b998961243d28cdff8d855f4 Author: Tom Zanussi <tom.zanussi@linux.intel.com> Date: Thu Jan 15 11:54:16 2015 +0000 perf: Add libdw unwind support to perf-libunwind feature
could build successfully perf with master: Build Configuration: BB_VERSION = "1.27.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Fedora-20" TARGET_SYS = "i586-poky-linux" MACHINE = "qemux86" DISTRO = "poky" DISTRO_VERSION = "1.8+snapshot-20150326" TUNE_FEATURES = "m32 i586" TARGET_FPU = "" meta meta-yocto meta-yocto-bsp = "master:5c76cebc24675edb3dff473fce9b67cedff615db"