← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2112448] [NEW] DKMS for ubuntu_lttng_smoke_test failed to build on N-6.14 variant (error: too few arguments to function ‘uprobe_register’)

 

Public bug reported:

Issue found on N/oem-6.14 6.14.0-1003.3, I believe this is affecting
other Noble 6.14 variants as well.

DKMS build failed with:
 Error! Bad return status for module build on kernel: 6.14.0-1003-oem (x86_64)
 Consult /var/lib/dkms/lttng-modules/2.13.11/build/make.log for more information.
 dpkg: error processing package lttng-modules-dkms (--configure):
  installed lttng-modules-dkms package post-installation script subprocess returned error exit status 10
 Setting up g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ...
 Setting up gcc-multilib (4:13.2.0-7ubuntu1) ...
 Setting up g++-13 (13.3.0-6ubuntu2~24.04) ...
 Setting up g++ (4:13.2.0-7ubuntu1) ...
 update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
 Setting up build-essential (12.10ubuntu1) ...
 Processing triggers for sgml-base (1.31) ...
 Processing triggers for libc-bin (2.39-0ubuntu8.4) ...
 Processing triggers for man-db (2.12.0-4build2) ...
 Setting up lttng-tools (2.13.11-2.1build4) ...
 Created symlink /etc/systemd/system/multi-user.target.wants/lttng-sessiond.service → /usr/lib/systemd/system/lttng-sessiond.service.

 Errors were encountered while processing:
  lttng-modules-dkms
 needrestart is being skipped since dpkg has failed
 W: --force-yes is deprecated, use one of the options starting with --allow instead.
 E: Sub-process /usr/bin/dpkg returned an error code (1)
'which gcc'
 /usr/bin/gcc
'dkms status -m lttng-modules | grep installed'
'cat /var/lib/dkms/lttng-modules/*/build/make.log'
 DKMS make.log for lttng-modules-2.13.11 for kernel 6.14.0-1003-oem (x86_64)
 Wed Apr 16 05:48:20 UTC 2025
 make: Entering directory '/usr/src/linux-headers-6.14.0-1003-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.14.0-1003-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.14.0-1003-oem/arch/x86/kvm/lapic.h not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.
   CC [M]  src/lib/ringbuffer/ring_buffer_backend.o
 src/probes/Kbuild:188: Files /usr/src/linux-headers-6.14.0-1003-oem/fs/btrfs/*.h not found. Probe "btrfs" is disabled. Use full kernel source tree to enable it.
 src/probes/Kbuild:207: Files /usr/src/linux-headers-6.14.0-1003-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.14.0-1003-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.14.0-1003-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/events.h:19,
                  from src/probes/../../include/lttng/tracer.h:27,
                  from src/probes/lttng-probe-sched.c:11:
 src/probes/../../include/wrapper/uprobes.h: In function ‘wrapper_uprobe_register’:
 src/probes/../../include/wrapper/uprobes.h:28:47: warning: passing argument 3 of ‘uprobe_register’ makes integer from pointer without a cast [-Wint-conversion]
    28 |         return uprobe_register(inode, offset, uc);
       |                                               ^~
       |                                               |
       |                                               struct uprobe_consumer *
 In file included from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/mm_types.h:16,
                  from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/mmzone.h:22,
                  from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/gfp.h:7,
                  from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/umh.h:4,
                  from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/kmod.h:9,
                  from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/module.h:17,
                  from src/probes/lttng-probe-sched.c:10:
 /usr/src/linux-headers-6.14.0-1003-oem/include/linux/uprobes.h:195:82: note: expected ‘loff_t’ {aka ‘long long int’} but argument is of type ‘struct uprobe_consumer *’
   195 | extern struct uprobe *uprobe_register(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct uprobe_consumer *uc);
       |                                                                           ~~~~~~~^~~~~~~~~~~~~~
 src/probes/../../include/wrapper/uprobes.h:28:16: error: too few arguments to function ‘uprobe_register’
    28 |         return uprobe_register(inode, offset, uc);
       |                ^~~~~~~~~~~~~~~
 /usr/src/linux-headers-6.14.0-1003-oem/include/linux/uprobes.h:195:23: note: declared here
   195 | extern struct uprobe *uprobe_register(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct uprobe_consumer *uc);
       |                       ^~~~~~~~~~~~~~~
 src/probes/../../include/wrapper/uprobes.h: In function ‘wrapper_uprobe_unregister’:
 src/probes/../../include/wrapper/uprobes.h:34:9: error: implicit declaration of function ‘uprobe_unregister’; did you mean ‘uprobe_register’? [-Werror=implicit-function-declaration]
    34 |         uprobe_unregister(inode, offset, uc);
       |         ^~~~~~~~~~~~~~~~~
       |         uprobe_register
 cc1: some warnings being treated as errors
 make[5]: *** [/usr/src/linux-headers-6.14.0-1003-oem/scripts/Makefile.build:207: src/probes/lttng-probe-sched.o] Error 1
 make[4]: *** [/usr/src/linux-headers-6.14.0-1003-oem/scripts/Makefile.build:465: src/probes] Error 2
 make[4]: *** Waiting for unfinished jobs....
   CC [M]  src/lib/ringbuffer/ring_buffer_frontend.o
 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)
       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   CC [M]  src/lib/ringbuffer/ring_buffer_iterator.o
   CC [M]  src/lib/ringbuffer/ring_buffer_vfs.o
   CC [M]  src/lib/ringbuffer/ring_buffer_splice.o
 In file included from src/lib/../../include/lttng/events.h:19,
                  from src/lib/../../include/lttng/tracer.h:27,
                  from src/lib/ringbuffer/ring_buffer_vfs.c:18:
 src/lib/../../include/wrapper/uprobes.h: In function ‘wrapper_uprobe_register’:
 src/lib/../../include/wrapper/uprobes.h:28:47: warning: passing argument 3 of ‘uprobe_register’ makes integer from pointer without a cast [-Wint-conversion]
    28 |         return uprobe_register(inode, offset, uc);
       |                                               ^~
       |                                               |
       |                                               struct uprobe_consumer *
 In file included from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/mm_types.h:16,
                  from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/mmzone.h:22,
                  from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/gfp.h:7,
                  from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/umh.h:4,
                  from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/kmod.h:9,
                  from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/module.h:17,
                  from src/lib/ringbuffer/ring_buffer_vfs.c:10:
 /usr/src/linux-headers-6.14.0-1003-oem/include/linux/uprobes.h:195:82: note: expected ‘loff_t’ {aka ‘long long int’} but argument is of type ‘struct uprobe_consumer *’
   195 | extern struct uprobe *uprobe_register(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct uprobe_consumer *uc);
       |                                                                           ~~~~~~~^~~~~~~~~~~~~~
 src/lib/../../include/wrapper/uprobes.h:28:16: error: too few arguments to function ‘uprobe_register’
    28 |         return uprobe_register(inode, offset, uc);
       |                ^~~~~~~~~~~~~~~
 /usr/src/linux-headers-6.14.0-1003-oem/include/linux/uprobes.h:195:23: note: declared here
   195 | extern struct uprobe *uprobe_register(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct uprobe_consumer *uc);
       |                       ^~~~~~~~~~~~~~~
 src/lib/../../include/wrapper/uprobes.h: In function ‘wrapper_uprobe_unregister’:
 src/lib/../../include/wrapper/uprobes.h:34:9: error: implicit declaration of function ‘uprobe_unregister’; did you mean ‘uprobe_register’? [-Werror=implicit-function-declaration]
    34 |         uprobe_unregister(inode, offset, uc);
       |         ^~~~~~~~~~~~~~~~~
       |         uprobe_register
 cc1: some warnings being treated as errors
 make[5]: *** [/usr/src/linux-headers-6.14.0-1003-oem/scripts/Makefile.build:207: src/lib/ringbuffer/ring_buffer_vfs.o] Error 1
 make[5]: *** Waiting for unfinished jobs....
 make[4]: *** [/usr/src/linux-headers-6.14.0-1003-oem/scripts/Makefile.build:465: src/lib] Error 2
 make[3]: *** [/usr/src/linux-headers-6.14.0-1003-oem/scripts/Makefile.build:465: src] Error 2
 make[2]: *** [/usr/src/linux-headers-6.14.0-1003-oem/Makefile:1999: .] Error 2
 make[1]: *** [/usr/src/linux-headers-6.14.0-1003-oem/Makefile:251: __sub-make] Error 2
 make[1]: Leaving directory '/var/lib/dkms/lttng-modules/2.13.11/build'
 make: *** [Makefile:251: __sub-make] Error 2
 make: Leaving directory '/usr/src/linux-headers-6.14.0-1003-oem'

** Affects: ubuntu-kernel-tests
     Importance: Undecided
         Status: New


** Tags: 6.14 noble sru-s20250414 ubuntu-lttng-smoke-test

** Summary changed:

- DKMS for ubuntu_lttng_smoke_test failed to build on N-6.14 variant
+ DKMS for ubuntu_lttng_smoke_test failed to build on N-6.14 variant (error: too few arguments to function ‘uprobe_register’)

-- 
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/2112448

Title:
  DKMS for ubuntu_lttng_smoke_test failed to build on N-6.14 variant
  (error: too few arguments to function ‘uprobe_register’)

Status in ubuntu-kernel-tests:
  New

Bug description:
  Issue found on N/oem-6.14 6.14.0-1003.3, I believe this is affecting
  other Noble 6.14 variants as well.

  DKMS build failed with:
   Error! Bad return status for module build on kernel: 6.14.0-1003-oem (x86_64)
   Consult /var/lib/dkms/lttng-modules/2.13.11/build/make.log for more information.
   dpkg: error processing package lttng-modules-dkms (--configure):
    installed lttng-modules-dkms package post-installation script subprocess returned error exit status 10
   Setting up g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ...
   Setting up gcc-multilib (4:13.2.0-7ubuntu1) ...
   Setting up g++-13 (13.3.0-6ubuntu2~24.04) ...
   Setting up g++ (4:13.2.0-7ubuntu1) ...
   update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
   Setting up build-essential (12.10ubuntu1) ...
   Processing triggers for sgml-base (1.31) ...
   Processing triggers for libc-bin (2.39-0ubuntu8.4) ...
   Processing triggers for man-db (2.12.0-4build2) ...
   Setting up lttng-tools (2.13.11-2.1build4) ...
   Created symlink /etc/systemd/system/multi-user.target.wants/lttng-sessiond.service → /usr/lib/systemd/system/lttng-sessiond.service.

   Errors were encountered while processing:
    lttng-modules-dkms
   needrestart is being skipped since dpkg has failed
   W: --force-yes is deprecated, use one of the options starting with --allow instead.
   E: Sub-process /usr/bin/dpkg returned an error code (1)
  'which gcc'
   /usr/bin/gcc
  'dkms status -m lttng-modules | grep installed'
  'cat /var/lib/dkms/lttng-modules/*/build/make.log'
   DKMS make.log for lttng-modules-2.13.11 for kernel 6.14.0-1003-oem (x86_64)
   Wed Apr 16 05:48:20 UTC 2025
   make: Entering directory '/usr/src/linux-headers-6.14.0-1003-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.14.0-1003-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.14.0-1003-oem/arch/x86/kvm/lapic.h not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.
     CC [M]  src/lib/ringbuffer/ring_buffer_backend.o
   src/probes/Kbuild:188: Files /usr/src/linux-headers-6.14.0-1003-oem/fs/btrfs/*.h not found. Probe "btrfs" is disabled. Use full kernel source tree to enable it.
   src/probes/Kbuild:207: Files /usr/src/linux-headers-6.14.0-1003-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.14.0-1003-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.14.0-1003-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/events.h:19,
                    from src/probes/../../include/lttng/tracer.h:27,
                    from src/probes/lttng-probe-sched.c:11:
   src/probes/../../include/wrapper/uprobes.h: In function ‘wrapper_uprobe_register’:
   src/probes/../../include/wrapper/uprobes.h:28:47: warning: passing argument 3 of ‘uprobe_register’ makes integer from pointer without a cast [-Wint-conversion]
      28 |         return uprobe_register(inode, offset, uc);
         |                                               ^~
         |                                               |
         |                                               struct uprobe_consumer *
   In file included from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/mm_types.h:16,
                    from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/mmzone.h:22,
                    from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/gfp.h:7,
                    from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/umh.h:4,
                    from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/kmod.h:9,
                    from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/module.h:17,
                    from src/probes/lttng-probe-sched.c:10:
   /usr/src/linux-headers-6.14.0-1003-oem/include/linux/uprobes.h:195:82: note: expected ‘loff_t’ {aka ‘long long int’} but argument is of type ‘struct uprobe_consumer *’
     195 | extern struct uprobe *uprobe_register(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct uprobe_consumer *uc);
         |                                                                           ~~~~~~~^~~~~~~~~~~~~~
   src/probes/../../include/wrapper/uprobes.h:28:16: error: too few arguments to function ‘uprobe_register’
      28 |         return uprobe_register(inode, offset, uc);
         |                ^~~~~~~~~~~~~~~
   /usr/src/linux-headers-6.14.0-1003-oem/include/linux/uprobes.h:195:23: note: declared here
     195 | extern struct uprobe *uprobe_register(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct uprobe_consumer *uc);
         |                       ^~~~~~~~~~~~~~~
   src/probes/../../include/wrapper/uprobes.h: In function ‘wrapper_uprobe_unregister’:
   src/probes/../../include/wrapper/uprobes.h:34:9: error: implicit declaration of function ‘uprobe_unregister’; did you mean ‘uprobe_register’? [-Werror=implicit-function-declaration]
      34 |         uprobe_unregister(inode, offset, uc);
         |         ^~~~~~~~~~~~~~~~~
         |         uprobe_register
   cc1: some warnings being treated as errors
   make[5]: *** [/usr/src/linux-headers-6.14.0-1003-oem/scripts/Makefile.build:207: src/probes/lttng-probe-sched.o] Error 1
   make[4]: *** [/usr/src/linux-headers-6.14.0-1003-oem/scripts/Makefile.build:465: src/probes] Error 2
   make[4]: *** Waiting for unfinished jobs....
     CC [M]  src/lib/ringbuffer/ring_buffer_frontend.o
   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)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     CC [M]  src/lib/ringbuffer/ring_buffer_iterator.o
     CC [M]  src/lib/ringbuffer/ring_buffer_vfs.o
     CC [M]  src/lib/ringbuffer/ring_buffer_splice.o
   In file included from src/lib/../../include/lttng/events.h:19,
                    from src/lib/../../include/lttng/tracer.h:27,
                    from src/lib/ringbuffer/ring_buffer_vfs.c:18:
   src/lib/../../include/wrapper/uprobes.h: In function ‘wrapper_uprobe_register’:
   src/lib/../../include/wrapper/uprobes.h:28:47: warning: passing argument 3 of ‘uprobe_register’ makes integer from pointer without a cast [-Wint-conversion]
      28 |         return uprobe_register(inode, offset, uc);
         |                                               ^~
         |                                               |
         |                                               struct uprobe_consumer *
   In file included from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/mm_types.h:16,
                    from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/mmzone.h:22,
                    from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/gfp.h:7,
                    from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/umh.h:4,
                    from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/kmod.h:9,
                    from /usr/src/linux-headers-6.14.0-1003-oem/include/linux/module.h:17,
                    from src/lib/ringbuffer/ring_buffer_vfs.c:10:
   /usr/src/linux-headers-6.14.0-1003-oem/include/linux/uprobes.h:195:82: note: expected ‘loff_t’ {aka ‘long long int’} but argument is of type ‘struct uprobe_consumer *’
     195 | extern struct uprobe *uprobe_register(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct uprobe_consumer *uc);
         |                                                                           ~~~~~~~^~~~~~~~~~~~~~
   src/lib/../../include/wrapper/uprobes.h:28:16: error: too few arguments to function ‘uprobe_register’
      28 |         return uprobe_register(inode, offset, uc);
         |                ^~~~~~~~~~~~~~~
   /usr/src/linux-headers-6.14.0-1003-oem/include/linux/uprobes.h:195:23: note: declared here
     195 | extern struct uprobe *uprobe_register(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct uprobe_consumer *uc);
         |                       ^~~~~~~~~~~~~~~
   src/lib/../../include/wrapper/uprobes.h: In function ‘wrapper_uprobe_unregister’:
   src/lib/../../include/wrapper/uprobes.h:34:9: error: implicit declaration of function ‘uprobe_unregister’; did you mean ‘uprobe_register’? [-Werror=implicit-function-declaration]
      34 |         uprobe_unregister(inode, offset, uc);
         |         ^~~~~~~~~~~~~~~~~
         |         uprobe_register
   cc1: some warnings being treated as errors
   make[5]: *** [/usr/src/linux-headers-6.14.0-1003-oem/scripts/Makefile.build:207: src/lib/ringbuffer/ring_buffer_vfs.o] Error 1
   make[5]: *** Waiting for unfinished jobs....
   make[4]: *** [/usr/src/linux-headers-6.14.0-1003-oem/scripts/Makefile.build:465: src/lib] Error 2
   make[3]: *** [/usr/src/linux-headers-6.14.0-1003-oem/scripts/Makefile.build:465: src] Error 2
   make[2]: *** [/usr/src/linux-headers-6.14.0-1003-oem/Makefile:1999: .] Error 2
   make[1]: *** [/usr/src/linux-headers-6.14.0-1003-oem/Makefile:251: __sub-make] Error 2
   make[1]: Leaving directory '/var/lib/dkms/lttng-modules/2.13.11/build'
   make: *** [Makefile:251: __sub-make] Error 2
   make: Leaving directory '/usr/src/linux-headers-6.14.0-1003-oem'

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