Thanks. I'm aware of this and working with upstream on patches.

On November 11, 2025 12:19:37 PM CST, Andreas Beckmann <[email protected]> wrote:
>Package: xrt-xocl-dkms
>Version: 202610.2.21.21-2
>Severity: serious
>
>Hi,
>
>xrt-xocl-dkms fails to build a module for Linux 6.17 in sid:
>
>DKMS (dkms-3.2.2) make.log for xrt/2.21.0 for kernel 6.17.6+deb14-amd64 
>(x86_64)
>Tue Nov 11 15:27:44 UTC 2025
>
>Building module(s)
># command: cd driver/xocl; make 
>KERNEL_SRC=/lib/modules/6.17.6+deb14-amd64/build; cd ../..
>cd userpf; make all
>make[1]: Entering directory '/var/lib/dkms/xrt/2.21.0/build/driver/xocl/userpf'
>/var/lib/dkms/xrt/2.21.0/build/driver/xocl/userpf
>make -C /lib/modules/6.17.6+deb14-amd64/build 
>M=/var/lib/dkms/xrt/2.21.0/build/driver/xocl/userpf modules
>make[2]: Entering directory '/usr/src/linux-headers-6.17.6+deb14-amd64'
>make[3]: Entering directory '/var/lib/dkms/xrt/2.21.0/build/driver/xocl/userpf'
>  CC [M]  ../xocl_subdev.o
>  CC [M]  ../xocl_ctx.o
>  CC [M]  ../xocl_thread.o
>  CC [M]  ../xocl_fdt.o
>  CC [M]  ../xocl_xclbin.o
>  CC [M]  ../xocl_debug.o
>  CC [M]  ../xocl_xgq.o
>  CC [M]  ../subdev/xdma.o
>  CC [M]  ../subdev/qdma.o
>  CC [M]  ../subdev/feature_rom.o
>../subdev/feature_rom.c:152:17: error: initialization of 'ssize_t (*)(struct 
>file *, struct kobject *, const struct bin_attribute *, char *, loff_t,  
>size_t)' {aka 'long int (*)(struct file *, struct kobject *, const struct 
>bin_attribute *, char *, long long int,  long unsigned int)'} from 
>incompatible pointer type 'ssize_t (*)(struct file *, struct kobject *, struct 
>bin_attribute *, char *, loff_t,  size_t)' {aka 'long int (*)(struct file *, 
>struct kobject *, struct bin_attribute *, char *, long long int,  long 
>unsigned int)'} [-Wincompatible-pointer-types]
>  152 |         .read = raw_show,
>      |                 ^~~~~~~~
>../subdev/feature_rom.c:152:17: note: (near initialization for 'raw_attr.read')
>../subdev/feature_rom.c:130:16: note: 'raw_show' declared here
>  130 | static ssize_t raw_show(struct file *filp, struct kobject *kobj,
>      |                ^~~~~~~~
>../subdev/feature_rom.c:164:22: error: initialization of 'const struct 
>bin_attribute * const*' from incompatible pointer type 'struct bin_attribute 
>**' [-Wincompatible-pointer-types]
>  164 |         .bin_attrs = rom_bin_attrs,
>      |                      ^~~~~~~~~~~~~
>../subdev/feature_rom.c:164:22: note: (near initialization for 
>'rom_attr_group.<anonymous>.bin_attrs')
>../subdev/feature_rom.c: In function 'set_vbnv_name':
>../subdev/feature_rom.c:357:53: warning: format '%lx' expects argument of type 
>'long unsigned int', but argument 4 has type 'uint32_t' {aka 'unsigned int'} 
>[-Wformat=]
>  357 |         snprintf(sh_version, sizeof(sh_version), "%lx", idcode);
>      |                                                   ~~^   ~~~~~~
>      |                                                     |   |
>      |                                                     |   uint32_t {aka 
> unsigned int}
>      |                                                     long unsigned int
>      |                                                   %x
>make[5]: *** 
>[/usr/src/linux-headers-6.17.6+deb14-common/scripts/Makefile.build:292: 
>../subdev/feature_rom.o] Error 1
>make[4]: *** [/usr/src/linux-headers-6.17.6+deb14-common/Makefile:2035: .] 
>Error 2
>make[3]: *** [/usr/src/linux-headers-6.17.6+deb14-common/Makefile:260: 
>__sub-make] Error 2
>make[3]: Leaving directory '/var/lib/dkms/xrt/2.21.0/build/driver/xocl/userpf'
>make[2]: *** [/usr/src/linux-headers-6.17.6+deb14-common/Makefile:260: 
>__sub-make] Error 2
>make[2]: Leaving directory '/usr/src/linux-headers-6.17.6+deb14-amd64'
>make[1]: *** [Makefile:137: all] Error 2
>make[1]: Leaving directory '/var/lib/dkms/xrt/2.21.0/build/driver/xocl/userpf'
>make: *** [Makefile:2: all] Error 2
>
># exit code: 0
># elapsed time: 00:00:53
>----------------------------------------------------------------
>
>
>Please enable the dkms autopkgtests (testing only module compilation) for
>the package by adding
>
>  Testsuite: autopkgtest-pkg-dkms
>
>to the Source stanza in d/control.
>
>
>Andreas

Reply via email to