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

Bruce Ashfield bruce.ashfield at gmail.com
Fri Mar 23 07:22:44 PDT 2018


On Fri, Mar 23, 2018 at 8:10 AM, Tan, Raymond <raymond.tan at intel.com> wrote:
> 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?

That question need to be answered on the oe-core list. Since we don't
carry lttng
in meta-virt, there's nothing we can do to fix it here.

Bruce

>
>
>
> /Ray



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


More information about the meta-virtualization mailing list