Tenho uma máquina vanilla 24.04.2 com kernel 6.8.0-53-generic e queria habilitar o HWE
Tentei instalar o kernel hwe via apt
sudo apt install linux-generic-hwe-24.04
No entanto, a compilação falha e o log de travamento me diz que o kernel foi compilado por uma versão diferente do GCC do que a que eu instalei. As versões do GCC listadas no log de travamento, no entanto, são a mesma versão.
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
E o erro de compilação específico é
CC [M] /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.o
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c: In function ‘xtrx_uart_do_tx’:
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:472:28: error: ‘struct uart_state’ has no member named ‘xmit’
472 | xmit = &port->state->xmit;
Parece que tenho o compilador certo:
dpkg --list | grep gcc
ii gcc 4:13.2.0-7ubuntu1 amd64 GNU C compiler
ii gcc-11 11.4.0-9ubuntu1 amd64 GNU C compiler
ii gcc-11-base:amd64 11.4.0-9ubuntu1 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-12 12.3.0-17ubuntu1 amd64 GNU C compiler
ii gcc-12-base:amd64 12.3.0-17ubuntu1 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-13 13.3.0-6ubuntu2~24.04 amd64 GNU C compiler
ii gcc-13-base:amd64 13.3.0-6ubuntu2~24.04 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-13-x86-64-linux-gnu 13.3.0-6ubuntu2~24.04 amd64 GNU C compiler for the x86_64-linux-gnu architecture
ii gcc-13-x86-64-linux-gnu-base:i386 13.3.0-6ubuntu2~24.04cross1 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-14-base:amd64 14.2.0-4ubuntu2~24.04 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-14-base:i386 14.2.0-4ubuntu2~24.04 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-x86-64-linux-gnu 4:13.2.0-7ubuntu1 amd64 GNU C compiler for the amd64 architecture
ii libgcc-11-dev:amd64 11.4.0-9ubuntu1 amd64 GCC support library (development files)
ii libgcc-12-dev:amd64 12.3.0-17ubuntu1 amd64 GCC support library (development files)
ii libgcc-13-dev:amd64 13.3.0-6ubuntu2~24.04 amd64 GCC support library (development files)
ii libgcc-s1:amd64 14.2.0-4ubuntu2~24.04 amd64 GCC support library
ii libgcc-s1:i386 14.2.0-4ubuntu2~24.04 i386 GCC support library
ii libuno-cppuhelpergcc3-3t64 4:24.2.7-0ubuntu0.24.04.2 amd64 LibreOffice UNO runtime environment -- CPPU helper library
ii libuno-purpenvhelpergcc3-3t64 4:24.2.7-0ubuntu0.24.04.2 amd64 LibreOffice UNO runtime environment -- "purpose environment" helper
ii libuno-salhelpergcc3-3t64 4:24.2.7-0ubuntu0.24.04.2 amd64 LibreOffice UNO runtime environment -- SAL helpers for C++ library
ii python3-pygccxml 2.4.0-1 all specialized XML reader reads the output from gccxml - python3 lib
Alguma ideia do que está faltando para fazer isso funcionar?
Registro completo de falhas:
cat /var/crash/xtrx-dkms.0.crash
ProblemType: Package
DKMSBuildLog:
DKMS make.log for xtrx-0.0.1+git20190320.5ae3a3e-3.2ubuntu2 for kernel 6.11.0-17-generic (x86_64)
Sun Feb 23 07:01:37 PM PST 2025
make: Entering directory '/usr/src/linux-headers-6.11.0-17-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
CC [M] /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.o
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c: In function ‘xtrx_uart_do_tx’:
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:472:28: error: ‘struct uart_state’ has no member named ‘xmit’
472 | xmit = &port->state->xmit;
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:473:13: error: implicit declaration of function ‘uart_circ_empty’; did you mean ‘uart_lsr_tx_empty’? [-Werror=implicit-function-declaration]
473 | if (uart_circ_empty(xmit))
| ^~~~~~~~~~~~~~~
| uart_lsr_tx_empty
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:480:25: error: invalid use of undefined type ‘struct circ_buf’
480 | c = xmit->buf[xmit->tail] & 0xff;
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:480:35: error: invalid use of undefined type ‘struct circ_buf’
480 | c = xmit->buf[xmit->tail] & 0xff;
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:484:21: error: invalid use of undefined type ‘struct circ_buf’
484 | xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:484:35: error: invalid use of undefined type ‘struct circ_buf’
484 | xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
| ^~
/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:490:13: error: implicit declaration of function ‘uart_circ_chars_pending’ [-Werror=implicit-function-declaration]
490 | if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:244: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.11.0-17-generic/Makefile:1931: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build] Error 2
make: *** [Makefile:224: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.11.0-17-generic'
DKMSKernelVersion: 6.11.0-17-generic
Date: Sun Feb 23 19:01:38 2025
DuplicateSignature: dkms:xtrx-dkms:0.0.1+git20190320.5ae3a3e-3.2ubuntu2:/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:472:28: error: ‘struct uart_state’ has no member named ‘xmit’
Package: xtrx-dkms 0.0.1+git20190320.5ae3a3e-3.2ubuntu2
PackageVersion: 0.0.1+git20190320.5ae3a3e-3.2ubuntu2
SourcePackage: xtrx-dkms
Title: xtrx-dkms 0.0.1+git20190320.5ae3a3e-3.2ubuntu2: xtrx kernel module failed to build