← Back to team overview

lttng team mailing list archive

[Bug 1802443] Re: Unable to build lttng module on Bionic 4.18

 

On a KVM node:
 Running 'dkms status -m sysdig | grep installed'
 [stdout] sysdig, 0.19.1, 4.18.0-13-generic, x86_64: installed


$ uname -a
Linux moe 4.18.0-13-generic #14~18.04.1-Ubuntu SMP Thu Dec 6 14:09:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Calling this as fix-released.

** Changed in: ubuntu-kernel-tests
       Status: New => Fix Released

** Changed in: lttng-modules (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
LTTng, which is subscribed to lttng-modules in Ubuntu.
Matching subscriptions: lttng-modules-bugs
https://bugs.launchpad.net/bugs/1802443

Title:
  Unable to build lttng module on Bionic 4.18

Status in ubuntu-kernel-tests:
  Fix Released
Status in lttng-modules package in Ubuntu:
  Fix Released

Bug description:
  Like the sysdig dkms module (bug 1802240), the lttng module cannot be
  built on Bionic-4.18 as well (ok on Xenial-4.15).

  Build log:
  $ cat /var/lib/dkms/lttng-modules/2.10.5/build/make.log
  DKMS make.log for lttng-modules-2.10.5 for kernel 4.18.0-11-generic (x86_64)
  Fri Nov  9 04:27:15 UTC 2018
  make: Entering directory '/usr/src/linux-headers-4.18.0-11-generic'
  Makefile:982: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-ring-buffer-client-discard.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-ring-buffer-client-overwrite.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-ring-buffer-metadata-client.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-ring-buffer-client-mmap-discard.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-ring-buffer-client-mmap-overwrite.o
  /var/lib/dkms/lttng-modules/2.10.5/build/probes/Kbuild:41: File ./arch/x86/kvm/lapic.h not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/tests/probes/lttng-test.o
  /var/lib/dkms/lttng-modules/2.10.5/build/probes/Kbuild:166: Files ./fs/btrfs/*.h not found. Probe "btrfs" is disabled. Use full kernel source tree to enable it.
  /var/lib/dkms/lttng-modules/2.10.5/build/probes/Kbuild:182: Files ./fs/ext4/*.h not found. Probe "ext4" is disabled. Use full kernel source tree to enable it.
  /var/lib/dkms/lttng-modules/2.10.5/build/probes/Kbuild:215: File ./drivers/base/regmap/trace.h not found. Probe "regmap" is disabled. Need Linux 4.1+ kernel source tree to enable it.
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lib/ringbuffer/ring_buffer_backend.o
  /var/lib/dkms/lttng-modules/2.10.5/build/probes/Kbuild:265: Files ./kernel/trace/trace.h not found. Probe "ftrace" is disabled. Use full kernel source tree to enable it.
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/probes/lttng-probe-sched.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/tests/clock-plugin/lttng-clock-plugin-test.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lib/ringbuffer/ring_buffer_frontend.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lib/ringbuffer/ring_buffer_iterator.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lib/ringbuffer/ring_buffer_vfs.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-ring-buffer-metadata-mmap-client.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-clock.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-events.o
    LD [M]  /var/lib/dkms/lttng-modules/2.10.5/build/tests/lttng-test.o
    LD [M]  /var/lib/dkms/lttng-modules/2.10.5/build/tests/lttng-clock-plugin-test.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-abi.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/probes/lttng-probe-irq.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-string-utils.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-probes.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lib/ringbuffer/ring_buffer_splice.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lib/ringbuffer/ring_buffer_mmap.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lib/prio_heap/lttng_prio_heap.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-pid.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/probes/lttng-probe-timer.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lib/../wrapper/splice.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-procname.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-prio.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-nice.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-vpid.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/probes/lttng-probe-kmem.o
  In file included from /var/lib/dkms/lttng-modules/2.10.5/build/probes/../probes/define_trace.h:100:0,
                   from /var/lib/dkms/lttng-modules/2.10.5/build/probes/../instrumentation/events/lttng-module/timer.h:332,
                   from /var/lib/dkms/lttng-modules/2.10.5/build/probes/lttng-probe-timer.c:43:
  /var/lib/dkms/lttng-modules/2.10.5/build/probes/../probes/lttng-tracepoint-event-impl.h:142:6: error: conflicting types for ‘trace_hrtimer_start’
   void trace_##_name(_proto);
        ^
  /var/lib/dkms/lttng-modules/2.10.5/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.10.5/build/probes/../instrumentation/events/lttng-module/timer.h:163:1: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_MAP’
   LTTNG_TRACEPOINT_EVENT_MAP(hrtimer_start,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from ./include/trace/events/timer.h:8:0,
                   from /var/lib/dkms/lttng-modules/2.10.5/build/probes/lttng-probe-timer.c:32:
  ./include/linux/tracepoint.h:184:21: note: previous definition of ‘trace_hrtimer_start’ was here
    static inline void trace_##name(proto)    \
                       ^
  ./include/linux/tracepoint.h:349:2: note: in expansion of macro ‘__DECLARE_TRACE’
    __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),  \
    ^~~~~~~~~~~~~~~
  ./include/linux/tracepoint.h:485:2: note: in expansion of macro ‘DECLARE_TRACE’
    DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
    ^~~~~~~~~~~~~
  ./include/trace/events/timer.h:191:1: note: in expansion of macro ‘TRACE_EVENT’
   TRACE_EVENT(hrtimer_start,
   ^~~~~~~~~~~
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-tid.o
  scripts/Makefile.build:332: recipe for target '/var/lib/dkms/lttng-modules/2.10.5/build/probes/lttng-probe-timer.o' failed
  make[2]: *** [/var/lib/dkms/lttng-modules/2.10.5/build/probes/lttng-probe-timer.o] Error 1
  make[2]: *** Waiting for unfinished jobs....
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-vtid.o
    LD [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lib/lttng-lib-ring-buffer.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-ppid.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-vppid.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-cpu-id.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-interruptible.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-need-reschedule.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-calibrate.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/lttng-context-hostname.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/wrapper/random.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/probes/lttng.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/wrapper/trace-clock.o
    CC [M]  /var/lib/dkms/lttng-modules/2.10.5/build/wrapper/page_alloc.o
  scripts/Makefile.build:581: recipe for target '/var/lib/dkms/lttng-modules/2.10.5/build/probes' failed
  make[1]: *** [/var/lib/dkms/lttng-modules/2.10.5/build/probes] Error 2
  make[1]: *** Waiting for unfinished jobs....
  Makefile:1546: recipe for target '_module_/var/lib/dkms/lttng-modules/2.10.5/build' failed
  make: *** [_module_/var/lib/dkms/lttng-modules/2.10.5/build] Error 2
  make: Leaving directory '/usr/src/linux-headers-4.18.0-11-generic'

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: lttng-modules-dkms 2.10.5-1ubuntu1.1
  ProcVersionSignature: User Name 4.18.0-11.12~18.04.1-generic 4.18.12
  Uname: Linux 4.18.0-11-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.4
  Architecture: amd64
  Date: Fri Nov  9 04:29:19 2018
  PackageArchitecture: all
  SourcePackage: lttng-modules
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1802443/+subscriptions


References