thopiekar / rcraid-dkms

AMD RAIDXpert driver as DKMS package
Other
126 stars 27 forks source link

Fails to install on Ubuntu kernel 5.15.0-113 an up #57

Open amalitsky opened 1 month ago

amalitsky commented 1 month ago

Getting following error during system upgrade:

Backing up initrd.img-5.15.0-105-generic to /boot/initrd.img-5.15.0-105-generic.old-dkms
Making new initrd.img-5.15.0-105-generic
(If next boot fails, revert to initrd.img-5.15.0-105-generic.old-dkms image)
update-initramfs....
Building initial module for 5.15.0-113-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/rcraid-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.15.0-113-generic (x86_64)
Consult /var/lib/dkms/rcraid/8.1.0/build/make.log for more information.
dpkg: error processing package rcraid-dkms (--configure):
 installed rcraid-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 rcraid-dkms
E:Sub-process /usr/bin/dpkg returned an error code (1)
Log ended: 2024-07-07  06:13:03

and /var/lib/dkms/rcraid/8.1.0/build/make.log:

DKMS make.log for rcraid-8.1.0 for kernel 5.15.0-116-generic (x86_64)
Mon Jul 15 05:14:01 PM PDT 2024
make: Entering directory '/var/lib/dkms/rcraid/8.1.0/build/src'
make -C /lib/modules/5.15.0-116-generic/build M=/var/lib/dkms/rcraid/8.1.0/build/src
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-116-generic'
ln -sf `basename /var/lib/dkms/rcraid/8.1.0/build/src/rcblob.x86_64.o .o` /var/lib/dkms/rcraid/8.1.0/build/src/rcblob.x86_64.o
  CC [M]  /var/lib/dkms/rcraid/8.1.0/build/src/rc_init.o
  CC [M]  /var/lib/dkms/rcraid/8.1.0/build/src/rc_msg.o
  CC [M]  /var/lib/dkms/rcraid/8.1.0/build/src/rc_mem_ops.o
  CC [M]  /var/lib/dkms/rcraid/8.1.0/build/src/rc_event.o
  CC [M]  /var/lib/dkms/rcraid/8.1.0/build/src/rc_config.o
  CC [M]  /var/lib/dkms/rcraid/8.1.0/build/src/vers.o
/var/lib/dkms/rcraid/8.1.0/build/src/rc_init.c: In function ‘rcraid_resume_one’:
/var/lib/dkms/rcraid/8.1.0/build/src/rc_init.c:1105:9: warning: ignoring return value of ‘pci_enable_device’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1105 |         pci_enable_device(adapter->pdev);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rcraid/8.1.0/build/src/rc_init.c:1130:5: warning: ignoring return value of ‘pcim_enable_device’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1130 |     pcim_enable_device(pdev);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
  LD [M]  /var/lib/dkms/rcraid/8.1.0/build/src/rcraid.o
  MODPOST /var/lib/dkms/rcraid/8.1.0/build/src/Module.symvers
ERROR: modpost: GPL-incompatible module rcraid.ko uses GPL-only symbol 'rcu_read_unlock_strict'
make[2]: *** [scripts/Makefile.modpost:133: /var/lib/dkms/rcraid/8.1.0/build/src/Module.symvers] Error 1
make[2]: *** Deleting file '/var/lib/dkms/rcraid/8.1.0/build/src/Module.symvers'
make[1]: *** [Makefile:1830: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-116-generic'
make: *** [Makefile:68: module] Error 2
make: Leaving directory '/var/lib/dkms/rcraid/8.1.0/build/src'

Please give me some pointers, I rely on this driver and no system engineer myself.

Strt-Pnk commented 1 month ago

struggled with this myself, switched to this guy's repo instead who fixed it yesterday, it's also v9.3.0.283 if you use NVMe RAID for some reason:

https://github.com/MarkLTZ/rcraid-dkms/tree/latest

you can use this post to install, in-case you don't know how to: https://github.com/thopiekar/rcraid-dkms/pull/47#issuecomment-1670431086