thopiekar / rcraid-dkms

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

Was able to use Ubuntu PPA with Kernel 5.15.0-92-generic in KDE Neon #52

Closed binarydepth closed 7 months ago

binarydepth commented 1 year ago

It compiles with workaround git clone https://github.com/Exioncore/rcraid-dkms -b compatibility_updates but doesn't format free space inside RAID 0

DKMS make.log for rcraid-8.1.0 for kernel 5.19.0-40-generic (x86_64)
vie 21 abr 2023 09:14:04 AST
make: Entering directory '/var/lib/dkms/rcraid/8.1.0/build/src'
make -C /lib/modules/5.19.0-40-generic/build M=/var/lib/dkms/rcraid/8.1.0/build/src
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-40-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) 11.3.0
  You are using:           gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
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_config.c:11:10: fatal error: linux/genhd.h: No such file or directory
   11 | #include <linux/genhd.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:257: /var/lib/dkms/rcraid/8.1.0/build/src/rc_config.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/lib/dkms/rcraid/8.1.0/build/src/rc.h:97,
                 from /var/lib/dkms/rcraid/8.1.0/build/src/rc_mem_ops.c:43:
/var/lib/dkms/rcraid/8.1.0/build/src/rc_msg_platform.h:30:10: fatal error: stdarg.h: No such file or directory
   30 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/rcraid/8.1.0/build/src/rc.h:97,
                 from /var/lib/dkms/rcraid/8.1.0/build/src/rc_init.c:38:
/var/lib/dkms/rcraid/8.1.0/build/src/rc_msg_platform.h:30:10: fatal error: stdarg.h: No such file or directory
   30 | #include <stdarg.h>
      |          ^~~~~~~~~~
In file included from /var/lib/dkms/rcraid/8.1.0/build/src/rc.h:97,
                 from /var/lib/dkms/rcraid/8.1.0/build/src/rc_event.c:25:
/var/lib/dkms/rcraid/8.1.0/build/src/rc_msg_platform.h:30:10: fatal error: stdarg.h: No such file or directory
   30 | #include <stdarg.h>
      |          ^~~~~~~~~~
In file included from /var/lib/dkms/rcraid/8.1.0/build/src/rc.h:97,
                 from /var/lib/dkms/rcraid/8.1.0/build/src/rc_msg.c:22:
/var/lib/dkms/rcraid/8.1.0/build/src/rc_msg_platform.h:30:10: fatal error: stdarg.h: No such file or directory
   30 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
make[2]: *** [scripts/Makefile.build:257: /var/lib/dkms/rcraid/8.1.0/build/src/rc_init.o] Error 1
make[2]: *** [scripts/Makefile.build:257: /var/lib/dkms/rcraid/8.1.0/build/src/rc_mem_ops.o] Error 1
make[2]: *** [scripts/Makefile.build:257: /var/lib/dkms/rcraid/8.1.0/build/src/rc_event.o] Error 1
make[2]: *** [scripts/Makefile.build:257: /var/lib/dkms/rcraid/8.1.0/build/src/rc_msg.o] Error 1
make[1]: *** [Makefile:1850: /var/lib/dkms/rcraid/8.1.0/build/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-40-generic'
make: *** [Makefile:68: module] Error 2
make: Leaving directory '/var/lib/dkms/rcraid/8.1.0/build/src'
binarydepth commented 1 year ago

This are the messages when I compile with the workaround:

install: 24: source: not found
install: 149: [: !=: unexpected operator
Make kernel for 5.19.0-32-generic
make: Entering directory '/home/binarydepth/rcraid-dkms/src'
rm -f -f *.o *.ko vers.c .*.cmd .*.d
rm -f -f rcraid.mod.c Module.symvers Modules.symvers
rm -f -rf .tmp_versions Module.markers modules.order
make: Leaving directory '/home/binarydepth/rcraid-dkms/src'
make: Entering directory '/home/binarydepth/rcraid-dkms/src'
make -C /lib/modules/5.19.0-32-generic/build M=/home/binarydepth/rcraid-dkms/src
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-32-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) 11.3.0
  You are using:           gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
ln -sf `basename /home/binarydepth/rcraid-dkms/src/rcblob.x86_64.o .o` /home/binarydepth/rcraid-dkms/src/rcblob.x86_64.o
  CC [M]  /home/binarydepth/rcraid-dkms/src/rc_init.o
  CC [M]  /home/binarydepth/rcraid-dkms/src/rc_msg.o
In file included from ./include/linux/build_bug.h:5,
                 from ./include/linux/container_of.h:5,
                 from ./include/linux/list.h:5,
                 from ./include/linux/module.h:12,
                 from /home/binarydepth/rcraid-dkms/src/rc.h:27,
                 from /home/binarydepth/rcraid-dkms/src/rc_msg.c:22:
/home/binarydepth/rcraid-dkms/src/rc_msg.c: In function ‘rc_msg_access_ok’:
/home/binarydepth/rcraid-dkms/src/rc_msg.c:2491:48: warning: passing argument 1 of ‘__access_ok’ makes pointer from integer without a cast [-Wint-conversion]
 2491 |     accessOk.returnStatus = access_ok( accessOk.access_location, accessOk.access_size);
      |                                        ~~~~~~~~^~~~~~~~~~~~~~~~
      |                                                |
      |                                                rc_uint64_t {aka long long unsigned int}
./include/linux/compiler.h:77:45: note: in definition of macro ‘likely’
   77 | # define likely(x)      __builtin_expect(!!(x), 1)
      |                                             ^
/home/binarydepth/rcraid-dkms/src/rc_msg.c:2491:29: note: in expansion of macro ‘access_ok’
 2491 |     accessOk.returnStatus = access_ok( accessOk.access_location, accessOk.access_size);
      |                             ^~~~~~~~~
In file included from ./arch/x86/include/asm/uaccess.h:46,
                 from ./include/linux/uaccess.h:11,
                 from ./include/linux/sched/task.h:11,
                 from ./include/linux/sched/signal.h:9,
                 from ./include/linux/rcuwait.h:6,
                 from ./include/linux/percpu-rwsem.h:7,
                 from ./include/linux/fs.h:33,
                 from ./include/linux/huge_mm.h:8,
                 from ./include/linux/mm.h:700,
                 from ./include/linux/scatterlist.h:8,
                 from ./include/linux/dmapool.h:14,
                 from ./include/linux/pci.h:1533,
                 from /home/binarydepth/rcraid-dkms/src/rc.h:35,
                 from /home/binarydepth/rcraid-dkms/src/rc_msg.c:22:
./include/asm-generic/access_ok.h:31:50: note: expected ‘const void *’ but argument is of type ‘rc_uint64_t’ {aka ‘long long unsigned int’}
   31 | static inline int __access_ok(const void __user *ptr, unsigned long size)
      |                               ~~~~~~~~~~~~~~~~~~~^~~
  CC [M]  /home/binarydepth/rcraid-dkms/src/rc_mem_ops.o
  CC [M]  /home/binarydepth/rcraid-dkms/src/rc_event.o
  CC [M]  /home/binarydepth/rcraid-dkms/src/rc_config.o
  CC [M]  /home/binarydepth/rcraid-dkms/src/vers.o
  LD [M]  /home/binarydepth/rcraid-dkms/src/rcraid.o
  MODPOST /home/binarydepth/rcraid-dkms/src/Module.symvers
  CC [M]  /home/binarydepth/rcraid-dkms/src/rcraid.mod.o
  LD [M]  /home/binarydepth/rcraid-dkms/src/rcraid.ko
  BTF [M] /home/binarydepth/rcraid-dkms/src/rcraid.ko
Skipping BTF generation for /home/binarydepth/rcraid-dkms/src/rcraid.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-32-generic'
make: Leaving directory '/home/binarydepth/rcraid-dkms/src'
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
I: The initramfs will attempt to resume from /dev/nvme0n1p6
I: (UUID=3257af85-36d6-4de8-a678-7dec27341ed8)
I: Set the RESUME variable to override this.
Make kernel for 5.19.0-40-generic
make: Entering directory '/home/binarydepth/rcraid-dkms/src'
rm -f -f *.o *.ko vers.c .*.cmd .*.d
rm -f -f rcraid.mod.c Module.symvers Modules.symvers
rm -f -rf .tmp_versions Module.markers modules.order
make: Leaving directory '/home/binarydepth/rcraid-dkms/src'
make: Entering directory '/home/binarydepth/rcraid-dkms/src'
make -C /lib/modules/5.19.0-40-generic/build M=/home/binarydepth/rcraid-dkms/src
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-40-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) 11.3.0
  You are using:           gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
ln -sf `basename /home/binarydepth/rcraid-dkms/src/rcblob.x86_64.o .o` /home/binarydepth/rcraid-dkms/src/rcblob.x86_64.o
  CC [M]  /home/binarydepth/rcraid-dkms/src/rc_init.o
  CC [M]  /home/binarydepth/rcraid-dkms/src/rc_msg.o
In file included from ./include/linux/build_bug.h:5,
                 from ./include/linux/container_of.h:5,
                 from ./include/linux/list.h:5,
                 from ./include/linux/module.h:12,
                 from /home/binarydepth/rcraid-dkms/src/rc.h:27,
                 from /home/binarydepth/rcraid-dkms/src/rc_msg.c:22:
/home/binarydepth/rcraid-dkms/src/rc_msg.c: In function ‘rc_msg_access_ok’:
/home/binarydepth/rcraid-dkms/src/rc_msg.c:2491:48: warning: passing argument 1 of ‘__access_ok’ makes pointer from integer without a cast [-Wint-conversion]
 2491 |     accessOk.returnStatus = access_ok( accessOk.access_location, accessOk.access_size);
      |                                        ~~~~~~~~^~~~~~~~~~~~~~~~
      |                                                |
      |                                                rc_uint64_t {aka long long unsigned int}
./include/linux/compiler.h:77:45: note: in definition of macro ‘likely’
   77 | # define likely(x)      __builtin_expect(!!(x), 1)
      |                                             ^
/home/binarydepth/rcraid-dkms/src/rc_msg.c:2491:29: note: in expansion of macro ‘access_ok’
 2491 |     accessOk.returnStatus = access_ok( accessOk.access_location, accessOk.access_size);
      |                             ^~~~~~~~~
In file included from ./arch/x86/include/asm/uaccess.h:46,
                 from ./include/linux/uaccess.h:11,
                 from ./include/linux/sched/task.h:11,
                 from ./include/linux/sched/signal.h:9,
                 from ./include/linux/rcuwait.h:6,
                 from ./include/linux/percpu-rwsem.h:7,
                 from ./include/linux/fs.h:33,
                 from ./include/linux/huge_mm.h:8,
                 from ./include/linux/mm.h:700,
                 from ./include/linux/scatterlist.h:8,
                 from ./include/linux/dmapool.h:14,
                 from ./include/linux/pci.h:1533,
                 from /home/binarydepth/rcraid-dkms/src/rc.h:35,
                 from /home/binarydepth/rcraid-dkms/src/rc_msg.c:22:
./include/asm-generic/access_ok.h:31:50: note: expected ‘const void *’ but argument is of type ‘rc_uint64_t’ {aka ‘long long unsigned int’}
   31 | static inline int __access_ok(const void __user *ptr, unsigned long size)
      |                               ~~~~~~~~~~~~~~~~~~~^~~
  CC [M]  /home/binarydepth/rcraid-dkms/src/rc_mem_ops.o
  CC [M]  /home/binarydepth/rcraid-dkms/src/rc_event.o
  CC [M]  /home/binarydepth/rcraid-dkms/src/rc_config.o
  CC [M]  /home/binarydepth/rcraid-dkms/src/vers.o
  LD [M]  /home/binarydepth/rcraid-dkms/src/rcraid.o
  MODPOST /home/binarydepth/rcraid-dkms/src/Module.symvers
  CC [M]  /home/binarydepth/rcraid-dkms/src/rcraid.mod.o
  LD [M]  /home/binarydepth/rcraid-dkms/src/rcraid.ko
  BTF [M] /home/binarydepth/rcraid-dkms/src/rcraid.ko
Skipping BTF generation for /home/binarydepth/rcraid-dkms/src/rcraid.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-40-generic'
make: Leaving directory '/home/binarydepth/rcraid-dkms/src'
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
I: The initramfs will attempt to resume from /dev/nvme0n1p6
I: (UUID=3257af85-36d6-4de8-a678-7dec27341ed8)
I: Set the RESUME variable to override this.
binarydepth commented 7 months ago

If this is still an issue maybe I could try: try ln -sf /usr/lib/modules/$(uname -r)/vmlinux.xz /boot/

AskUbuntu

binarydepth commented 7 months ago

Had issues on Kubuntu 22.04 but I no longer use that distro