[lttng-dev] Fwd: Install kmod-lttng-modules error on CentOS 7

Jérémie Galarneau jeremie.galarneau at efficios.com
Thu May 28 14:11:54 EDT 2015


On Wed, May 27, 2015 at 9:43 PM, Nan Xiao <xiaonan830818 at gmail.com> wrote:

>
> Best Regards
> Nan Xiao
>
> ---------- Forwarded message ----------
> From: Nan Xiao <xiaonan830818 at gmail.com>
> Date: Thu, May 28, 2015 at 9:42 AM
> Subject: Re: [lttng-dev] Install kmod-lttng-modules error on CentOS 7
> To: Jérémie Galarneau <jeremie.galarneau at efficios.com>
>
>
> After trying with SRPM, it reports the same error:
>
> In file included from
> /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:139:0,
>                  from
> /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/kvm.h:381,
>                  from
> /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.c:42:
> /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:151:6:
> error: conflicting types for 'trace_kvm_async_pf_completed'
>  void trace_##_name(_proto);
>       ^
> /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:47:2:
> note: in expansion of macro 'DEFINE_EVENT_MAP'
>   DEFINE_EVENT_MAP(map, name, map, PARAMS(proto), PARAMS(args))
>   ^
> /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:89:2:
> note: in expansion of macro 'TRACE_EVENT_MAP'
>   TRACE_EVENT_MAP(name, name,    \
>   ^
> /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/kvm.h:351:1:
> note: in expansion of macro 'TRACE_EVENT'
>  TRACE_EVENT(
>  ^
> In file included from include/linux/module.h:18:0,
>                  from
> /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.c:23:
> include/linux/tracepoint.h:162:21: note: previous definition of
> 'trace_kvm_async_pf_completed' was here
>   static inline void trace_##name(proto)    \
>                      ^
> include/linux/tracepoint.h:259:3: note: in expansion of macro
> '__DECLARE_TRACE'
>    __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
>    ^
> include/linux/tracepoint.h:391:2: note: in expansion of macro
> 'DECLARE_TRACE'
>   DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
>   ^
> include/trace/events/kvm.h:317:1: note: in expansion of macro 'TRACE_EVENT'
>  TRACE_EVENT(
>  ^
> make[2]: ***
> [/root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.o]
> Error 1
> make[1]: *** [/root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes]
> Error 2
> make: *** [_module_/root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default]
> Error 2
> make: Leaving directory `/usr/src/kernels/3.10.0-229.4.2.el7.x86_64'
> error: Bad exit status from /var/tmp/rpm-tmp.BYJgqS (%build)
>
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.BYJgqS (%build)
>
>
> Could you help to fix it and provide patch for CentOS? Thanks!
>

Hi Nan,

We have updated the packages on packages.efficios.com. The issue was caused
by patches backported by Red Hat to their 3.10 kernel as part of the
release of RHEL 7.1.

Can you check that the latest kmod-lttng-modules package on the repository
works?

The updated source RPM is also available at:
http://packages.efficios.com/rhel/7/SRPMS/latest/lttng-modules/lttng-modules-2.5.3-1.el7.src.rpm

The following patches, merged as part of lttng-modules' stable-2.5,
stable-2.6 and master branches add the necessary kernel version checks:

commit 51b961653d69b56528ae8c7e4cd39d140d75f610
Author: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
Date:   Wed May 27 12:56:05 2015 -0400

    Fix: RHEL 7.1 block instrumentation

    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

commit f30ae671364af1a69a5c5ad562e10a38c1bbaf2e
Author: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
Date:   Wed May 27 12:19:01 2015 -0400

    Fix: add RHEL version macros

    RHEL 7.1 has backported upstream patches that change the kvm.h
    tracepoint prototype. Add version check specific to RHEL to handle this
    case.

    RHEL 7.x has the required fixes backported that allow removing the 3.10
    blacklist check for them, so take this into account.

    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

Regards,
Jérémie


>
> Best Regards
> Nan Xiao
>
> On Wed, May 27, 2015 at 11:09 PM, Jérémie Galarneau <
> jeremie.galarneau at efficios.com> wrote:
>
>> CentOS might be using a different kernel (not binary compatible). Have
>> you tried installing from the source RPM [1]?
>>
>> $ wget
>> http://packages.efficios.com/rhel/7/SRPMS/latest/lttng-modules/lttng-modules-2.5.0-1.el7.src.rpm
>> $ rpm -i lttng-modules-2.5.0-1.el7.src.rpm
>> $ cd ~/rpmbuild/SPECS
>> $ rpmbuild -bb lttng-modules.spec
>>
>> Trying this here on a RHEL7 machine seems to fail since the latest kernel
>> update (3.10.0-229.4.2.el7.x86_64) with:
>>
>> In file included from
>> /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:139:0,
>>                  from
>> /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/kvm.h:381,
>>                  from
>> /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.c:42:
>> /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:151:6:
>> error: conflicting types for 'trace_kvm_async_pf_completed'
>>  void trace_##_name(_proto);
>>       ^
>> /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:47:2:
>> note: in expansion of macro 'DEFINE_EVENT_MAP'
>>   DEFINE_EVENT_MAP(map, name, map, PARAMS(proto), PARAMS(args))
>>   ^
>> /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:89:2:
>> note: in expansion of macro 'TRACE_EVENT_MAP'
>>   TRACE_EVENT_MAP(name, name,    \
>>   ^
>> /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/kvm.h:351:1:
>> note: in expansion of macro 'TRACE_EVENT'
>>  TRACE_EVENT(
>>  ^
>> In file included from include/linux/module.h:18:0,
>>                  from
>> /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.c:23:
>> include/linux/tracepoint.h:162:21: note: previous definition of
>> 'trace_kvm_async_pf_completed' was here
>>   static inline void trace_##name(proto)    \
>>                      ^
>> include/linux/tracepoint.h:259:3: note: in expansion of macro
>> '__DECLARE_TRACE'
>>    __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
>>    ^
>> include/linux/tracepoint.h:391:2: note: in expansion of macro
>> 'DECLARE_TRACE'
>>   DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
>>   ^
>> include/trace/events/kvm.h:317:1: note: in expansion of macro
>> 'TRACE_EVENT'
>>  TRACE_EVENT(
>>  ^
>> make[2]: ***
>> [/home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.o]
>> Error 1
>> make[1]: ***
>> [/home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes] Error 2
>> make: ***
>> [_module_/home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default] Error 2
>> make: Leaving directory `/usr/src/kernels/3.10.0-229.4.2.el7.x86_64'
>> error: Bad exit status from /var/tmp/rpm-tmp.75xMIN (%build)
>>
>> I guess this is caused by a patch backported to Red Hat's 3.10 kernel.
>> I'll investigate and see what can be done.
>>
>> Regards,
>> Jérémie
>>
>> [1]
>> http://packages.efficios.com/rhel/7/SRPMS/latest/lttng-modules/lttng-modules-2.5.0-1.el7.src.rpm
>>
>> On Wed, May 27, 2015 at 5:40 AM, Nan Xiao <xiaonan830818 at gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> I am following this page (http://packages.efficios.com/) , and try to
>>> install lttng on CentOS 7. All the modules are installed OK,
>>> except kmod-lttng-modules, and the error info likes this:
>>>
>>> [root at mawent3 ~]# yum install kmod-lttng-modules
>>> Loaded plugins: fastestmirror
>>> Loading mirror speeds from cached hostfile
>>>  * base: centos.mirrors.tds.net
>>>  * extras: bay.uchicago.edu
>>>  * updates: dallas.tx.mirror.xygenhosting.com
>>> Resolving Dependencies
>>> --> Running transaction check
>>> ---> Package kmod-lttng-modules.x86_64 0:2.5.0-1.el7 will be installed
>>> --> Processing Dependency: kernel(__alloc_pages_nodemask) = 0xfb29f2e9
>>> for package: kmod-lttng-modules-2.5.0-1.el7.x86_64
>>> --> Processing Dependency: kernel(node_data) = 0xc0ebbdec for package:
>>> kmod-lttng-modules-2.5.0-1.el7.x86_64
>>> --> Finished Dependency Resolution
>>> Error: Package: kmod-lttng-modules-2.5.0-1.el7.x86_64
>>> (EfficiOS-RHEL7-x86-64)
>>>            Requires: kernel(node_data) = 0xc0ebbdec
>>>            Installed: kernel-3.10.0-229.el7.x86_64 (@anaconda)
>>>                kernel(node_data) = 0x3142b10b
>>>            Installed: kernel-3.10.0-229.4.2.el7.x86_64 (@updates)
>>>                kernel(node_data) = 0x3142b10b
>>>            Available: kernel-3.10.0-229.1.2.el7.x86_64 (updates)
>>>                kernel(node_data) = 0x3142b10b
>>>            Available: kernel-debug-3.10.0-229.el7.x86_64 (base)
>>>                kernel(node_data) = 0x7881b78f
>>>            Available: kernel-debug-3.10.0-229.1.2.el7.x86_64 (updates)
>>>                kernel(node_data) = 0x7881b78f
>>>            Available: kernel-debug-3.10.0-229.4.2.el7.x86_64 (updates)
>>>                kernel(node_data) = 0x7881b78f
>>> Error: Package: kmod-lttng-modules-2.5.0-1.el7.x86_64
>>> (EfficiOS-RHEL7-x86-64)
>>>            Requires: kernel(__alloc_pages_nodemask) = 0xfb29f2e9
>>>            Installed: kernel-3.10.0-229.el7.x86_64 (@anaconda)
>>>                kernel(__alloc_pages_nodemask) = 0x8616cca3
>>>            Installed: kernel-3.10.0-229.4.2.el7.x86_64 (@updates)
>>>                kernel(__alloc_pages_nodemask) = 0x8616cca3
>>>            Available: kernel-3.10.0-229.1.2.el7.x86_64 (updates)
>>>                kernel(__alloc_pages_nodemask) = 0x8616cca3
>>>            Available: kernel-debug-3.10.0-229.el7.x86_64 (base)
>>>                kernel(__alloc_pages_nodemask) = 0xcc655c2a
>>>            Available: kernel-debug-3.10.0-229.1.2.el7.x86_64 (updates)
>>>                kernel(__alloc_pages_nodemask) = 0xcc655c2a
>>>            Available: kernel-debug-3.10.0-229.4.2.el7.x86_64 (updates)
>>>                kernel(__alloc_pages_nodemask) = 0xcc655c2a
>>>  You could try using --skip-broken to work around the problem
>>>  You could try running: rpm -Va --nofiles --nodigest
>>>
>>>
>>> Could someone give help on this issue? Thanks very much in advance!
>>>
>>> Best Regards
>>> Nan Xiao
>>>
>>> _______________________________________________
>>> lttng-dev mailing list
>>> lttng-dev at lists.lttng.org
>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>
>>>
>>
>>
>> --
>> Jérémie Galarneau
>> EfficiOS Inc.
>> http://www.efficios.com
>>
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
>


-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150528/3be5545b/attachment-0001.html>


More information about the lttng-dev mailing list