-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed in building linux kernel 6.10.9 on kali #21
Comments
I'm getting the same thing on Pi OS Bookworm:
Looking inside the log file:
Looks like this is fixed in d218d3e — but that is not in the Debian Bookworm package version. |
Right, so the version they distribute will be fairly old. Out of curiosity which version of XTRX hardware do you have? This old driver for the Fairwaves XTRX is not really maintained and all development is going into the LimeSDR XTRX and Lime Suite NG driver stack. If you have a Fairwaves XTRX Rev. 5 it could be flashed with the FPGA gateware used with LimeSDR XTRX, hence making it compatible with Lime Suite NG. |
@9600 - I'm actually testing a CaribouLite, and as part of its installation, it seems like it is installing xtrx? Not even sure why. See: cariboulabs/cariboulite#176 |
@geerlingguy Not sure either, doesn't seem to make sense. BTW, just sent you an e-mail. |
here is the issue : **Setting up xtrx-dkms (0.0.1+git20190320.5ae3a3e-4
kali1) ...kali1 DKMS files...Removing old xtrx-0.0.1+git20190320.5ae3a3e-4
Module xtrx-0.0.1+git20190320.5ae3a3e-4~kali1 for kernel 5.15.44-Re4son-v8l+ (aarch64).
Before uninstall, this module version was ACTIVE on this kernel.
xtrx.ko:
depmod...
Deleting module xtrx-0.0.1+git20190320.5ae3a3e-4
kali1 completely from the DKMS tree.kali1 DKMS files...Loading new xtrx-0.0.1+git20190320.5ae3a3e-4
Building for 5.15.44-Re4son-v8l+ 6.10.9-arm64
Building initial module for 5.15.44-Re4son-v8l+
Done.
xtrx.ko:
Running module version sanity check.
depmod...
Building initial module for 6.10.9-arm64
Error! Bad return status for module build on kernel: 6.10.9-arm64 (aarch64)
Consult /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4~kali1/build/make.log for more information.
dpkg: error processing package xtrx-dkms (--configure):
installed xtrx-dkms package post-installation script subprocess returned error exit status 10
Setting up linux-image-6.10.9-arm64 (6.10.9-1kali1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.10.9-arm64.
Sign command: /lib/modules/6.10.9-arm64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module:
Cleaning build area...
Building module(s)....(bad exit status: 2)
Failed command:
make -j4 KERNELRELEASE=6.10.9-arm64 -C /lib/modules/6.10.9-arm64/build M=/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/buildkali1/build/make.log for more information.Error! Bad return status for module build on kernel: 6.10.9-arm64 (aarch64)
Consult /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
dkms autoinstall on 6.10.9-arm64/aarch64 failed for xtrx(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.10.9-arm64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.10.9-arm64 (--configure):
installed linux-image-6.10.9-arm64 package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-6.10.9-arm64:
linux-headers-6.10.9-arm64 depends on linux-image-6.10.9-arm64 (= 6.10.9-1kali1) | linux-image-6.10.9-arm64-unsigned (= 6.10.9-1kali1); however:
Package linux-image-6.10.9-arm64 is not configured yet.
Package linux-image-6.10.9-arm64-unsigned is not installed.
dpkg: error processing package linux-headers-6.10.9-arm64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-arm64:
linux-headers-arm64 depends on linux-headers-6.10.9-arm64 (= 6.10.9-1kali1); however:
Package linux-headers-6.10.9-arm64 is not configured yet.
dpkg: error processing package linux-headers-arm64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-arm64:
linux-image-arm64 depends on linux-image-6.10.9-arm64 (= 6.10.9-1kali1); however:
Package linux-image-6.10.9-arm64 is not configured yet.
dpkg: error processing package linux-image-arm64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
xtrx-dkms
linux-image-6.10.9-arm64
linux-headers-6.10.9-arm64
linux-headers-arm64
linux-image-arm64
E: Sub-process /usr/bin/dpkg returned an error code (1)
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/make.log:kali1/build/xtrx.omake: Entering directory '/usr/src/linux-headers-6.10.9-arm64'
CC [M] /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/xtrx.c:547:27: error: initialization of ?void (*)(struct uart_port *, struct ktermios *, const struct ktermios )? from incompatible pointer type ?void ()(struct uart_port *, struct ktermios *, struct ktermios *)? [-Werror=incompatible-pointer-types]kali1/build/xtrx.c:547:27: note: (near initialization for ?xtrx_uart_ops.set_termios?)547 | .set_termios = xtrx_uart_set_termios,
| ^~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/xtrx.c: In function ?xtrx_allocdma?:kali1/build/xtrx.c:653:33: error: implicit declaration of function ?pci_alloc_consistent? [-Werror=implicit-function-declaration]/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
653 | pbufs[i].virt = pci_alloc_consistent(d->pdev, buflen, &pbufs[i].phys);
| ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/xtrx.c:653:31: warning: assignment to ?void *? from ?int? makes pointer from integer without a cast [-Wint-conversion]kali1/build/xtrx.c:657:33: error: implicit declaration of function ?pci_free_consistent? [-Werror=implicit-function-declaration]653 | pbufs[i].virt = pci_alloc_consistent(d->pdev, buflen, &pbufs[i].phys);
| ^
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
657 | pci_free_consistent(d->pdev, buflen, pbufs[i].virt, pbufs[i].phys);
| ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/xtrx.c: In function ?xtrxfd_mmap?:kali1/build/xtrx.c:1083:31: error: assignment of read-only member ?vm_flags?/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
1083 | vma->vm_flags |= VM_LOCKED;
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/xtrx.c:1098:31: error: assignment of read-only member ?vm_flags?1098 | vma->vm_flags |= VM_IO;
| ^
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/xtrx.c:1123:31: error: assignment of read-only member ?vm_flags?1123 | vma->vm_flags |= VM_LOCKED;
| ^
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/xtrx.c: In function ?xtrx_probe?:kali1/build/xtrx.c:1194:13: error: implicit declaration of function ?pci_set_consistent_dma_mask? [-Werror=implicit-function-declaration]/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
1194 | if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/alternative.h:9,
from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/lse.h:14,
from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/cmpxchg.h:14,
from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/atomic.h:16,
from /usr/src/linux-headers-6.10.9-common/include/linux/atomic.h:7,
from /usr/src/linux-headers-6.10.9-common/include/asm-generic/bitops/atomic.h:5,
from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/bitops.h:25,
from /usr/src/linux-headers-6.10.9-common/include/linux/bitops.h:63,
from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/cache.h:40,
from /usr/src/linux-headers-6.10.9-common/include/linux/cache.h:6,
from /usr/src/linux-headers-6.10.9-common/include/linux/time.h:5,
from /usr/src/linux-headers-6.10.9-common/arch/arm64/include/asm/stat.h:12,
from /usr/src/linux-headers-6.10.9-common/include/linux/stat.h:6,
from /usr/src/linux-headers-6.10.9-common/include/linux/module.h:13,
from /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/xtrx.c:22:kali1/build/xtrx.c: In function ?xtrx_init?:/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
/usr/src/linux-headers-6.10.9-common/include/linux/init.h:180:22: error: passing argument 1 of ?class_create? from incompatible pointer type [-Werror=incompatible-pointer-types]
180 | #define THIS_MODULE (&__this_module)
|
^~~~~~~~~~~~~~~kali1/build/xtrx.c:1527:35: note: in expansion of macro ?THIS_MODULE?| |
| struct module *
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
1527 | xtrx_class = class_create(THIS_MODULE, CLASS_NAME);
| ^~~~~~~~~~~
In file included from /usr/src/linux-headers-6.10.9-common/include/linux/device.h:31,
from /usr/src/linux-headers-6.10.9-common/include/linux/pci.h:37,
from /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/xtrx.c:25:kali1/build/xtrx.c:1527:22: error: too many arguments to function ?class_create?/usr/src/linux-headers-6.10.9-common/include/linux/device/class.h:228:54: note: expected ?const char *? but argument is of type ?struct module *?
228 | struct class * __must_check class_create(const char *name);
| ~~~~~~~~~~~~^~~~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
1527 | xtrx_class = class_create(THIS_MODULE, CLASS_NAME);
| ^~~~~~~~~~~~
/usr/src/linux-headers-6.10.9-common/include/linux/device/class.h:228:29: note: declared here
228 | struct class * __must_check class_create(const char name);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.10.9-common/scripts/Makefile.build:249: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
kali1/build/xtrx.o] Error 1kali1/build] Error 2make[1]: *** [/usr/src/linux-headers-6.10.9-common/Makefile:1959: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-4
make: *** [/usr/src/linux-headers-6.10.9-common/Makefile:252: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.10.9-arm64'*
The text was updated successfully, but these errors were encountered: