Closed binarydepth closed 7 months 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.
If this is still an issue maybe I could try: try ln -sf /usr/lib/modules/$(uname -r)/vmlinux.xz /boot/
Had issues on Kubuntu 22.04 but I no longer use that distro
It compiles with workaround git clone https://github.com/Exioncore/rcraid-dkms -b compatibility_updates but doesn't format free space inside RAID 0