When I run sudo apt install kvaser-canlib-dev kvaser-linlib-dev kvaser-drivers-dkms, I get the following error below. It was running fine before. Is there a change to the Linux or Kvaser kernel that has caused this? Thanks in advance
ProblemType: Package
DKMSBuildLog:
DKMS make.log for kvaser-drivers-5.38.841 for kernel 5.19.0-46-generic (x86_64)
Fri Jun 14 12:02:06 PM PDT 2024
make[1]: Entering directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/common'
Start building linuxcan v5.38.84
User : root
System : Linux Tubpuller2 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
CC : x86_64-linux-gnu-gcc
CC ver. : 11.4.0
KDIR : /lib/modules/5.19.0-46-generic/build
Kernel : 5.19.0-46-generic
--------------------------------------------------------------------
building kvcommon
Kernel src: /lib/modules/5.19.0-46-generic/build
make -C /lib/modules/5.19.0-46-generic/build M=/var/lib/dkms/kvaser-drivers/5.38.841/build/common modules
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/VCanOsIf.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/objbuf.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/queue.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/util.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/softsync.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/capabilities.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/dlc.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/ticks.o
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/kvcommon.o
WARNING: Symbol version dump "/var/lib/dkms/kvaser-drivers/5.38.841/build/common/../common/Module.symvers" is missing.
Modules may not have dependencies or modversions.
You may get many unresolved symbol warnings.
MODPOST /var/lib/dkms/kvaser-drivers/5.38.841/build/common/Module.symvers
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/kvcommon.mod.o
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/kvcommon.ko
BTF [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/common/kvcommon.ko
Skipping BTF generation for /var/lib/dkms/kvaser-drivers/5.38.841/build/common/kvcommon.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
--------------------------------------------------------------------
make[1]: Leaving directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/common'
make[1]: Entering directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/leaf'
make[1]: Entering directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra'
make[1]: Entering directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/usbcanII'
make[1]: Entering directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/virtualcan'
make[1]: Entering directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/pcican'
make[1]: Entering directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2'
make[1]: Entering directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd'
--------------------------------------------------------------------
building leaf
--------------------------------------------------------------------
Kernel src: /lib/modules/5.19.0-46-generic/build
make -C /lib/modules/5.19.0-46-generic/build M=/var/lib/dkms/kvaser-drivers/5.38.841/build/leaf modules
--------------------------------------------------------------------
--------------------------------------------------------------------
building kvvirtualcan
building usbcanII
building kvpcicanII
Kernel src: /lib/modules/5.19.0-46-generic/build
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
Kernel src: /lib/modules/5.19.0-46-generic/build
make -C /lib/modules/5.19.0-46-generic/build M=/var/lib/dkms/kvaser-drivers/5.38.841/build/virtualcan modules
make -C /lib/modules/5.19.0-46-generic/build M=/var/lib/dkms/kvaser-drivers/5.38.841/build/usbcanII modules
--------------------------------------------------------------------
Kernel src: /lib/modules/5.19.0-46-generic/build
make -C /lib/modules/5.19.0-46-generic/build M=/var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2 modules
--------------------------------------------------------------------
--------------------------------------------------------------------
building mhydra
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
building kvpcican
Kernel src: /lib/modules/5.19.0-46-generic/build
building kvpciefd
make -C /lib/modules/5.19.0-46-generic/build M=/var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra modules
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
Kernel src: /lib/modules/5.19.0-46-generic/build
Kernel src: /lib/modules/5.19.0-46-generic/build
make -C /lib/modules/5.19.0-46-generic/build M=/var/lib/dkms/kvaser-drivers/5.38.841/build/pcican modules
make -C /lib/modules/5.19.0-46-generic/build M=/var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd modules
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra/mhydraHWIf.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/usbcanII/usbcanHWIf.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra/mhydraHWIf_TRP.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican/PciCanHwIf.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/leaf/leafHWIf.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2/PciCan2HwIf.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican/dallas.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra/ioctl_handler.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2/memQ.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/pciefd_hwif.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/altera/HAL/src/pciefd.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/virtualcan/virtualcan.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/altera/HAL/src/pciefd_packet.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/altera/HAL/src/pciefd_rx_fifo.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/altera/HAL/src/altera_avalon_epcs_flash_controller.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/altera/HAL/src/altera_avalon_spi.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/altera/HAL/src/epcs_commands.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/altera/HAL/src/pwm_util.o
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/virtualcan/kvvirtualcan.o
MODPOST /var/lib/dkms/kvaser-drivers/5.38.841/build/virtualcan/Module.symvers
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/virtualcan/kvvirtualcan.mod.o
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican/kvpcican.o
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2/kvpcicanII.o
MODPOST /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican/Module.symvers
MODPOST /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2/Module.symvers
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/usbcanII/usbcanII.o
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/virtualcan/kvvirtualcan.ko
BTF [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/virtualcan/kvvirtualcan.ko
Skipping BTF generation for /var/lib/dkms/kvaser-drivers/5.38.841/build/virtualcan/kvvirtualcan.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
--------------------------------------------------------------------
make[1]: Leaving directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/virtualcan'
MODPOST /var/lib/dkms/kvaser-drivers/5.38.841/build/usbcanII/Module.symvers
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican/kvpcican.mod.o
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2/kvpcicanII.mod.o
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/leaf/leaf.o
ERROR: modpost: "do_exit" [/var/lib/dkms/kvaser-drivers/5.38.841/build/usbcanII/usbcanII.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:128: /var/lib/dkms/kvaser-drivers/5.38.841/build/usbcanII/Module.symvers] Error 1
make[2]: *** [Makefile:1771: modules] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
make[1]: *** [/var/lib/dkms/kvaser-drivers/5.38.841/build/usbcanII/../config.mak:172: kv_module] Error 2
make[1]: Leaving directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/usbcanII'
make: *** [Makefile:124: usbcanII] Error 2
make: *** Waiting for unfinished jobs....
MODPOST /var/lib/dkms/kvaser-drivers/5.38.841/build/leaf/Module.symvers
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/kvpciefd.o
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2/kvpcicanII.ko
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican/kvpcican.ko
MODPOST /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/Module.symvers
BTF [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2/kvpcicanII.ko
Skipping BTF generation for /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2/kvpcicanII.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
--------------------------------------------------------------------
make[1]: Leaving directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/pcican2'
BTF [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican/kvpcican.ko
Skipping BTF generation for /var/lib/dkms/kvaser-drivers/5.38.841/build/pcican/kvpcican.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
--------------------------------------------------------------------
make[1]: Leaving directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/pcican'
ERROR: modpost: "do_exit" [/var/lib/dkms/kvaser-drivers/5.38.841/build/leaf/leaf.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:128: /var/lib/dkms/kvaser-drivers/5.38.841/build/leaf/Module.symvers] Error 1
make[2]: *** [Makefile:1771: modules] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
make[1]: *** [/var/lib/dkms/kvaser-drivers/5.38.841/build/leaf/../config.mak:172: kv_module] Error 2
make[1]: Leaving directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/leaf'
make: *** [Makefile:127: leaf] Error 2
CC [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/kvpciefd.mod.o
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/kvpciefd.ko
BTF [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/kvpciefd.ko
Skipping BTF generation for /var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd/kvpciefd.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
--------------------------------------------------------------------
make[1]: Leaving directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/pciefd'
LD [M] /var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra/mhydra.o
MODPOST /var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra/Module.symvers
ERROR: modpost: "do_exit" [/var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra/mhydra.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:128: /var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra/Module.symvers] Error 1
make[2]: *** [Makefile:1771: modules] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic'
make[1]: *** [/var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra/../config.mak:172: kv_module] Error 2
make[1]: Leaving directory '/var/lib/dkms/kvaser-drivers/5.38.841/build/mhydra'
make: *** [Makefile:130: mhydra] Error 2
DKMSKernelVersion: 5.19.0-46-generic
Date: Fri Jun 14 12:02:15 2024
Package: kvaser-drivers-dkms 5.38.841-0ubuntu0~ppa1
PackageVersion: 5.38.841-0ubuntu0~ppa1
SourcePackage: kvaser-drivers-dkms
Title: kvaser-drivers-dkms 5.38.841-0ubuntu0~ppa1: kvaser-drivers kernel module failed to build
Strange, what version of Ubuntu are you running?
I just tried today with 20.04 and it installed fine.
I assume you tried uninstalling and re-installing those apt packages already?
When I run
sudo apt install kvaser-canlib-dev kvaser-linlib-dev kvaser-drivers-dkms
, I get the following error below. It was running fine before. Is there a change to the Linux or Kvaser kernel that has caused this? Thanks in advance