Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1019250: lttng-modules-dkms: Build of lttng-probe-compaction.ko failed for: 5.18.0-4-arm64 (aarch64)

108 views
Skip to first unread message

Nick Gasson

unread,
Sep 6, 2022, 6:10:05 AM9/6/22
to
Package: lttng-modules-dkms
Version: 2.13.4-1
Severity: important

Dear Maintainer,

I get the following error when install lttng-modules-dkms:

Setting up lttng-modules-dkms (2.13.4-1) ...
Loading new lttng-modules-2.13.4 DKMS files...
Building for 5.18.0-4-arm64
Building initial module for 5.18.0-4-arm64
Error! Build of lttng-probe-compaction.ko failed for: 5.18.0-4-arm64 (aarch64)
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/lttng-modules/2.13.4/build for more information.
dpkg: error processing package lttng-modules-dkms (--configure):
installed lttng-modules-dkms package post-installation script subprocess returned error exit status 7
Setting up libgcc-11-dev:arm64 (11.3.0-5) ...
Setting up gcc-11 (11.3.0-5) ...
Setting up linux-headers-5.18.0-4-arm64 (5.18.16-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 5.18.0-4-arm64:
Building module:
cleaning build area...
make -j64 KERNELRELEASE=5.18.0-4-arm64 -C /lib/modules/5.18.0-4-arm64/build M=/var/lib/dkms/lttng-modules/2.13.4/build modules CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m............
Error! Build of lttng-probe-compaction.ko failed for: 5.18.0-4-arm64 (aarch64)
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/lttng-modules/2.13.4/build for more information.


The relevant part of make.log:

/var/lib/dkms/lttng-modules/2.13.4/build/src/probes/Kbuild:184: Files /usr/src/linux-headers-5.18.0-4-common/mm/internal.h not found. Probe "compaction" is disabled. Use full kernel source tree to enable it.


It seems that, starting from kernel 5.18, the compaction module depends
on a header file that is only available with the full kernel sources.
From src/probes/Kbuild:

# A dependency on internal header 'mm/internal.h' was introduced in v5.18
compaction_dep = $(srctree)/mm/internal.h
compaction_dep_wildcard = $(wildcard $(compaction_dep))
compaction_dep_check = $(shell \
if [ \( $(VERSION) -ge 6 \
-o \( $(VERSION) -eq 5 -a $(PATCHLEVEL) -ge 18 \) \) -a \
-z "$(compaction_dep_wildcard)" ] ; then \
echo "warn" ; \
else \
echo "ok" ; \
fi ;)
ifeq ($(compaction_dep_check),ok)
obj-$(CONFIG_LTTNG) += lttng-probe-compaction.o
else
$(warning Files $(compaction_dep) not found. Probe "compaction" is disabled. Use full kernel source tree to enable it.)
endif # $(wildcard $(compaction_dep))


The "random" module also won't build with 5.18:

# Introduced in v3.6, remove in v5.18
random_dep = $(srctree)/include/trace/events/random.h
ifneq ($(wildcard $(random_dep)),)
obj-$(CONFIG_LTTNG) += lttng-probe-random.o
endif


If I comment both these modules out of the DKMS config file it can
install OK.


-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (900, 'testing'), (400, 'unstable')
Architecture: arm64 (aarch64)

Kernel: Linux 5.18.0-4-arm64 (SMP w/64 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lttng-modules-dkms depends on:
ii dkms 3.0.3-4

Versions of packages lttng-modules-dkms recommends:
ii lttng-tools 2.13.7-1+b1

lttng-modules-dkms suggests no packages.

-- no debconf information
0 new messages