← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2122631] Re: DKMS for ubuntu_lttng_smoke_test failed to build on N-6.17 variant (error: conflicting types for ‘trace_sched_process_exit’on ‘uprobe_register’)

 

** Tags added: 6.17 oem ubuntu-lttng-smoke-test

** Tags added: noble

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2122631

Title:
   DKMS for ubuntu_lttng_smoke_test failed to build on N-6.17 variant
  (error: conflicting types for ‘trace_sched_process_exit’on
  ‘uprobe_register’)

Status in ubuntu-kernel-tests:
  New

Bug description:
  Issue found on N/oem-6.17 6.17.0-1002.2, I believe this is affecting
  other Noble 6.17 variants as well.

  build log:
   Running 'cat /var/lib/dkms/lttng-modules/*/build/make.log'
   DKMS make.log for lttng-modules-2.13.11 for kernel 6.17.0-1002-oem (x86_64)
   Tue Sep  9 08:39:24 UTC 2025
   make: Entering directory '/usr/src/linux-headers-6.17.0-1002-oem'
   make[1]: Entering directory '/var/lib/dkms/lttng-modules/2.13.11/build'
   warning: the compiler differs from the one used to build the kernel
     The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
     You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
   src/probes/Kbuild:27: File /usr/src/linux-headers-6.17.0-1002-oem/mm/slab.h not found. Probe "kmem" is disabled. Use full kernel source tree to enable it.
   src/probes/Kbuild:81: File /usr/src/linux-headers-6.17.0-1002-oem/arch/x86/kvm/lapic.h not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.
   src/probes/Kbuild:188: Files /usr/src/linux-headers-6.17.0-1002-oem/fs/btrfs/*.h not found. Probe "btrfs" is disabled. Use full kernel source tree to enable it.
     CC [M]  src/lib/ringbuffer/ring_buffer_backend.o
   src/probes/Kbuild:207: Files /usr/src/linux-headers-6.17.0-1002-oem/mm/internal.h not found. Probe "compaction" is disabled. Use full kernel source tree to enable it.
   src/probes/Kbuild:216: Files /usr/src/linux-headers-6.17.0-1002-oem/fs/ext4/*.h not found. Probe "ext4" is disabled. Use full kernel source tree to enable it.
   src/probes/Kbuild:245: File /usr/src/linux-headers-6.17.0-1002-oem/drivers/base/regmap/trace.h not found. Probe "regmap" is disabled. Need Linux 4.1+ kernel source tree to enable it.
     CC [M]  src/probes/lttng-probe-sched.o
   In file included from src/probes/../../include/lttng/define_trace.h:87,
                    from src/probes/../../include/instrumentation/events/sched.h:730,
                    from src/probes/lttng-probe-sched.c:28:
   src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for ‘trace_sched_process_exit’; have ‘void(struct task_struct *)’
     133 | void trace_##_name(_proto);
         |      ^~~~~~
   src/probes/../../include/lttng/tracepoint-event-impl.h:98:9: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP’
      98 |         LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(template, name, name, PARAMS(proto), PARAMS(args))
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   src/probes/../../include/instrumentation/events/sched.h:474:1: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_INSTANCE’
     474 | LTTNG_TRACEPOINT_EVENT_INSTANCE(sched_process_template, sched_process_exit,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from /usr/src/linux-headers-6.17.0-1002-oem/include/trace/events/sched.h:10,
                    from src/probes/lttng-probe-sched.c:17:
   /usr/src/linux-headers-6.17.0-1002-oem/include/linux/tracepoint.h:278:28: note: previous definition of ‘trace_sched_process_exit’ with type ‘void(struct task_struct *, bool)’ {aka ‘void(struct task_struct *, _Bool)’}
     278 |         static inline void trace_##name(proto)                          \
         |                            ^~~~~~
   /usr/src/linux-headers-6.17.0-1002-oem/include/linux/tracepoint.h:481:9: note: in expansion of macro ‘__DECLARE_TRACE’
     481 |         __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
         |         ^~~~~~~~~~~~~~~
   /usr/src/linux-headers-6.17.0-1002-oem/include/linux/tracepoint.h:619:9: note: in expansion of macro ‘DECLARE_TRACE_EVENT’
     619 |         DECLARE_TRACE_EVENT(name, PARAMS(proto), PARAMS(args))
         |         ^~~~~~~~~~~~~~~~~~~
   /usr/src/linux-headers-6.17.0-1002-oem/include/trace/events/sched.h:335:1: note: in expansion of macro ‘TRACE_EVENT’
     335 | TRACE_EVENT(sched_process_exit,
         | ^~~~~~~~~~~
   make[5]: *** [/usr/src/linux-headers-6.17.0-1002-oem/scripts/Makefile.build:287: src/probes/lttng-probe-sched.o] Error 1
   make[4]: *** [/usr/src/linux-headers-6.17.0-1002-oem/scripts/Makefile.build:556: src/probes] Error 2
     CC [M]  src/lib/ringbuffer/ring_buffer_frontend.o
   make[4]: *** Waiting for unfinished jobs....
   In file included from src/lib/ringbuffer/ring_buffer_frontend.c:54:
   src/lib/ringbuffer/ring_buffer_frontend.c: In function ‘switch_buffer_timer’:
   src/lib/../../include/wrapper/timer.h:38:9: error: implicit declaration of function ‘from_timer’; did you mean ‘mod_timer’? [-Werror=implicit-function-declaration]
      38 |         from_timer(var, callback_timer, timer_fieldname)
         |         ^~~~~~~~~~
   src/lib/ringbuffer/ring_buffer_frontend.c:337:48: note: in expansion of macro ‘lttng_from_timer’
     337 |         struct lttng_kernel_ring_buffer *buf = lttng_from_timer(buf, t, switch_timer);
         |                                                ^~~~~~~~~~~~~~~~
   src/lib/ringbuffer/ring_buffer_frontend.c:337:73: error: ‘switch_timer’ undeclared (first use in this function); did you mean ‘switch_mode’?
     337 |         struct lttng_kernel_ring_buffer *buf = lttng_from_timer(buf, t, switch_timer);
         |                                                                         ^~~~~~~~~~~~
   src/lib/../../include/wrapper/timer.h:38:41: note: in definition of macro ‘lttng_from_timer’
      38 |         from_timer(var, callback_timer, timer_fieldname)
         |                                         ^~~~~~~~~~~~~~~
   src/lib/ringbuffer/ring_buffer_frontend.c:337:73: note: each undeclared identifier is reported only once for each function it appears in
     337 |         struct lttng_kernel_ring_buffer *buf = lttng_from_timer(buf, t, switch_timer);
         |                                                                         ^~~~~~~~~~~~
   src/lib/../../include/wrapper/timer.h:38:41: note: in definition of macro ‘lttng_from_timer’
      38 |         from_timer(var, callback_timer, timer_fieldname)
         |                                         ^~~~~~~~~~~~~~~
   src/lib/ringbuffer/ring_buffer_frontend.c: In function ‘lib_ring_buffer_stop_switch_timer’:
   src/lib/ringbuffer/ring_buffer_frontend.c:391:9: error: implicit declaration of function ‘del_timer_sync’ [-Werror=implicit-function-declaration]
     391 |         del_timer_sync(&buf->switch_timer);
         |         ^~~~~~~~~~~~~~
   src/lib/ringbuffer/ring_buffer_frontend.c: In function ‘read_buffer_timer’:
   src/lib/ringbuffer/ring_buffer_frontend.c:400:73: error: ‘read_timer’ undeclared (first use in this function); did you mean ‘vread_iter’?
     400 |         struct lttng_kernel_ring_buffer *buf = lttng_from_timer(buf, t, read_timer);
         |                                                                         ^~~~~~~~~~
   src/lib/../../include/wrapper/timer.h:38:41: note: in definition of macro ‘lttng_from_timer’
      38 |         from_timer(var, callback_timer, timer_fieldname)
         |                                         ^~~~~~~~~~~~~~~
   src/lib/ringbuffer/ring_buffer_frontend.c: At top level:
   src/lib/ringbuffer/ring_buffer_frontend.c:2409:12: warning: no previous prototype for ‘init_lib_ring_buffer_frontend’ [-Wmissing-prototypes]
    2409 | int __init init_lib_ring_buffer_frontend(void)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   src/lib/ringbuffer/ring_buffer_frontend.c:2420:13: warning: no previous prototype for ‘exit_lib_ring_buffer_frontend’ [-Wmissing-prototypes]
    2420 | void __exit exit_lib_ring_buffer_frontend(void)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[5]: *** [/usr/src/linux-headers-6.17.0-1002-oem/scripts/Makefile.build:287: src/lib/ringbuffer/ring_buffer_frontend.o] Error 1
   make[5]: *** Waiting for unfinished jobs....
   make[4]: *** [/usr/src/linux-headers-6.17.0-1002-oem/scripts/Makefile.build:556: src/lib] Error 2
   make[3]: *** [/usr/src/linux-headers-6.17.0-1002-oem/scripts/Makefile.build:556: src] Error 2
   make[2]: *** [/usr/src/linux-headers-6.17.0-1002-oem/Makefile:2016: .] Error 2
   make[1]: *** [/usr/src/linux-headers-6.17.0-1002-oem/Makefile:248: __sub-make] Error 2
   make[1]: Leaving directory '/var/lib/dkms/lttng-modules/2.13.11/build'
   make: *** [Makefile:248: __sub-make] Error 2
   make: Leaving directory '/usr/src/linux-headers-6.17.0-1002-oem'

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



References