Package: xrt-xocl-dkms
Version: 1:2.25.0-4+b1
Severity: important
X-Debbugs-Cc: [email protected]
Dear Maintainer,
As strncpy has been removed from Linux kernel versions >=7.2, the DKMS
module fails to build:
Building module(s)
# command: cd driver/xocl; make KERNEL_SRC=/lib/modules/7.2.11+deb14-amd64/build
cd userpf; make all
make[1]: Entering directory '/var/lib/dkms/xrt/2.25.00/build/driver/xocl/userpf'
/var/lib/dkms/xrt/2.25.00/build/driver/xocl/userpf
make -C /lib/modules/7.2.11+deb14-amd64/build
M=/var/lib/dkms/xrt/2.25.00/build/driver/xocl/userpf modules
make[2]: Entering directory '/usr/src/linux-headers-7.2.11+deb14-amd64'
make[3]: Entering directory '/var/lib/dkms/xrt/2.25.00/build/driver/xocl/userpf'
CC [M] ../xocl_subdev.o
../xocl_subdev.c: In function ‘__xocl_subdev_create’:
../xocl_subdev.c:623:33: error: implicit declaration of function ‘strncpy’
[-Wimplicit-function-declaration]
623 | strncpy(subdev->res_name +
| ^~~~~~~
../xocl_subdev.c:22:1: note: include ‘<string.h>’ or provide a declaration of
‘strncpy’
21 | #include "version.h"
+++ |+#include <string.h>
22 |
../xocl_subdev.c:623:33: warning: incompatible implicit declaration of built-in
function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
623 | strncpy(subdev->res_name +
| ^~~~~~~
../xocl_subdev.c:623:33: note: include ‘<string.h>’ or provide a declaration of
‘strncpy’
../xocl_subdev.c: In function ‘xocl_fetch_dynamic_platform’:
../xocl_subdev.c:1438:25: warning: incompatible implicit declaration of
built-in function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
1438 | strncpy(core->vbnv_cache, dsa_map[i].vbnv,
| ^~~~~~~
../xocl_subdev.c:1438:25: note: include ‘<string.h>’ or provide a declaration
of ‘strncpy’
make[5]: ***
[/usr/src/linux-headers-7.2.11+deb14-common/scripts/Makefile.build:294:
../xocl_subdev.o] Error 1
make[4]: *** [/usr/src/linux-headers-7.2.11+deb14-common/Makefile:2222: .]
Error 2
make[3]: *** [/usr/src/linux-headers-7.2.11+deb14-common/Makefile:260:
__sub-make] Error 2
make[3]: Leaving directory '/var/lib/dkms/xrt/2.25.00/build/driver/xocl/userpf'
make[2]: *** [/usr/src/linux-headers-7.2.11+deb14-common/Makefile:260:
__sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-7.2.11+deb14-amd64'
make[1]: *** [Makefile:137: all] Error 2
make[1]: Leaving directory '/var/lib/dkms/xrt/2.25.00/build/driver/xocl/userpf'
make: *** [Makefile:2: all] Error 2
Upstream kernel commit documenting strncpy removal:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1a3746ccbb0a97bed3c06ccde6b880013b1dddc1
Previously, this function was deprecated; now it has been completely
removed.
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 7.2.11+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages xrt-xocl-dkms depends on:
ii dkms 3.2.2-1
xrt-xocl-dkms recommends no packages.
xrt-xocl-dkms suggests no packages.
-- no debconf information