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

akuster808 akuster808 at gmail.com
Mon Mar 26 08:40:59 PDT 2018



On 03/23/2018 05:10 AM, Tan, Raymond wrote:
>
> Dear Maintainers,
>
>  
>
> I’m building the image core-image-sato-sdk on ROCKO branch with the
> poky, meta-virtualization and meta-intel.
>

update lttng in upstream Rocko

http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=rocko
- Armin
>
>  
>
> 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/20180326/053b2b7e/attachment.html>


More information about the poky mailing list