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

Jérémie Galarneau jeremie.galarneau at efficios.com
Wed May 27 11:09:54 EDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150527/22a2947f/attachment-0001.html>


More information about the lttng-dev mailing list