Update to crimson fails

Hi,unfortunately, the update to Crimson did not work for me - After doing

sudo apt full-upgrade

I get

make -j4 KERNELRELEASE=6.1.0-49-amd64…(bad exit status: 2)Error! Bad return status for module build on kernel: 6.1.0-49-amd64 (x86_64)Consult /var/lib/dkms/vhba/20210418/build/make.log for more information.Error! One or more modules failed to install during autoinstall.Refer to previous errors for more information.dkms: autoinstall for kernel: 6.1.0-49-amd64 failed!run-parts: /etc/kernel/postinst.d/dkms exited with return code 11dpkg: error processing package linux-image-6.1.0-49-amd64 (–configure):installed linux-image-6.1.0-49-amd64 package post-installation script subprocess returned error exit status 1dpkg: dependency problems prevent configuration of linux-image-amd64:linux-image-amd64 depends on linux-image-6.1.0-49-amd64 (= 6.1.174-1); however:Package linux-image-6.1.0-49-amd64 is not configured yet.
dpkg: error processing package linux-image-amd64 (–configure):dependency problems - leaving unconfiguredErrors were encountered while processing:linux-headers-6.1.0-49-amd64linux-headers-amd64linux-image-6.1.0-49-amd64linux-image-amd64E: Sub-process /usr/bin/dpkg returned an error code (1)

In /var/lib/dkms/vhba/20210418/build/make.log I find the messages

make -C /lib/modules/6.1.0-49-amd64/build M=/var/lib/dkms/vhba/20210418/build modulesmake[1]: Entering directory ‘/usr/src/linux-headers-6.1.0-49-amd64’CC [M] /var/lib/dkms/vhba/20210418/build/vhba.o/var/lib/dkms/vhba/20210418/build/vhba.c: In function ‘vhba_device_queue’:/var/lib/dkms/vhba/20210418/build/vhba.c:206:30: error: ‘struct scsi_cmnd’ has no member named ‘request’206 | vcmd->metatag = vcmd->cmd->request->tag;| ^~In file included from /usr/src/linux-headers-6.1.0-49-common/include/linux/printk.h:566,from /usr/src/linux-headers-6.1.0-49-common/include/asm-generic/bug.h:22,from /usr/src/linux-headers-6.1.0-49-common/arch/x86/include/asm/bug.h:87,from /usr/src/linux-headers-6.1.0-49-common/arch/x86/include/asm/alternative.h:8,from /usr/src/linux-headers-6.1.0-49-common/arch/x86/include/asm/barrier.h:5,from /usr/src/linux-headers-6.1.0-49-common/include/linux/list.h:11,from /usr/src/linux-headers-6.1.0-49-common/include/linux/module.h:12,from /var/lib/dkms/vhba/20210418/build/vhba.c:26:/var/lib/dkms/vhba/20210418/build/vhba.c: In function ‘vhba_queuecommand’:/var/lib/dkms/vhba/20210418/build/vhba.c:476:48: error: ‘struct scsi_cmnd’ has no member named ‘request’476 | scmd_dbg(cmd, “queue %p tag %i\n”, cmd, cmd->request->tag);| ^~/usr/src/linux-headers-6.1.0-49-common/include/linux/dynamic_debug.h:223:29: note: in definition of macro ‘__dynamic_func_call_cls’223 | func(&id, ##VA_ARGS); | ^~~~~~~~~~~/usr/src/linux-headers-6.1.0-49-common/include/linux/dynamic_debug.h:249:9: note: in expansion of macro ‘_dynamic_func_call_cls’249 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##VA_ARGS)| ^~~~~~~~~~~~~~~~~~~~~~/usr/src/linux-headers-6.1.0-49-common/include/linux/dynamic_debug.h:272:9: note: in expansion of macro ‘_dynamic_func_call’

Why is it complaiing about that ‘request’ member?

Is there anything I can do now to get Crimson built and installed on my Librem15rev3?

You appear to have some custom kernel module (vhba, apparently related to CDEmu) installed through dkms and it fails to build with crimson’s kernel. Either remove or fix that module to work with newer kernels.

The package with this module didn’t exist in PureOS until dawn (it was introduced in Debian with trixie), so you must have installed it from some third party source.

1 Like

OK,

indeed, after doing

sudo dkms remove vhba/20210418

the upgrade completed. Now I will try to reboot…

Thanks for the hint.

1 Like

OK, after I rebooted, the system came up with Crimson, and it seems rather well-behaved. No big show-stoppers!

Great!

1 Like