Package: lttng-modules-dkms
Version: 2.9.0-1
Severity: important

Dear Maintainer,

I am trying to get Lttng kernel tracing working in debian 9.3 (stretch) and
attempted to install required packages like:

i) lttng-modules-dkms

Command executed:
# sudo apt-get install lttng-modules-dkms


Error observed during setup/configure process, while lttng-modules were
building:

--------------------
Setting up linux-compiler-gcc-6-x86 (4.9.65-3+deb9u2) ...
Setting up dkms (2.3-2) ...
Setting up linux-headers-4.9.0-5-amd64 (4.9.65-3+deb9u2) ...
Setting up lttng-modules-dkms (2.9.0-1) ...
Loading new lttng-modules-2.9.0 DKMS files...
Building for 4.9.0-5-amd64
Building initial module for 4.9.0-5-amd64
Error! Bad return status for module build on kernel: 4.9.0-5-amd64 (x86_64)
Consult /var/lib/dkms/lttng-modules/2.9.0/build/make.log for more
information.
Setting up linux-headers-amd64 (4.9+80+deb9u3) ...
----------------------


Snippet from make.log:

----------------------
DKMS make.log for lttng-modules-2.9.0 for kernel 4.9.0-5-amd64 (x86_64)
Thu Feb  8 12:54:43 UTC 2018
make: Entering directory '/usr/src/linux-headers-4.9.0-5-amd64'
  CC [M]
/var/lib/dkms/lttng-modules/2.9.0/build/lttng-ring-buffer-client-discard.o
  CC [M]
/var/lib/dkms/lttng-modules/2.9.0/build/lttng-ring-buffer-client-overwrite.o
  CC [M]
/var/lib/dkms/lttng-modules/2.9.0/build/lttng-ring-buffer-client-mmap-discard.o
...
 CC [M]
/var/lib/dkms/lttng-modules/2.9.0/build/probes/lttng-probe-x86-exceptions.o
In file included from
/var/lib/dkms/lttng-modules/2.9.0/build/probes/../probes/define_trace.h:100:0,
                 from
/var/lib/dkms/lttng-modules/2.9.0/build/probes/../instrumentation/events/lttng-module/kvm.h:238,
                 from
/var/lib/dkms/lttng-modules/2.9.0/build/probes/lttng-probe-kvm.c:42:
/var/lib/dkms/lttng-modules/2.9.0/build/probes/../probes/lttng-tracepoint-event-impl.h:142:6:
error: conflicting types for 'trace_kvm_mmio'
 void trace_##_name(_proto);
      ^
/var/lib/dkms/lttng-modules/2.9.0/build/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))
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lttng-modules/2.9.0/build/probes/../probes/lttng-tracepoint-event-impl.h:96:2:
note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_MAP'
  LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/lttng-modules/2.9.0/build/probes/../instrumentation/events/lttng-module/kvm.h:87:1:
note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'
 LTTNG_TRACEPOINT_EVENT(kvm_mmio,
 ^~~~~~~~~~~~~~~~~~~~~~
In file included from
/usr/src/linux-headers-4.9.0-5-common/arch/x86/include/asm/kvm_host.h:17:0,
                 from
/usr/src/linux-headers-4.9.0-5-common/include/linux/kvm_host.h:36,
                 from
/var/lib/dkms/lttng-modules/2.9.0/build/probes/lttng-probe-kvm.c:24:
/usr/src/linux-headers-4.9.0-5-common/include/linux/tracepoint.h:183:21:
note: previous definition of 'trace_kvm_mmio' was here
  static inline void trace_##name(proto)    \
                     ^
/usr/src/linux-headers-4.9.0-5-common/include/linux/tracepoint.h:348:2:
note: in expansion of macro '__DECLARE_TRACE'
  __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
  ^~~~~~~~~~~~~~~
/usr/src/linux-headers-4.9.0-5-common/include/linux/tracepoint.h:484:2:
note: in expansion of macro 'DECLARE_TRACE'
  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  ^~~~~~~~~~~~~
/usr/src/linux-headers-4.9.0-5-common/include/trace/events/kvm.h:210:1:
note: in expansion of macro 'TRACE_EVENT'
 TRACE_EVENT(kvm_mmio,
 ^~~~~~~~~~~
  CC [M]
/var/lib/dkms/lttng-modules/2.9.0/build/probes/lttng-probe-signal.o
/usr/src/linux-headers-4.9.0-5-common/scripts/Makefile.build:304: recipe
for target
'/var/lib/dkms/lttng-modules/2.9.0/build/probes/lttng-probe-kvm.o' failed
make[4]: ***
[/var/lib/dkms/lttng-modules/2.9.0/build/probes/lttng-probe-kvm.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/usr/src/linux-headers-4.9.0-5-common/scripts/Makefile.build:549: recipe
for target '/var/lib/dkms/lttng-modules/2.9.0/build/probes' failed
make[3]: *** [/var/lib/dkms/lttng-modules/2.9.0/build/probes] Error 2
make[3]: *** Waiting for unfinished jobs....
/usr/src/linux-headers-4.9.0-5-common/Makefile:1510: recipe for target
'_module_/var/lib/dkms/lttng-modules/2.9.0/build' failed
make[2]: *** [_module_/var/lib/dkms/lttng-modules/2.9.0/build] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-4.9.0-5-amd64'
---------------------------

Do we have a fix or workaround available for this failure ?

TIA!
Srikant


-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lttng-modules-dkms depends on:
ii  dkms  2.3-2

Versions of packages lttng-modules-dkms recommends:
ii  lttng-tools  2.9.3-1

lttng-modules-dkms suggests no packages.

-- no debconf information

Reply via email to