[poky] lttng-modules build error on linux-yocto-4.4 with KVM on [rocko] branch

Tan, Raymond raymond.tan at intel.com
Fri Mar 23 05:10:46 PDT 2018


Dear Maintainers,

I'm building the image core-image-sato-sdk on ROCKO branch with the poky, meta-virtualization and meta-intel.

When I enabled virtualization and kvm,

DISTRO_FEATURES_append = " virtualization"
DISTRO_FEATURES_append = " kvm"

PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
PREFERRED_VERSION_linux-yocto ?= "4.4%"

I get the error as follow :

....
                 from /home/rahul/raymond/workingdir/pyro/build/tmp/work/intel_corei7_64-poky-linux/lttng-modules/2.9.5-r0/lttng-modules-2.9.5/probes/lttng-probe-kvm.c:42:
/home/rahul/raymond/workingdir/pyro/build/tmp/work/intel_corei7_64-poky-linux/lttng-modules/2.9.5-r0/lttng-modules-2.9.5/probes/../probes/lttng-tracepoint-event-impl.h:142:6: error: conflicting types for 'trace_kvm_mmio'
void trace_##_name(_proto);
      ^
/home/rahul/raymond/workingdir/pyro/build/tmp/work/intel_corei7_64-poky-linux/lttng-modules/2.9.5-r0/lttng-modules-2.9.5/probes/../probes/lttng-tracepoint-event-impl.h:54:2: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP'
  LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.....

Checking online, same issue was reported with the lttng-modules 2.9.5 on kernel 4.9 as well, albeit in different project https://jira.automotivelinux.org/browse/SPEC-1302

With the proposed solution in the AGL thread, updating lttng-modules to 2.10.5 does fix this issue, since 2.10.5 is upstreamed into master-branch, will this version be patched to ROCKO as well?

/Ray
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20180323/3ea80719/attachment.html>


More information about the poky mailing list