Skip to content

DKMS build errors with kernel 6.8.0-52-generic #17

Description

@hernanmd

BTW this is kind of a "default" or "standard" Ubuntu installation:

Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.5 LTS
Release:	22.04
Codename:	jammy

Using the code in this repository (which supposedly has a patch to make it work in "newer" kernels like 6.8...) I've successfully built and installed the package using dpkg -i gasket-dkms_1.0-18_all.deb in Ubuntu 22 for the kernel 6.8.0-52-generic.

But when I try to build the module:

sudo dkms build -m gasket-dkms -v 1.0-18
sudo dkms install -m gasket-dkms -v 1.0-18

I get these errors:

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
make -C /lib/modules/6.8.0-52-generic/build M=/var/lib/dkms/gasket-dkms/1.0-18/build/src clean
make: Entering directory '/usr/src/linux-headers-6.8.0-52-generic'
make: Leaving directory '/usr/src/linux-headers-6.8.0-52-generic'

{ make -j32 KERNELRELEASE=6.8.0-52-generic -C /lib/modules/6.8.0-52-generic/build M=/var/lib/dkms/gasket-dkms/1.0-18/build/src modules; } >> /var/lib/dkms/gasket-dkms/1.0-18/build/make.log 2>&1

ERROR (dkms apport): binary package for gasket-dkms: 1.0-18 not found
Error!  Build of gasket.ko failed for: 6.8.0-52-generic (x86_64)
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/gasket-dkms/1.0-18/build/ for more information.

This is my /usr/src/gasket-dkms-1.0-18/dkms.conf

PACKAGE_NAME="google-coral-dkms"
PACKAGE_VERSION="@PKGVER@"

PACKAGE_NAME="gasket-dkms"
PACKAGE_VERSION="1.0-18"
BUILT_MODULE_NAME[0]="gasket"
BUILT_MODULE_NAME[1]="apex"
DEST_MODULE_LOCATION[0]="/kernel/drivers/staging/gasket"
DEST_MODULE_LOCATION[1]="/kernel/drivers/staging/gasket"
AUTOINSTALL="yes"
MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/src modules"
CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/src clean"

The make.log does not seem to contain too much information

DKMS make.log for gasket-dkms-1.0-18 for kernel 6.8.0-52-generic (x86_64)
mer. 12 mars 2025 18:01:52 CET
make: Entering directory '/usr/src/linux-headers-6.8.0-52-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu122.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1
22.04) 12.3.0
CC [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/gasket_core.o
CC [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/gasket_ioctl.o
CC [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/gasket_interrupt.o
CC [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/gasket_page_table.o
CC [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/gasket_sysfs.o
CC [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/apex_driver.o
LD [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/apex.o
LD [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/gasket.o
MODPOST /var/lib/dkms/gasket-dkms/1.0-18/build/src/Module.symvers
CC [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/gasket.mod.o
CC [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/apex.mod.o
LD [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/apex.ko
BTF [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/apex.ko
Skipping BTF generation for /var/lib/dkms/gasket-dkms/1.0-18/build/src/apex.ko due to unavailability of vmlinux
LD [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/gasket.ko
BTF [M] /var/lib/dkms/gasket-dkms/1.0-18/build/src/gasket.ko
Skipping BTF generation for /var/lib/dkms/gasket-dkms/1.0-18/build/src/gasket.ko due to unavailability of vmlinux
make: Leaving directory '/usr/src/linux-headers-6.8.0-52-generic'

Any hint will be appreciated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions